Class MetricProps.Jsii$Proxy
- All Implemented Interfaces:
CommonMetricOptions
,MetricProps
,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- MetricProps
MetricProps
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.cloudwatch.MetricProps
MetricProps.Builder, MetricProps.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionprotected
Jsii$Proxy
(MetricProps.Builder builder) Constructor that initializes the object based on literal property values passed by theMetricProps.Builder
.protected
Jsii$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.JsonNode
final boolean
final String
Account which this metric comes from.final String
getColor()
The hex color code, prefixed with '#' (e.g.(deprecated) Dimensions of the metric.Dimensions of the metric.final String
getLabel()
Label for this metric when added to a Graph in a Dashboard.final String
Name of the metric.final String
Namespace of the metric.final Duration
The period over which the specified statistic is applied.final String
Region which this metric comes from.final String
What function to use for aggregating.final Unit
getUnit()
Unit used to filter the metric stream.final int
hashCode()
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 theMetricProps.Builder
.
-
-
Method Details
-
getMetricName
Description copied from interface:MetricProps
Name of the metric.- Specified by:
getMetricName
in interfaceMetricProps
-
getNamespace
Description copied from interface:MetricProps
Namespace of the metric.- Specified by:
getNamespace
in interfaceMetricProps
-
getAccount
Description copied from interface:CommonMetricOptions
Account which this metric comes from.Default: - Deployment account.
- Specified by:
getAccount
in interfaceCommonMetricOptions
-
getColor
Description copied from interface:CommonMetricOptions
The hex color code, prefixed with '#' (e.g. '#00ff00'), to use when this metric is rendered on a graph. TheColor
class has a set of standard colors that can be used here.Default: - Automatic color
- Specified by:
getColor
in interfaceCommonMetricOptions
-
getDimensions
Description copied from interface:CommonMetricOptions
(deprecated) Dimensions of the metric.Default: - No dimensions.
- Specified by:
getDimensions
in interfaceCommonMetricOptions
-
getDimensionsMap
Description copied from interface:CommonMetricOptions
Dimensions of the metric.Default: - No dimensions.
- Specified by:
getDimensionsMap
in interfaceCommonMetricOptions
-
getLabel
Description copied from interface:CommonMetricOptions
Label 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}] 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.
Default: - No label
- Specified by:
getLabel
in interfaceCommonMetricOptions
-
getPeriod
Description copied from interface:CommonMetricOptions
The period over which the specified statistic is applied.Default: Duration.minutes(5)
- Specified by:
getPeriod
in interfaceCommonMetricOptions
-
getRegion
Description copied from interface:CommonMetricOptions
Region which this metric comes from.Default: - Deployment region.
- Specified by:
getRegion
in interfaceCommonMetricOptions
-
getStatistic
Description copied from interface:CommonMetricOptions
What function to use for aggregating.Can be one of the following:
- "Minimum" | "min"
- "Maximum" | "max"
- "Average" | "avg"
- "Sum" | "sum"
- "SampleCount | "n"
- "pNN.NN"
Default: Average
- Specified by:
getStatistic
in interfaceCommonMetricOptions
-
getUnit
Description copied from interface:CommonMetricOptions
Unit 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:
getUnit
in interfaceCommonMetricOptions
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-