UNPKG

@cloud-carbon-footprint/gcp

Version:

The core logic to get cloud usage data and estimate energy and carbon emissions from Google Cloud Platform.

31 lines (30 loc) 899 B
import { google } from '@google-cloud/recommender/build/protos/protos'; import IRecommendation = google.cloud.recommender.v1.IRecommendation; export declare type ActiveProject = { id: string; name: string; zones: string[]; }; export declare type RecommenderRecommendations = { id: string; zone: string; recommendations: IRecommendation[]; }; export declare type ResourceDetails = { resourceId: string; resourceName: string; }; export declare type UnknownRecommendationDetails = { rec: IRecommendation; zone: string; cost: number; resourceDetails: ResourceDetails; }; export declare enum RECOMMENDATION_TYPES { STOP_VM = "STOP_VM", SNAPSHOT_AND_DELETE_DISK = "SNAPSHOT_AND_DELETE_DISK", CHANGE_MACHINE_TYPE = "CHANGE_MACHINE_TYPE", DELETE_DISK = "DELETE_DISK", DELETE_ADDRESS = "DELETE_ADDRESS", DELETE_IMAGE = "DELETE_IMAGE" }