Stackdriver Monitoring V3 Client - Class GkeService (1.10.1)

Reference documentation and code samples for the Stackdriver Monitoring V3 Client class GkeService.

GKE Service. The "service" here represents a Kubernetes service object.

The field names correspond to the resource labels on k8s_service monitored resources.

Generated from protobuf message google.monitoring.v3.Service.GkeService

Namespace

Google \ Cloud \ Monitoring \ V3 \ Service

Methods

__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 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.

↳ service_name string

The name of this service.

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

getServiceName

The name of this service.

Returns
Type Description
string

setServiceName

The name of this service.

Parameter
Name Description
var string
Returns
Type Description
$this