Interface MetricRenderingProperties

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
MetricRenderingProperties.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:36.900Z") @Stability(Deprecated) @Deprecated public interface MetricRenderingProperties extends software.amazon.jsii.JsiiSerializable
Deprecated.
Replaced by MetricConfig.
(deprecated) Custom rendering properties that override the default rendering properties specified in the yAxis parameter of the widget object.

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.*;
 MetricRenderingProperties metricRenderingProperties = MetricRenderingProperties.builder()
         .period(123)
         // the properties below are optional
         .color("color")
         .label("label")
         .stat("stat")
         .build();
 

  • Method Details

    • getPeriod

      @Stability(Deprecated) @Deprecated @NotNull Number getPeriod()
      Deprecated.
      (deprecated) How many seconds to aggregate over.
    • getColor

      @Stability(Deprecated) @Deprecated @Nullable default String getColor()
      Deprecated.
      (deprecated) The hex color code, prefixed with '#' (e.g. '#00ff00'), to use when this metric is rendered on a graph. The Color class has a set of standard colors that can be used here.
    • getLabel

      @Stability(Deprecated) @Deprecated @Nullable default String getLabel()
      Deprecated.
      (deprecated) Label for the metric.
    • getStat

      @Stability(Deprecated) @Deprecated @Nullable default String getStat()
      Deprecated.
      (deprecated) Aggregation function to use (can be either simple or a percentile).
    • builder

      @Stability(Deprecated) @Deprecated static MetricRenderingProperties.Builder builder()
      Deprecated.
      Returns:
      a MetricRenderingProperties.Builder of MetricRenderingProperties