Reference documentation and code samples for the Stackdriver Monitoring V3 Client class Service.
A Service
is a discrete, autonomous, and network-accessible unit, designed
to solve an individual concern
( Wikipedia
). In
Cloud Monitoring, a Service
acts as the root resource under which
operational aspects of the service are accessible.
Generated from protobuf message google.monitoring.v3.Service
Namespace
Google \ Cloud \ Monitoring \ V3Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Identifier. Resource name for this Service. The format is: projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
↳ display_name
string
Name used for UI elements listing this Service.
↳ custom
↳ app_engine
↳ cloud_endpoints
↳ cluster_istio
↳ mesh_istio
↳ istio_canonical_service
Service\IstioCanonicalService
Type used for canonical services scoped to an Istio mesh. Metrics for Istio are documented here
↳ cloud_run
↳ gke_namespace
↳ gke_workload
↳ gke_service
↳ basic_service
Service\BasicService
Message that contains the service type and service labels of this service if it is a basic service. Documentation and examples here .
↳ telemetry
↳ user_labels
array| Google\Protobuf\Internal\MapField
Labels which have been used to annotate the service. Label keys must start with a letter. Label keys and values may contain lowercase letters, numbers, underscores, and dashes. Label keys and values have a maximum length of 63 characters, and must be less than 128 bytes in size. Up to 64 label entries may be stored. For labels which do not have a semantic value, the empty string may be supplied for the label value.
getName
Identifier. Resource name for this Service. The format is: projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
string
setName
Identifier. Resource name for this Service. The format is: projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
var
string
$this
getDisplayName
Name used for UI elements listing this Service.
string
setDisplayName
Name used for UI elements listing this Service.
var
string
$this
getCustom
Custom service type.
hasCustom
setCustom
Custom service type.
$this
getAppEngine
Type used for App Engine services.
hasAppEngine
setAppEngine
Type used for App Engine services.
$this
getCloudEndpoints
Type used for Cloud Endpoints services.
hasCloudEndpoints
setCloudEndpoints
Type used for Cloud Endpoints services.
$this
getClusterIstio
Type used for Istio services that live in a Kubernetes cluster.
hasClusterIstio
setClusterIstio
Type used for Istio services that live in a Kubernetes cluster.
$this
getMeshIstio
Type used for Istio services scoped to an Istio mesh.
hasMeshIstio
setMeshIstio
Type used for Istio services scoped to an Istio mesh.
$this
getIstioCanonicalService
Type used for canonical services scoped to an Istio mesh.
Metrics for Istio are documented here
hasIstioCanonicalService
setIstioCanonicalService
Type used for canonical services scoped to an Istio mesh.
Metrics for Istio are documented here
$this
getCloudRun
Type used for Cloud Run services.
hasCloudRun
setCloudRun
Type used for Cloud Run services.
$this
getGkeNamespace
Type used for GKE Namespaces.
hasGkeNamespace
setGkeNamespace
Type used for GKE Namespaces.
$this
getGkeWorkload
Type used for GKE Workloads.
hasGkeWorkload
setGkeWorkload
Type used for GKE Workloads.
$this
getGkeService
Type used for GKE Services (the Kubernetes concept of a service).
hasGkeService
setGkeService
Type used for GKE Services (the Kubernetes concept of a service).
$this
getBasicService
Message that contains the service type and service labels of this service if it is a basic service.
Documentation and examples here .
hasBasicService
clearBasicService
setBasicService
Message that contains the service type and service labels of this service if it is a basic service.
Documentation and examples here .
$this
getTelemetry
Configuration for how to query telemetry on a Service.
hasTelemetry
clearTelemetry
setTelemetry
Configuration for how to query telemetry on a Service.
$this
getUserLabels
Labels which have been used to annotate the service. Label keys must start with a letter. Label keys and values may contain lowercase letters, numbers, underscores, and dashes. Label keys and values have a maximum length of 63 characters, and must be less than 128 bytes in size. Up to 64 label entries may be stored. For labels which do not have a semantic value, the empty string may be supplied for the label value.
setUserLabels
Labels which have been used to annotate the service. Label keys must start with a letter. Label keys and values may contain lowercase letters, numbers, underscores, and dashes. Label keys and values have a maximum length of 63 characters, and must be less than 128 bytes in size. Up to 64 label entries may be stored. For labels which do not have a semantic value, the empty string may be supplied for the label value.
$this
getIdentifier
string