class Google::Apis::ApigeeV1::GoogleCloudApigeeV1Metric

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”] `

Attributes

name[RW]

This field contains the metric name. Corresponds to the JSON property `name` @return [String]

values[RW]

List of metric values. Possible value format: “values”: or “values”:[ ` “value”: “39.0”, “timestamp”: 1232434354` ] Corresponds to the JSON property `values` @return [Array<Object>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/apigee_v1/classes.rb, line 4629
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/apigee_v1/classes.rb, line 4634
def update!(**args)
  @name = args[:name] if args.key?(:name)
  @values = args[:values] if args.key?(:values)
end