Class: Google::Apis::MonitoringV3::CloudFunctionV2Target
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV3::CloudFunctionV2Target
- 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
-
#cloud_run_revision ⇒ Google::Apis::MonitoringV3::MonitoredResource
An object representing a resource that can be used for monitoring, logging, billing, or other purposes.
-
#name ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudFunctionV2Target
constructor
A new instance of CloudFunctionV2Target.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CloudFunctionV2Target
Returns a new instance of CloudFunctionV2Target.
545 546 547 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 545 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cloud_run_revision ⇒ Google::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 property
cloudRunRevision`
537 538 539 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 537 def cloud_run_revision @cloud_run_revision end |
#name ⇒ String
Required. Fully qualified GCFv2 resource name i.e. projects/project
/
locations/location
/functions/function
Required.
Corresponds to the JSON property name
543 544 545 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 543 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
550 551 552 553 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 550 def update!(**args) @cloud_run_revision = args[:cloud_run_revision] if args.key?(:cloud_run_revision) @name = args[:name] if args.key?(:name) end |