cost-monitoring-construct
Version:
A CDK construct that helps track applications' costs separately and receive alerts in case of unpredicted resource usage
35 lines (34 loc) • 828 B
TypeScript
export declare type Email = string;
export declare type Optional<T> = {
[k in keyof T]?: T[k];
};
export declare type DeepOptional<T> = {
[k in keyof T]?: T[k] extends object ? Optional<T[k]> : T[k];
};
export interface ITag {
key: string;
value: string | number;
}
export declare enum TimeUnit {
DAILY = "DAILY",
MONTHLY = "MONTHLY",
QUARTERLY = "QUARTERLY",
ANNUALLY = "ANNUALLY"
}
export declare enum NotificationType {
ACTUAL = "ACTUAL",
FORECASTED = "FORECASTED"
}
export declare enum ThresholdType {
ABSOLUTE_VALUE = "ABSOLUTE_VALUE",
PERCENTAGE = "PERCENTAGE"
}
export declare enum ComparisonOperator {
EQUAL_TO = "EQUAL_TO",
GREATER_THAN = "GREATER_THAN",
LESS_THAN = "LESS_THAN"
}
export declare enum SubscriptionType {
EMAIL = "EMAIL",
SNS = "SNS"
}