Reference documentation and code samples for the Stackdriver Monitoring V3 Client class GkeWorkload.
A GKE Workload (Deployment, StatefulSet, etc). The field names correspond
to the metadata labels on monitored resources that fall under a workload
(for example, k8s_container
or k8s_pod
).
Generated from protobuf message google.monitoring.v3.Service.GkeWorkload
Namespace
Google \ Cloud \ Monitoring \ V3 \ ServiceMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ project_id
string
Output only. The project this resource lives in. For legacy services migrated from the Custom
type, this may be a distinct project from the one parenting the service itself.
↳ location
string
The location of the parent cluster. This may be a zone or region.
↳ cluster_name
string
The name of the parent cluster.
↳ namespace_name
string
The name of the parent namespace.
↳ top_level_controller_type
string
The type of this workload (for example, "Deployment" or "DaemonSet")
↳ top_level_controller_name
string
The name of this workload.
getProjectId
Output only. The project this resource lives in. For legacy services
migrated from the Custom
type, this may be a distinct project from the
one parenting the service itself.
string
setProjectId
Output only. The project this resource lives in. For legacy services
migrated from the Custom
type, this may be a distinct project from the
one parenting the service itself.
var
string
$this
getLocation
The location of the parent cluster. This may be a zone or region.
string
setLocation
The location of the parent cluster. This may be a zone or region.
var
string
$this
getClusterName
The name of the parent cluster.
string
setClusterName
The name of the parent cluster.
var
string
$this
getNamespaceName
The name of the parent namespace.
string
setNamespaceName
The name of the parent namespace.
var
string
$this
getTopLevelControllerType
The type of this workload (for example, "Deployment" or "DaemonSet")
string
setTopLevelControllerType
The type of this workload (for example, "Deployment" or "DaemonSet")
var
string
$this
getTopLevelControllerName
The name of this workload.
string
setTopLevelControllerName
The name of this workload.
var
string
$this