Reference documentation and code samples for the Stackdriver Monitoring V3 Client class GkeNamespace.
GKE Namespace. The field names correspond to the resource metadata labels
on monitored resources that fall under a namespace (for example,
k8s_container or k8s_pod).
Generated from protobuf message google.monitoring.v3.Service.GkeNamespace
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 this namespace. |
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 this namespace.
| Returns | |
|---|---|
| Type | Description |
string |
|
setNamespaceName
The name of this namespace.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|