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.



603
604
605
# File 'lib/google/apis/monitoring_v3/classes.rb', line 603

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)


594
595
596
# File 'lib/google/apis/monitoring_v3/classes.rb', line 594

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)


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