Class: Google::Apis::MonitoringV3::CloudFunctionV2Target

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

A Synthetic Monitor deployed to a Cloud Functions V2 instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudFunctionV2Target

Returns a new instance of CloudFunctionV2Target.



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

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

Instance Attribute Details

#cloud_run_revisionGoogle::Apis::MonitoringV3::MonitoredResource

An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The type field identifies a MonitoredResourceDescriptor object that describes the resource's schema. Information in the labels field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for "gce_instance" has labels "project_id", " instance_id" and "zone": "type": "gce_instance", "labels": "project_id": " my-project", "instance_id": "12345678901234", "zone": "us-central1-a" ` Corresponds to the JSON propertycloudRunRevision`



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

def cloud_run_revision
  @cloud_run_revision
end

#nameString

Required. Fully qualified GCFv2 resource name i.e. projects/project/ locations/location/functions/function Required. Corresponds to the JSON property name

Returns:

  • (String)


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

def name
  @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)
  @cloud_run_revision = args[:cloud_run_revision] if args.key?(:cloud_run_revision)
  @name = args[:name] if args.key?(:name)
end