cdk-monitoring-constructs
Version:
[](https://gitpod.io/#https://github.com/cdklabs/cdk-monitoring-constructs) [](https://badge
33 lines (32 loc) • 1.08 kB
TypeScript
import { IMetric, MathExpressionOptions, MathExpressionProps, MetricConfig } from "aws-cdk-lib/aws-cloudwatch";
/**
* Custom wrapper class for MathExpressionProps that supports account and region customization.
* @see https://github.com/aws/aws-cdk/issues/9039
*/
export interface XaxrMathExpressionProps extends MathExpressionProps {
/**
* (experimental) Account which this metric comes from.
*
* @default - Deployment account.
* @experimental
*/
readonly account?: string;
/**
* (experimental) Region which this metric comes from.
*
* @default - Deployment region.
* @experimental
*/
readonly region?: string;
}
/**
* Custom wrapper class for MathExpression that supports account and region specification.
* @see https://github.com/aws/aws-cdk/issues/9039
*/
export declare class XaxrMathExpression implements IMetric {
private props;
private mathExpression;
constructor(props: XaxrMathExpressionProps);
with(options: MathExpressionOptions): IMetric;
toMetricConfig(): MetricConfig;
}