UNPKG

@cloud-carbon-footprint/aws

Version:

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

15 lines (14 loc) 760 B
import { BillingDataRow } from '@cloud-carbon-footprint/core'; import { TagCollection } from '@cloud-carbon-footprint/common'; export default class CostAndUsageReportsRow extends BillingDataRow { constructor(timestamp: Date, accountId: string, accountName: string, region: string, serviceName: string, usageType: string, usageUnit: string, vCpus: number | null, usageAmount: number, cost: number, tags: TagCollection); private getVCpuHours; private getGpuHours; private extractInstanceTypeFromUsageType; private getBurstableInstanceVCPu; private extractVCpuFromInstanceType; parseInstanceTypeFromUsageType(): string; private getReplicationFactor; getComputeProcessors(): string[]; getGPUComputeProcessors(): string[]; }