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.
595 596 597 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 595 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
586 587 588 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 586 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
593 594 595 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 593 def service_name @service_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
600 601 602 603 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 600 def update!(**args) @location = args[:location] if args.key?(:location) @service_name = args[:service_name] if args.key?(:service_name) end |