@Stability(value=Stable) @Internal public static final class MathExpressionProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements MathExpressionProps
MathExpressionPropssoftware.amazon.jsii.JsiiObject.InitializationModeMathExpressionProps.Builder, MathExpressionProps.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
protected |
Jsii$Proxy(MathExpressionProps.Builder builder)
Constructor that initializes the object based on literal property values passed by the
MathExpressionProps.Builder. |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
String |
getColor()
Color for this metric when added to a Graph in a Dashboard.
|
String |
getExpression()
The expression defining the metric.
|
String |
getLabel()
Label for this expression when added to a Graph in a Dashboard.
|
Duration |
getPeriod()
The period over which the expression's statistics are applied.
|
String |
getSearchAccount()
Account to evaluate search expressions within.
|
String |
getSearchRegion()
Region to evaluate search expressions within.
|
Map<String,IMetric> |
getUsingMetrics()
The metrics used in the expression, in a map.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(MathExpressionProps.Builder builder)
MathExpressionProps.Builder.public final String getExpression()
MathExpressionPropsWhen an expression contains a SEARCH function, it cannot be used within an Alarm.
getExpression in interface MathExpressionPropspublic final Map<String,IMetric> getUsingMetrics()
MathExpressionPropsThe key is the identifier that represents the given metric in the expression, and the value is the actual Metric object.
Default: - Empty map.
getUsingMetrics in interface MathExpressionPropspublic final String getColor()
MathExpressionOptionsDefault: - Automatic color
getColor in interface MathExpressionOptionspublic final String getLabel()
MathExpressionOptions
If this expression evaluates to more than one time series (for
example, through the use of METRICS() or SEARCH() expressions),
each time series will appear in the graph using a combination of the
expression label and the individual metric label. Specify the empty
string ('') to suppress the expression label and only keep the
metric label.
You can use dynamic labels to show summary information about the displayed time series in the legend. For example, if you use:
[max: ${MAX}] MyMetric
As the metric label, the maximum value in the visible range will be shown next to the time series name in the graph's legend. If the math expression produces more than one time series, the maximum will be shown for each individual time series produce by this math expression.
Default: - Expression value is used as label
getLabel in interface MathExpressionOptionspublic final Duration getPeriod()
MathExpressionOptionsThis period overrides all periods in the metrics used in this math expression.
Default: Duration.minutes(5)
getPeriod in interface MathExpressionOptionspublic final String getSearchAccount()
MathExpressionOptionsSpecifying a searchAccount has no effect to the account used for metrics within the expression (passed via usingMetrics).
Default: - Deployment account.
getSearchAccount in interface MathExpressionOptionspublic final String getSearchRegion()
MathExpressionOptionsSpecifying a searchRegion has no effect to the region used for metrics within the expression (passed via usingMetrics).
Default: - Deployment region.
getSearchRegion in interface MathExpressionOptions@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2023. All rights reserved.