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