Class GroupMetrics
A set of group metrics.
Inheritance
System.Object
GroupMetrics
Namespace: Amazon.CDK.AWS.AutoScaling
Assembly: Amazon.CDK.AWS.AutoScaling.dll
Syntax (csharp)
public class GroupMetrics : DeputyBase
Syntax (vb)
Public Class GroupMetrics
Inherits DeputyBase
Remarks
ExampleMetadata: infused
Examples
Vpc vpc;
InstanceType instanceType;
IMachineImage machineImage;
// Enable monitoring of all group metrics
// Enable monitoring of all group metrics
new AutoScalingGroup(this, "ASG", new AutoScalingGroupProps {
Vpc = vpc,
InstanceType = instanceType,
MachineImage = machineImage,
// ...
GroupMetrics = new [] { GroupMetrics.All() }
});
// Enable monitoring for a subset of group metrics
// Enable monitoring for a subset of group metrics
new AutoScalingGroup(this, "ASG", new AutoScalingGroupProps {
Vpc = vpc,
InstanceType = instanceType,
MachineImage = machineImage,
// ...
GroupMetrics = new [] { new GroupMetrics(GroupMetric.MIN_SIZE, GroupMetric.MAX_SIZE) }
});
Synopsis
Constructors
GroupMetrics(GroupMetric[]) | |
GroupMetrics(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
GroupMetrics(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
All() | Report all group metrics. |
Constructors
GroupMetrics(GroupMetric[])
GroupMetrics(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected GroupMetrics(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
GroupMetrics(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected GroupMetrics(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props