Class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1Metric
- Inherits:
-
Object
- Object
- Google::Apis::ApigeeV1::GoogleCloudApigeeV1Metric
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/apigee_v1/classes.rb,
generated/google/apis/apigee_v1/representations.rb,
generated/google/apis/apigee_v1/representations.rb
Overview
This message type encapsulates the metric data point. Example: "name": "sum(
message_count)", "values" : [
"timestamp": 1549004400000, "value": "39.0" ,
"timestamp" : 1548997200000, "value" : "0.0" ]
or "name": "sum(
message_count)", "values" : ["39.0"]
Instance Attribute Summary collapse
-
#name ⇒ String
This field contains the metric name.
-
#values ⇒ Array<Object>
List of metric values.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudApigeeV1Metric
constructor
A new instance of GoogleCloudApigeeV1Metric.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudApigeeV1Metric
Returns a new instance of GoogleCloudApigeeV1Metric.
3944 3945 3946 |
# File 'generated/google/apis/apigee_v1/classes.rb', line 3944 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
This field contains the metric name.
Corresponds to the JSON property name
3936 3937 3938 |
# File 'generated/google/apis/apigee_v1/classes.rb', line 3936 def name @name end |
#values ⇒ Array<Object>
List of metric values. Possible value format: "values":["39.0"] or "values":[
"value": "39.0", "timestamp": 1232434354
]
Corresponds to the JSON property values
3942 3943 3944 |
# File 'generated/google/apis/apigee_v1/classes.rb', line 3942 def values @values end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3949 3950 3951 3952 |
# File 'generated/google/apis/apigee_v1/classes.rb', line 3949 def update!(**args) @name = args[:name] if args.key?(:name) @values = args[:values] if args.key?(:values) end |