@cloud-carbon-footprint/aws
Version:
The core logic to get cloud usage data and estimate energy and carbon emissions from Amazon Web Services.
7 lines (6 loc) • 410 B
TypeScript
import { GetCostAndUsageResponse } from '@aws-sdk/client-cost-explorer';
import { GetMetricDataCommandOutput } from '@aws-sdk/client-cloudwatch';
import { ComputeUsage } from '@cloud-carbon-footprint/core';
export declare function getComputeUsage(metricDataResponses: GetMetricDataCommandOutput[], getCostAndUsageResponses: GetCostAndUsageResponse[], NODE_TYPES: {
[p: string]: number;
}): ComputeUsage[];