Show / Hide Table of Contents

Interface IMathExpressionProps

Properties for a MathExpression.

Inherited Members
IMathExpressionOptions.Color
IMathExpressionOptions.Label
IMathExpressionOptions.Period
IMathExpressionOptions.SearchAccount
IMathExpressionOptions.SearchRegion
Namespace: Amazon.CDK.AWS.CloudWatch
Assembly: Amazon.CDK.AWS.CloudWatch.dll
Syntax (csharp)
public interface IMathExpressionProps : IMathExpressionOptions
Syntax (vb)
Public Interface IMathExpressionProps
    Inherits IMathExpressionOptions
Remarks

ExampleMetadata: infused

Examples
Function fn;


MathExpression allProblems = new MathExpression(new MathExpressionProps {
    Expression = "errors + throttles",
    UsingMetrics = new Dictionary<string, IMetric> {
        { "errors", fn.MetricErrors() },
        { "faults", fn.MetricThrottles() }
    }
});

Synopsis

Properties

Expression

The expression defining the metric.

UsingMetrics

The metrics used in the expression, in a map.

Properties

Expression

The expression defining the metric.

string Expression { get; }
Property Value

System.String

Remarks

When an expression contains a SEARCH function, it cannot be used within an Alarm.

UsingMetrics

The metrics used in the expression, in a map.

virtual IDictionary<string, IMetric> UsingMetrics { get; }
Property Value

System.Collections.Generic.IDictionary<System.String, IMetric>

Remarks

The key is the identifier that represents the given metric in the expression, and the value is the actual Metric object.

Default: - Empty map.

Back to top Generated by DocFX