Class: Google::Apis::MonitoringV3::Service
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::MonitoringV3::Service
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - lib/google/apis/monitoring_v3/classes.rb,
lib/google/apis/monitoring_v3/representations.rb,
lib/google/apis/monitoring_v3/representations.rb 
Overview
A Service is a discrete, autonomous, and network-accessible unit, designed to solve an individual concern (Wikipedia (https://en.wikipedia.org/wiki/Service- orientation)). In Cloud Monitoring, a Service acts as the root resource under which operational aspects of the service are accessible.
Instance Attribute Summary collapse
- 
  
    
      #app_engine  ⇒ Google::Apis::MonitoringV3::AppEngine 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
App Engine service.
 - 
  
    
      #basic_service  ⇒ Google::Apis::MonitoringV3::BasicService 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A well-known service type, defined by its service type and service labels.
 - 
  
    
      #cloud_endpoints  ⇒ Google::Apis::MonitoringV3::CloudEndpoints 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Cloud Endpoints service.
 - 
  
    
      #cloud_run  ⇒ Google::Apis::MonitoringV3::CloudRun 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Cloud Run service.
 - 
  
    
      #cluster_istio  ⇒ Google::Apis::MonitoringV3::ClusterIstio 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Istio service scoped to a single Kubernetes cluster.
 - 
  
    
      #custom  ⇒ Google::Apis::MonitoringV3::Custom 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Use a custom service to designate a service that you want to monitor when none of the other service types (like App Engine, Cloud Run, or a GKE type) matches your intended service.
 - 
  
    
      #display_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Name used for UI elements listing this Service.
 - 
  
    
      #gke_namespace  ⇒ Google::Apis::MonitoringV3::GkeNamespace 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
GKE Namespace.
 - 
  
    
      #gke_service  ⇒ Google::Apis::MonitoringV3::GkeService 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
GKE Service.
 - 
  
    
      #gke_workload  ⇒ Google::Apis::MonitoringV3::GkeWorkload 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A GKE Workload (Deployment, StatefulSet, etc).
 - 
  
    
      #istio_canonical_service  ⇒ Google::Apis::MonitoringV3::IstioCanonicalService 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Canonical service scoped to an Istio mesh.
 - 
  
    
      #mesh_istio  ⇒ Google::Apis::MonitoringV3::MeshIstio 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Istio service scoped to an Istio mesh.
 - 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Identifier.
 - 
  
    
      #telemetry  ⇒ Google::Apis::MonitoringV3::Telemetry 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Configuration for how to query telemetry on a Service.
 - 
  
    
      #user_labels  ⇒ Hash<String,String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Labels which have been used to annotate the service.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Service 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Service.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ Service
Returns a new instance of Service.
      4211 4212 4213  | 
    
      # File 'lib/google/apis/monitoring_v3/classes.rb', line 4211 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#app_engine ⇒ Google::Apis::MonitoringV3::AppEngine
App Engine service. Learn more at https://cloud.google.com/appengine.
Corresponds to the JSON property appEngine
      4118 4119 4120  | 
    
      # File 'lib/google/apis/monitoring_v3/classes.rb', line 4118 def app_engine @app_engine end  | 
  
#basic_service ⇒ Google::Apis::MonitoringV3::BasicService
A well-known service type, defined by its service type and service labels.
Documentation and examples here (https://cloud.google.com/stackdriver/docs/
solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).
Corresponds to the JSON property basicService
      4125 4126 4127  | 
    
      # File 'lib/google/apis/monitoring_v3/classes.rb', line 4125 def basic_service @basic_service end  | 
  
#cloud_endpoints ⇒ Google::Apis::MonitoringV3::CloudEndpoints
Cloud Endpoints service. Learn more at https://cloud.google.com/endpoints.
Corresponds to the JSON property cloudEndpoints
      4130 4131 4132  | 
    
      # File 'lib/google/apis/monitoring_v3/classes.rb', line 4130 def cloud_endpoints @cloud_endpoints end  | 
  
#cloud_run ⇒ Google::Apis::MonitoringV3::CloudRun
Cloud Run service. Learn more at https://cloud.google.com/run.
Corresponds to the JSON property cloudRun
      4135 4136 4137  | 
    
      # File 'lib/google/apis/monitoring_v3/classes.rb', line 4135 def cloud_run @cloud_run end  | 
  
#cluster_istio ⇒ Google::Apis::MonitoringV3::ClusterIstio
Istio service scoped to a single Kubernetes cluster. Learn more at https://
istio.io. Clusters running OSS Istio will have their services ingested as this
type.
Corresponds to the JSON property clusterIstio
      4142 4143 4144  | 
    
      # File 'lib/google/apis/monitoring_v3/classes.rb', line 4142 def cluster_istio @cluster_istio end  | 
  
#custom ⇒ Google::Apis::MonitoringV3::Custom
Use a custom service to designate a service that you want to monitor when none
of the other service types (like App Engine, Cloud Run, or a GKE type) matches
your intended service.
Corresponds to the JSON property custom
      4149 4150 4151  | 
    
      # File 'lib/google/apis/monitoring_v3/classes.rb', line 4149 def custom @custom end  | 
  
#display_name ⇒ String
Name used for UI elements listing this Service.
Corresponds to the JSON property displayName
      4154 4155 4156  | 
    
      # File 'lib/google/apis/monitoring_v3/classes.rb', line 4154 def display_name @display_name end  | 
  
#gke_namespace ⇒ Google::Apis::MonitoringV3::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).
Corresponds to the JSON property gkeNamespace
      4161 4162 4163  | 
    
      # File 'lib/google/apis/monitoring_v3/classes.rb', line 4161 def gke_namespace @gke_namespace end  | 
  
#gke_service ⇒ Google::Apis::MonitoringV3::GkeService
GKE Service. The "service" here represents a Kubernetes service object (https:/
/kubernetes.io/docs/concepts/services-networking/service). The field names
correspond to the resource labels on k8s_service monitored resources (https://
cloud.google.com/monitoring/api/resources#tag_k8s_service).
Corresponds to the JSON property gkeService
      4169 4170 4171  | 
    
      # File 'lib/google/apis/monitoring_v3/classes.rb', line 4169 def gke_service @gke_service end  | 
  
#gke_workload ⇒ Google::Apis::MonitoringV3::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).
Corresponds to the JSON property gkeWorkload
      4176 4177 4178  | 
    
      # File 'lib/google/apis/monitoring_v3/classes.rb', line 4176 def gke_workload @gke_workload end  | 
  
#istio_canonical_service ⇒ Google::Apis::MonitoringV3::IstioCanonicalService
Canonical service scoped to an Istio mesh. Anthos clusters running ASM >= 1.6.
8 will have their services ingested as this type.
Corresponds to the JSON property istioCanonicalService
      4182 4183 4184  | 
    
      # File 'lib/google/apis/monitoring_v3/classes.rb', line 4182 def istio_canonical_service @istio_canonical_service end  | 
  
#mesh_istio ⇒ Google::Apis::MonitoringV3::MeshIstio
Istio service scoped to an Istio mesh. Anthos clusters running ASM < 1.6.8
will have their services ingested as this type.
Corresponds to the JSON property meshIstio
      4188 4189 4190  | 
    
      # File 'lib/google/apis/monitoring_v3/classes.rb', line 4188 def mesh_istio @mesh_istio end  | 
  
#name ⇒ String
Identifier. Resource name for this Service. The format is: projects/[
PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
Corresponds to the JSON property name
      4194 4195 4196  | 
    
      # File 'lib/google/apis/monitoring_v3/classes.rb', line 4194 def name @name end  | 
  
#telemetry ⇒ Google::Apis::MonitoringV3::Telemetry
Configuration for how to query telemetry on a Service.
Corresponds to the JSON property telemetry
      4199 4200 4201  | 
    
      # File 'lib/google/apis/monitoring_v3/classes.rb', line 4199 def telemetry @telemetry end  | 
  
#user_labels ⇒ Hash<String,String>
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.
Corresponds to the JSON property userLabels
      4209 4210 4211  | 
    
      # File 'lib/google/apis/monitoring_v3/classes.rb', line 4209 def user_labels @user_labels end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232  | 
    
      # File 'lib/google/apis/monitoring_v3/classes.rb', line 4216 def update!(**args) @app_engine = args[:app_engine] if args.key?(:app_engine) @basic_service = args[:basic_service] if args.key?(:basic_service) @cloud_endpoints = args[:cloud_endpoints] if args.key?(:cloud_endpoints) @cloud_run = args[:cloud_run] if args.key?(:cloud_run) @cluster_istio = args[:cluster_istio] if args.key?(:cluster_istio) @custom = args[:custom] if args.key?(:custom) @display_name = args[:display_name] if args.key?(:display_name) @gke_namespace = args[:gke_namespace] if args.key?(:gke_namespace) @gke_service = args[:gke_service] if args.key?(:gke_service) @gke_workload = args[:gke_workload] if args.key?(:gke_workload) @istio_canonical_service = args[:istio_canonical_service] if args.key?(:istio_canonical_service) @mesh_istio = args[:mesh_istio] if args.key?(:mesh_istio) @name = args[:name] if args.key?(:name) @telemetry = args[:telemetry] if args.key?(:telemetry) @user_labels = args[:user_labels] if args.key?(:user_labels) end  |