Interface MetricGraphConfig
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
MetricGraphConfig.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:36.879Z")
@Stability(Deprecated)
@Deprecated
public interface MetricGraphConfig
extends software.amazon.jsii.JsiiSerializable
Deprecated.
Replaced by MetricConfig
(deprecated) Properties used to construct the Metric identifying part of a Graph.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudwatch.*;
Object value;
MetricGraphConfig metricGraphConfig = MetricGraphConfig.builder()
.metricName("metricName")
.namespace("namespace")
.period(123)
.renderingProperties(MetricRenderingProperties.builder()
.period(123)
// the properties below are optional
.color("color")
.label("label")
.stat("stat")
.build())
// the properties below are optional
.color("color")
.dimensions(List.of(Dimension.builder()
.name("name")
.value(value)
.build()))
.label("label")
.statistic("statistic")
.unit(Unit.SECONDS)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classDeprecated.static final classDeprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic MetricGraphConfig.Builderbuilder()Deprecated.default StringgetColor()Deprecated.UsecolorinrenderingPropertiesDeprecated.default StringgetLabel()Deprecated.UselabelinrenderingPropertiesDeprecated.Deprecated.Deprecated.UseperiodinrenderingPropertiesDeprecated.default StringDeprecated.UsestatinrenderingPropertiesdefault UnitgetUnit()Deprecated.not used in dashboard widgetsMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMetricName
Deprecated.(deprecated) Name of the metric. -
getNamespace
Deprecated.(deprecated) Namespace of the metric. -
getPeriod
Deprecated.UseperiodinrenderingProperties(deprecated) How many seconds to aggregate over. -
getRenderingProperties
Deprecated.(deprecated) Rendering properties override yAxis parameter of the widget object. -
getColor
Deprecated.UsecolorinrenderingProperties(deprecated) Color for the graph line. -
getDimensions
Deprecated.(deprecated) The dimensions to apply to the alarm. -
getLabel
Deprecated.UselabelinrenderingProperties(deprecated) Label for the metric. -
getStatistic
Deprecated.UsestatinrenderingProperties(deprecated) Aggregation function to use (can be either simple or a percentile). -
getUnit
Deprecated.not used in dashboard widgets(deprecated) The unit of the alarm. -
builder
Deprecated.- Returns:
- a
MetricGraphConfig.BuilderofMetricGraphConfig
-