Class: Google::Apis::MonitoringV3::CloudRun

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudRun

Returns a new instance of CloudRun.



574
575
576
# File 'lib/google/apis/monitoring_v3/classes.rb', line 574

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#locationString

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

Returns:

  • (String)


565
566
567
# File 'lib/google/apis/monitoring_v3/classes.rb', line 565

def location
  @location
end

#service_nameString

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

Returns:

  • (String)


572
573
574
# File 'lib/google/apis/monitoring_v3/classes.rb', line 572

def service_name
  @service_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



579
580
581
582
# File 'lib/google/apis/monitoring_v3/classes.rb', line 579

def update!(**args)
  @location = args[:location] if args.key?(:location)
  @service_name = args[:service_name] if args.key?(:service_name)
end