Interface MetricWidgetProps

All Superinterfaces:
All Known Subinterfaces:
AlarmWidgetProps, GaugeWidgetProps, GraphWidgetProps, SingleValueWidgetProps, TableWidgetProps
All Known Implementing Classes:
AlarmWidgetProps.Jsii$Proxy, GaugeWidgetProps.Jsii$Proxy, GraphWidgetProps.Jsii$Proxy, MetricWidgetProps.Jsii$Proxy, SingleValueWidgetProps.Jsii$Proxy, TableWidgetProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.99.0 (build 8f757e4)", date="2024-06-13T18:49:15.871Z") @Stability(Stable) public interface MetricWidgetProps extends
Basic properties for widgets that display metrics.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 MetricWidgetProps metricWidgetProps = MetricWidgetProps.builder()
  • Method Details

    • getHeight

      @Stability(Stable) @Nullable default Number getHeight()
      Height of the widget.

      Default: - 6 for Alarm and Graph widgets. 3 for single value widgets where most recent value of a metric is displayed.

    • getRegion

      @Stability(Stable) @Nullable default String getRegion()
      The region the metrics of this graph should be taken from.

      Default: - Current region

    • getTitle

      @Stability(Stable) @Nullable default String getTitle()
      Title for the graph.

      Default: - None

    • getWidth

      @Stability(Stable) @Nullable default Number getWidth()
      Width of the widget, in a grid of 24 units wide.

      Default: 6

    • builder

      @Stability(Stable) static MetricWidgetProps.Builder builder()
      a MetricWidgetProps.Builder of MetricWidgetProps