MetricExpressionConfig Struct
Properties for a concrete metric.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudwatch as cloudwatch } from 'aws-cdk-lib';
declare const metric: cloudwatch.Metric;
const metricExpressionConfig: cloudwatch.MetricExpressionConfig = {
expression: 'expression',
period: 123,
usingMetrics: {
usingMetricsKey: metric,
},
// the properties below are optional
searchAccount: 'searchAccount',
searchRegion: 'searchRegion',
};
Properties
Math expression for the metric.
How many seconds to aggregate over.
searchAccountoptionalstringsearch_accountoptionalstrsearchAccountoptionalStringSearchAccountoptionalstringSearchAccountoptional*string#Account to evaluate search expressions within.
Default: Deployment account.
searchRegionoptionalstringsearch_regionoptionalstrsearchRegionoptionalStringSearchRegionoptionalstringSearchRegionoptional*string#Region to evaluate search expressions within.
Default: Deployment region.