@Stability(value=Experimental) @Internal public static final class CommonMetricOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CommonMetricOptions
CommonMetricOptionssoftware.amazon.jsii.JsiiObject.InitializationModeCommonMetricOptions.Builder, CommonMetricOptions.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(String account,
String color,
Map<String,? extends Object> dimensions,
String label,
Duration period,
String region,
String statistic,
Unit unit)
Constructor that initializes the object based on literal property values passed by the
CommonMetricOptions.Builder. |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
String |
getAccount()
(experimental) Account which this metric comes from.
|
String |
getColor()
(experimental) The hex color code, prefixed with '#' (e.g.
|
Map<String,Object> |
getDimensions()
(experimental) Dimensions of the metric.
|
String |
getLabel()
(experimental) Label for this metric when added to a Graph in a Dashboard.
|
Duration |
getPeriod()
(experimental) The period over which the specified statistic is applied.
|
String |
getRegion()
(experimental) Region which this metric comes from.
|
String |
getStatistic()
(experimental) What function to use for aggregating.
|
Unit |
getUnit()
(experimental) Unit used to filter the metric stream.
|
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.public final String getAccount()
CommonMetricOptionsDefault: - Deployment account.
getAccount in interface CommonMetricOptionspublic final String getColor()
CommonMetricOptionsDefault: - Automatic color
getColor in interface CommonMetricOptionspublic final Map<String,Object> getDimensions()
CommonMetricOptionsDefault: - No dimensions.
getDimensions in interface CommonMetricOptionspublic final String getLabel()
CommonMetricOptionsDefault: - No label
getLabel in interface CommonMetricOptionspublic final Duration getPeriod()
CommonMetricOptionsDefault: Duration.minutes(5)
getPeriod in interface CommonMetricOptionspublic final String getRegion()
CommonMetricOptionsDefault: - Deployment region.
getRegion in interface CommonMetricOptionspublic final String getStatistic()
CommonMetricOptionsCan be one of the following:
Default: Average
getStatistic in interface CommonMetricOptionspublic final Unit getUnit()
CommonMetricOptionsOnly 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
getUnit in interface CommonMetricOptions@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2021. All rights reserved.