Class MetricOptions.Jsii$Proxy
- All Implemented Interfaces:
CommonMetricOptions,MetricOptions,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
MetricOptions
MetricOptions-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.cloudwatch.MetricOptions
MetricOptions.Builder, MetricOptions.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJsii$Proxy(MetricOptions.Builder builder) Constructor that initializes the object based on literal property values passed by theMetricOptions.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodefinal booleanfinal StringAccount which this metric comes from.final StringgetColor()The hex color code, prefixed with '#' (e.g.Dimensions of the metric.final StringgetId()Unique identifier for this metric when used in dashboard widgets.final StringgetLabel()Label for this metric when added to a Graph in a Dashboard.final DurationThe period over which the specified statistic is applied.final StringRegion which this metric comes from.final StringAccount of the stack this metric is attached to.final StringRegion of the stack this metric is attached to.final StringWhat function to use for aggregating.final UnitgetUnit()Unit used to filter the metric stream.final BooleanWhether this metric should be visible in dashboard graphs.final inthashCode()Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theMetricOptions.Builder.
-
-
Method Details
-
getAccount
Description copied from interface:CommonMetricOptionsAccount which this metric comes from.Default: - Deployment account.
- Specified by:
getAccountin interfaceCommonMetricOptions
-
getColor
Description copied from interface:CommonMetricOptionsThe hex color code, prefixed with '#' (e.g. '#00ff00'), to use when this metric is rendered on a graph. TheColorclass has a set of standard colors that can be used here.Default: - Automatic color
- Specified by:
getColorin interfaceCommonMetricOptions
-
getDimensionsMap
Description copied from interface:CommonMetricOptionsDimensions of the metric.Default: - No dimensions.
- Specified by:
getDimensionsMapin interfaceCommonMetricOptions
-
getId
Description copied from interface:CommonMetricOptionsUnique identifier for this metric when used in dashboard widgets.The id can be used as a variable to represent this metric in math expressions. Valid characters are letters, numbers, and underscore. The first character must be a lowercase letter.
Default: - No ID
- Specified by:
getIdin interfaceCommonMetricOptions
-
getLabel
Description copied from interface:CommonMetricOptionsLabel for this metric when added to a Graph in a Dashboard.You can use dynamic labels to show summary information about the entire displayed time series in the legend. For example, if you use:
[max: ${MAX}] MyMetricAs the metric label, the maximum value in the visible range will be shown next to the time series name in the graph's legend.
Default: - No label
- Specified by:
getLabelin interfaceCommonMetricOptions
-
getPeriod
Description copied from interface:CommonMetricOptionsThe period over which the specified statistic is applied.Default: Duration.minutes(5)
- Specified by:
getPeriodin interfaceCommonMetricOptions
-
getRegion
Description copied from interface:CommonMetricOptionsRegion which this metric comes from.Default: - Deployment region.
- Specified by:
getRegionin interfaceCommonMetricOptions
-
getStackAccount
Description copied from interface:CommonMetricOptionsAccount of the stack this metric is attached to.Default: - Deployment account.
- Specified by:
getStackAccountin interfaceCommonMetricOptions
-
getStackRegion
Description copied from interface:CommonMetricOptionsRegion of the stack this metric is attached to.Default: - Deployment region.
- Specified by:
getStackRegionin interfaceCommonMetricOptions
-
getStatistic
Description copied from interface:CommonMetricOptionsWhat function to use for aggregating.Use the
aws_cloudwatch.Statshelper class to construct valid input strings.Can be one of the following:
- "Minimum" | "min"
- "Maximum" | "max"
- "Average" | "avg"
- "Sum" | "sum"
- "SampleCount | "n"
- "pNN.NN"
- "tmNN.NN" | "tm(NN.NN%:NN.NN%)"
- "iqm"
- "wmNN.NN" | "wm(NN.NN%:NN.NN%)"
- "tcNN.NN" | "tc(NN.NN%:NN.NN%)"
- "tsNN.NN" | "ts(NN.NN%:NN.NN%)"
Default: Average
- Specified by:
getStatisticin interfaceCommonMetricOptions
-
getUnit
Description copied from interface:CommonMetricOptionsUnit used to filter the metric stream.Only refer to datums emitted to the metric stream with the given unit and ignore all others. Only useful when datums are being emitted to the same metric stream under different units.
The default is to use all matric datums in the stream, regardless of unit, which is recommended in nearly all cases.
CloudWatch does not honor this property for graphs.
Default: - All metric datums in the given metric stream
- Specified by:
getUnitin interfaceCommonMetricOptions
-
getVisible
Description copied from interface:CommonMetricOptionsWhether this metric should be visible in dashboard graphs.Setting this to false is useful when you want to hide raw metrics that are used in math expressions, and show only the expression results.
Default: true
- Specified by:
getVisiblein interfaceCommonMetricOptions
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-