Google Cloud Container V1 Client - Class HorizontalPodAutoscaling (1.33.0)

Reference documentation and code samples for the Google Cloud Container V1 Client class HorizontalPodAutoscaling.

Configuration options for the horizontal pod autoscaling feature, which increases or decreases the number of replica pods a replication controller has based on the resource usage of the existing pods.

Generated from protobuf message google.container.v1.HorizontalPodAutoscaling

Namespace

Google \ Cloud \ Container \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ disabled bool

Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. When enabled, it ensures that metrics are collected into Stackdriver Monitoring.

getDisabled

Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.

When enabled, it ensures that metrics are collected into Stackdriver Monitoring.

Returns
Type Description
bool

setDisabled

Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.

When enabled, it ensures that metrics are collected into Stackdriver Monitoring.

Parameter
Name Description
var bool
Returns
Type Description
$this