Interface IMetricExpressionConfig
Properties for a concrete metric.
Namespace: Amazon.CDK.AWS.CloudWatch
Assembly: Amazon.CDK.AWS.CloudWatch.dll
Syntax (csharp)
public interface IMetricExpressionConfig
Syntax (vb)
Public Interface IMetricExpressionConfig
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudWatch;
Metric metric;
var metricExpressionConfig = new MetricExpressionConfig {
Expression = "expression",
Period = 123,
UsingMetrics = new Dictionary<string, IMetric> {
{ "usingMetricsKey", metric }
},
// the properties below are optional
SearchAccount = "searchAccount",
SearchRegion = "searchRegion"
};
Synopsis
Properties
Expression | Math expression for the metric. |
Period | How many seconds to aggregate over. |
SearchAccount | Account to evaluate search expressions within. |
SearchRegion | Region to evaluate search expressions within. |
UsingMetrics | Metrics used in the math expression. |
Properties
Expression
Math expression for the metric.
string Expression { get; }
Property Value
System.String
Period
How many seconds to aggregate over.
double Period { get; }
Property Value
System.Double
SearchAccount
Account to evaluate search expressions within.
virtual string SearchAccount { get; }
Property Value
System.String
Remarks
Default: - Deployment account.
SearchRegion
Region to evaluate search expressions within.
virtual string SearchRegion { get; }
Property Value
System.String
Remarks
Default: - Deployment region.
UsingMetrics
Metrics used in the math expression.
IDictionary<string, IMetric> UsingMetrics { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, IMetric>