forked from cloud-carbon-footprint/ccf-backstage-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.d.ts
32 lines (29 loc) · 874 Bytes
/
config.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
* © 2022 Thoughtworks, Inc.
*/
export interface Config {
cloudCarbonFootprint?: {
client?: {
/**
* The type of time period to be used. Defaults to 'months'
* @visibility frontend
*/
dateRangeType?: 'days' | 'weeks' | 'months' | 'quarters' | 'years';
/**
* The quantity of dateRangeType to be used. Defaults to 1
* @visibility frontend
*/
dateRangeValue?: number;
/**
* Value to set how the cloud provider queries should return data (e.g. day/week/month/quarter/year). Defaults to 'day'
* @visibility frontend
*/
groupBy?: 'day' | 'week' | 'month' | 'quarter' | 'year';
/**
* Whether to disable the cache and request fresh estimates each time. Defaults to false
* @visibility frontend
*/
disableCache?: boolean;
};
}
}