MonitoredResource class

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" }}

Constructors

MonitoredResource({Map<String, String>? labels, String? type})
MonitoredResource.fromJson(Map json_)

Properties

hashCode int
The hash code for this object.
no setterinherited
labels Map<String, String>?
Values for all of the labels listed in the associated monitored resource descriptor.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String?
The monitored resource type.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited