Google Anthos Multi Cloud V1 Client - Class AwsAutoscalingGroupMetricsCollection (0.3.0)

Reference documentation and code samples for the Google Anthos Multi Cloud V1 Client class AwsAutoscalingGroupMetricsCollection.

Configuration related to CloudWatch metrics collection in an AWS Auto Scaling group.

Generated from protobuf message google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ granularity string

Required. The frequency at which EC2 Auto Scaling sends aggregated data to AWS CloudWatch. The only valid value is "1Minute".

↳ metrics array

Optional. The metrics to enable. For a list of valid metrics, see https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html. If you specify Granularity and don't specify any metrics, all metrics are enabled.

getGranularity

Required. The frequency at which EC2 Auto Scaling sends aggregated data to AWS CloudWatch. The only valid value is "1Minute".

Returns
TypeDescription
string

setGranularity

Required. The frequency at which EC2 Auto Scaling sends aggregated data to AWS CloudWatch. The only valid value is "1Minute".

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getMetrics

Optional. The metrics to enable. For a list of valid metrics, see https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html.

If you specify Granularity and don't specify any metrics, all metrics are enabled.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setMetrics

Optional. The metrics to enable. For a list of valid metrics, see https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html.

If you specify Granularity and don't specify any metrics, all metrics are enabled.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this