@cloud-carbon-footprint/aws
Version:
The core logic to get cloud usage data and estimate energy and carbon emissions from Amazon Web Services.
16 lines (15 loc) • 900 B
TypeScript
import { ComputeEstimator, ICloudRecommendationsService, MemoryEstimator } from '@cloud-carbon-footprint/core';
import { AWS_RECOMMENDATIONS_TARGETS, RecommendationResult } from '@cloud-carbon-footprint/common';
import { ServiceWrapper } from '../ServiceWrapper';
export default class RightsizingRecommendations implements ICloudRecommendationsService {
private readonly computeEstimator;
private readonly memoryEstimator;
private readonly serviceWrapper;
private readonly rightsizingRecommendationsService;
private readonly recommendationsLogger;
constructor(computeEstimator: ComputeEstimator, memoryEstimator: MemoryEstimator, serviceWrapper: ServiceWrapper);
getRecommendations(recommendationTarget: AWS_RECOMMENDATIONS_TARGETS): Promise<RecommendationResult[]>;
private getRecommendationDetail;
private getFootprintEstimates;
private getTargetInstance;
}