Class: Google::Apis::MonitoringV3::BasicService
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV3::BasicService
- 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 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).
Instance Attribute Summary collapse
-
#service_labels ⇒ Hash<String,String>
Labels that specify the resource that emits the monitoring data which is used for SLO reporting of this Service.
-
#service_type ⇒ String
The type of service that this basic service defines, e.g.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BasicService
constructor
A new instance of BasicService.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BasicService
Returns a new instance of BasicService.
375 376 377 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 375 def initialize(**args) update!(**args) end |
Instance Attribute Details
#service_labels ⇒ Hash<String,String>
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 (https://cloud.google.com/stackdriver/docs/solutions/slo-
monitoring/api/api-structures#basic-svc-w-basic-sli).
Corresponds to the JSON property serviceLabels
365 366 367 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 365 def service_labels @service_labels end |
#service_type ⇒ String
The type of service that this basic service defines, e.g. APP_ENGINE service
type. Documentation and valid values here (https://cloud.google.com/
stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-
sli).
Corresponds to the JSON property serviceType
373 374 375 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 373 def service_type @service_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
380 381 382 383 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 380 def update!(**args) @service_labels = args[:service_labels] if args.key?(:service_labels) @service_type = args[:service_type] if args.key?(:service_type) end |