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.
| Parameters | |
|---|---|
| Name | Description |
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 |
↳ 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.
| Returns | |
|---|---|
| Type | Description |
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.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getLocation
The location of the parent cluster. This may be a zone or region.
| Returns | |
|---|---|
| Type | Description |
string |
|
setLocation
The location of the parent cluster. This may be a zone or region.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getClusterName
The name of the parent cluster.
| Returns | |
|---|---|
| Type | Description |
string |
|
setClusterName
The name of the parent cluster.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getNamespaceName
The name of the parent namespace.
| Returns | |
|---|---|
| Type | Description |
string |
|
setNamespaceName
The name of the parent namespace.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTopLevelControllerType
The type of this workload (for example, "Deployment" or "DaemonSet")
| Returns | |
|---|---|
| Type | Description |
string |
|
setTopLevelControllerType
The type of this workload (for example, "Deployment" or "DaemonSet")
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTopLevelControllerName
The name of this workload.
| Returns | |
|---|---|
| Type | Description |
string |
|
setTopLevelControllerName
The name of this workload.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|