Google Anthos Multi Cloud V1 Client - Class MonitoringConfig (1.2.0)

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

Parameters that describe the Monitoring configuration in a cluster.

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

Namespace

Google \ Cloud \ GkeMultiCloud \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ managed_prometheus_config ManagedPrometheusConfig

Enable Google Cloud Managed Service for Prometheus in the cluster.

↳ cloud_monitoring_config CloudMonitoringConfig

Optionally enable GKE metrics. Only for Attached Clusters.

getManagedPrometheusConfig

Enable Google Cloud Managed Service for Prometheus in the cluster.

Returns
Type Description
ManagedPrometheusConfig|null

hasManagedPrometheusConfig

clearManagedPrometheusConfig

setManagedPrometheusConfig

Enable Google Cloud Managed Service for Prometheus in the cluster.

Parameter
Name Description
var ManagedPrometheusConfig
Returns
Type Description
$this

getCloudMonitoringConfig

Optionally enable GKE metrics.

Only for Attached Clusters.

Returns
Type Description
CloudMonitoringConfig|null

hasCloudMonitoringConfig

clearCloudMonitoringConfig

setCloudMonitoringConfig

Optionally enable GKE metrics.

Only for Attached Clusters.

Parameter
Name Description
var CloudMonitoringConfig
Returns
Type Description
$this