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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/monitoring_v3/classes.rb,
generated/google/apis/monitoring_v3/representations.rb,
generated/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 Stackdriver 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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Service

Returns a new instance of Service.



3040
3041
3042
# File 'generated/google/apis/monitoring_v3/classes.rb', line 3040

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



3000
3001
3002
# File 'generated/google/apis/monitoring_v3/classes.rb', line 3000

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



3005
3006
3007
# File 'generated/google/apis/monitoring_v3/classes.rb', line 3005

def cloud_endpoints
  @cloud_endpoints
end

#cluster_istioGoogle::Apis::MonitoringV3::ClusterIstio

Istio service scoped to a single Kubernetes cluster. Learn more at http:// istio.io. Corresponds to the JSON property clusterIstio



3011
3012
3013
# File 'generated/google/apis/monitoring_v3/classes.rb', line 3011

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



3017
3018
3019
# File 'generated/google/apis/monitoring_v3/classes.rb', line 3017

def custom
  @custom
end

#display_nameString

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

Returns:

  • (String)


3022
3023
3024
# File 'generated/google/apis/monitoring_v3/classes.rb', line 3022

def display_name
  @display_name
end

#mesh_istioGoogle::Apis::MonitoringV3::MeshIstio

Istio service scoped to an Istio mesh Corresponds to the JSON property meshIstio



3027
3028
3029
# File 'generated/google/apis/monitoring_v3/classes.rb', line 3027

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 propertyname`

Returns:

  • (String)


3033
3034
3035
# File 'generated/google/apis/monitoring_v3/classes.rb', line 3033

def name
  @name
end

#telemetryGoogle::Apis::MonitoringV3::Telemetry

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



3038
3039
3040
# File 'generated/google/apis/monitoring_v3/classes.rb', line 3038

def telemetry
  @telemetry
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
# File 'generated/google/apis/monitoring_v3/classes.rb', line 3045

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)
  @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