class Google::Apis::MonitoringV3::BasicService

A well-known service type, defined by its service type and service labels. Documentation and examples here (cloud.google.com/stackdriver/docs/ solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).

Attributes

service_labels[RW]

Labels that specify the resource that emits the monitoring data which is used for SLO reporting of this Service. Documentation and valid values for given service types here (cloud.google.com/stackdriver/docs/solutions/slo- monitoring/api/api-structures#basic-svc-w-basic-sli). Corresponds to the JSON property `serviceLabels` @return [Hash<String,String>]

service_type[RW]

The type of service that this basic service defines, e.g. APP_ENGINE service type. Documentation and valid values here (cloud.google.com/ stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic- sli). Corresponds to the JSON property `serviceType` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/monitoring_v3/classes.rb, line 350
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/monitoring_v3/classes.rb, line 355
def update!(**args)
  @service_labels = args[:service_labels] if args.key?(:service_labels)
  @service_type = args[:service_type] if args.key?(:service_type)
end