Class: Google::Apis::MonitoringV3::CreateCollectdTimeSeriesRequest
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV3::CreateCollectdTimeSeriesRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/monitoring_v3/classes.rb,
generated/google/apis/monitoring_v3/representations.rb,
generated/google/apis/monitoring_v3/representations.rb
Overview
The CreateCollectdTimeSeries request.
Instance Attribute Summary collapse
-
#collectd_payloads ⇒ Array<Google::Apis::MonitoringV3::CollectdPayload>
The collectd payloads representing the time series data.
-
#collectd_version ⇒ String
The version of collectd that collected the data.
-
#resource ⇒ Google::Apis::MonitoringV3::MonitoredResource
An object representing a resource that can be used for monitoring, logging, billing, or other purposes.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CreateCollectdTimeSeriesRequest
constructor
A new instance of CreateCollectdTimeSeriesRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CreateCollectdTimeSeriesRequest
Returns a new instance of CreateCollectdTimeSeriesRequest.
1245 1246 1247 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1245 def initialize(**args) update!(**args) end |
Instance Attribute Details
#collectd_payloads ⇒ Array<Google::Apis::MonitoringV3::CollectdPayload>
The collectd payloads representing the time series data. You must not include
more than a single point for each time series, so no two payloads can have the
same values for all of the fields plugin, plugin_instance, type, and
type_instance.
Corresponds to the JSON property collectdPayloads
1221 1222 1223 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1221 def collectd_payloads @collectd_payloads end |
#collectd_version ⇒ String
The version of collectd that collected the data. Example: "5.3.0-192.el6&
quot;.
Corresponds to the JSON property collectdVersion
1227 1228 1229 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1227 def collectd_version @collectd_version end |
#resource ⇒ 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 "
instance_id" and "zone":
"type": "gce_instance",
"labels":
"instance_id": "12345678901234",
"zone": "us-central1-a" `
Corresponds to the JSON property
resource`
1243 1244 1245 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1243 def resource @resource end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1250 1251 1252 1253 1254 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1250 def update!(**args) @collectd_payloads = args[:collectd_payloads] if args.key?(:collectd_payloads) @collectd_version = args[:collectd_version] if args.key?(:collectd_version) @resource = args[:resource] if args.key?(:resource) end |