Class: Google::Apis::MonitoringV3::Service

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Service

Returns a new instance of Service.



3331
3332
3333
# File 'lib/google/apis/monitoring_v3/classes.rb', line 3331

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#app_engineGoogle::Apis::MonitoringV3::AppEngine

App Engine service. Learn more at https://cloud.google.com/appengine. Corresponds to the JSON property appEngine



3283
3284
3285
# File 'lib/google/apis/monitoring_v3/classes.rb', line 3283

def app_engine
  @app_engine
end

#cloud_endpointsGoogle::Apis::MonitoringV3::CloudEndpoints

Cloud Endpoints service. Learn more at https://cloud.google.com/endpoints. Corresponds to the JSON property cloudEndpoints



3288
3289
3290
# File 'lib/google/apis/monitoring_v3/classes.rb', line 3288

def cloud_endpoints
  @cloud_endpoints
end

#cluster_istioGoogle::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



3295
3296
3297
# File 'lib/google/apis/monitoring_v3/classes.rb', line 3295

def cluster_istio
  @cluster_istio
end

#customGoogle::Apis::MonitoringV3::Custom

Custom view of service telemetry. Currently a place-holder pending final design. Corresponds to the JSON property custom



3301
3302
3303
# File 'lib/google/apis/monitoring_v3/classes.rb', line 3301

def custom
  @custom
end

#display_nameString

Name used for UI elements listing this Service. Corresponds to the JSON property displayName

Returns:

  • (String)


3306
3307
3308
# File 'lib/google/apis/monitoring_v3/classes.rb', line 3306

def display_name
  @display_name
end

#istio_canonical_serviceGoogle::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



3312
3313
3314
# File 'lib/google/apis/monitoring_v3/classes.rb', line 3312

def istio_canonical_service
  @istio_canonical_service
end

#mesh_istioGoogle::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



3318
3319
3320
# File 'lib/google/apis/monitoring_v3/classes.rb', line 3318

def mesh_istio
  @mesh_istio
end

#nameString

Resource name for this Service. The format is: projects/[PROJECT_ID_OR_NUMBER]/ services/[SERVICE_ID] Corresponds to the JSON property name

Returns:

  • (String)


3324
3325
3326
# File 'lib/google/apis/monitoring_v3/classes.rb', line 3324

def name
  @name
end

#telemetryGoogle::Apis::MonitoringV3::Telemetry

Configuration for how to query telemetry on a Service. Corresponds to the JSON property telemetry



3329
3330
3331
# File 'lib/google/apis/monitoring_v3/classes.rb', line 3329

def telemetry
  @telemetry
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
# File 'lib/google/apis/monitoring_v3/classes.rb', line 3336

def update!(**args)
  @app_engine = args[:app_engine] if args.key?(:app_engine)
  @cloud_endpoints = args[:cloud_endpoints] if args.key?(:cloud_endpoints)
  @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)
  @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)
end