UNPKG

@cloud-carbon-footprint/aws

Version:

The core logic to get cloud usage data and estimate energy and carbon emissions from Amazon Web Services.

11 lines (10 loc) 466 B
import { Cost, ComputeUsage, ServiceWithCPUUtilization } from '@cloud-carbon-footprint/core'; import { ServiceWrapper } from './ServiceWrapper'; export default class EC2 extends ServiceWithCPUUtilization { private serviceWrapper; serviceName: string; constructor(serviceWrapper: ServiceWrapper); getUsage(start: Date, end: Date): Promise<ComputeUsage[]>; private runQuery; getCosts(start: Date, end: Date, region: string): Promise<Cost[]>; }