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

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

Namespace

Google \ Cloud \ GkeMultiCloud \ V1

Methods

__construct

Constructor.

Parameters
Name Description
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
Type Description
string

setGranularity

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

Parameter
Name Description
var string
Returns
Type Description
$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
Type Description
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
Name Description
var string[]
Returns
Type Description
$this