Class: Google::Apis::MonitoringV3::CloudRun
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV3::CloudRun
- 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
Cloud Run service. Learn more at https://cloud.google.com/run.
Instance Attribute Summary collapse
-
#location ⇒ String
The location the service is run.
-
#service_name ⇒ String
The name of the Cloud Run service.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudRun
constructor
A new instance of CloudRun.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CloudRun
Returns a new instance of CloudRun.
603 604 605 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 603 def initialize(**args) update!(**args) end |
Instance Attribute Details
#location ⇒ String
The location the service is run. Corresponds to the location resource label in
the cloud_run_revision monitored resource (https://cloud.google.com/monitoring/
api/resources#tag_cloud_run_revision).
Corresponds to the JSON property location
594 595 596 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 594 def location @location end |
#service_name ⇒ String
The name of the Cloud Run service. Corresponds to the service_name resource
label in the cloud_run_revision monitored resource (https://cloud.google.com/
monitoring/api/resources#tag_cloud_run_revision).
Corresponds to the JSON property serviceName
601 602 603 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 601 def service_name @service_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
608 609 610 611 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 608 def update!(**args) @location = args[:location] if args.key?(:location) @service_name = args[:service_name] if args.key?(:service_name) end |