Interface SingleValueWidgetProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable, MetricWidgetProps
All Known Implementing Classes:
SingleValueWidgetProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:36.904Z") @Stability(Stable) public interface SingleValueWidgetProps extends software.amazon.jsii.JsiiSerializable, MetricWidgetProps
Properties for a SingleValueWidget.

Example:

 Dashboard dashboard;
 Metric visitorCount;
 Metric purchaseCount;
 dashboard.addWidgets(SingleValueWidget.Builder.create()
         .metrics(List.of(visitorCount, purchaseCount))
         .build());
 
  • Method Details

    • getMetrics

      @Stability(Stable) @NotNull List<IMetric> getMetrics()
      Metrics to display.
    • getFullPrecision

      @Stability(Stable) @Nullable default Boolean getFullPrecision()
      Whether to show as many digits as can fit, before rounding.

      Default: false

    • getSetPeriodToTimeRange

      @Stability(Stable) @Nullable default Boolean getSetPeriodToTimeRange()
      Whether to show the value from the entire time range.

      Default: false

    • builder

      @Stability(Stable) static SingleValueWidgetProps.Builder builder()
      Returns:
      a SingleValueWidgetProps.Builder of SingleValueWidgetProps