@cloud-carbon-footprint/aws
Version:
The core logic to get cloud usage data and estimate energy and carbon emissions from Amazon Web Services.
12 lines (11 loc) • 547 B
TypeScript
import { ServiceWithCPUUtilization, ComputeUsage, Cost } from '@cloud-carbon-footprint/core';
import { ServiceWrapper } from './ServiceWrapper';
export default class RDSComputeService extends ServiceWithCPUUtilization {
private readonly serviceWrapper;
serviceName: string;
constructor(serviceWrapper: ServiceWrapper);
getUsage(start: Date, end: Date, region: string): Promise<ComputeUsage[]>;
private getCpuUtilization;
private getTotalVCpusByDate;
getCosts(start: Date, end: Date, region: string): Promise<Cost[]>;
}