Class GroupMetrics

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.autoscaling.GroupMetrics
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:45.369Z") @Stability(Stable) public class GroupMetrics extends software.amazon.jsii.JsiiObject
A set of group metrics.

Example:

 Vpc vpc;
 InstanceType instanceType;
 IMachineImage machineImage;
 // Enable monitoring of all group metrics
 // Enable monitoring of all group metrics
 AutoScalingGroup.Builder.create(this, "ASG")
         .vpc(vpc)
         .instanceType(instanceType)
         .machineImage(machineImage)
         // ...
         .groupMetrics(List.of(GroupMetrics.all()))
         .build();
 // Enable monitoring for a subset of group metrics
 // Enable monitoring for a subset of group metrics
 AutoScalingGroup.Builder.create(this, "ASG")
         .vpc(vpc)
         .instanceType(instanceType)
         .machineImage(machineImage)
         // ...
         .groupMetrics(List.of(new GroupMetrics(GroupMetric.MIN_SIZE, GroupMetric.MAX_SIZE)))
         .build();
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
    GroupMetrics(@NotNull GroupMetric... metrics)
     
    protected
    GroupMetrics(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    GroupMetrics(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    all()
    Report all group metrics.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • GroupMetrics

      protected GroupMetrics(software.amazon.jsii.JsiiObjectRef objRef)
    • GroupMetrics

      protected GroupMetrics(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • GroupMetrics

      @Stability(Stable) public GroupMetrics(@NotNull @NotNull GroupMetric... metrics)
      Parameters:
      metrics - This parameter is required.
  • Method Details

    • all

      @Stability(Stable) @NotNull public static GroupMetrics all()
      Report all group metrics.