Class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1Metric
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::ApigeeV1::GoogleCloudApigeeV1Metric
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - lib/google/apis/apigee_v1/classes.rb,
lib/google/apis/apigee_v1/representations.rb,
lib/google/apis/apigee_v1/representations.rb 
Overview
Encapsulates the metric data point. For 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 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
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.
      6616 6617 6618  | 
    
      # File 'lib/google/apis/apigee_v1/classes.rb', line 6616 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#name ⇒ String
Metric name.
Corresponds to the JSON property name
      6608 6609 6610  | 
    
      # File 'lib/google/apis/apigee_v1/classes.rb', line 6608 def name @name end  | 
  
#values ⇒ Array<Object>
List of metric values. Possible value formats include: "values":["39.0"] or 
"values":[ "value": "39.0", "timestamp": 1232434354]
Corresponds to the JSON property values
      6614 6615 6616  | 
    
      # File 'lib/google/apis/apigee_v1/classes.rb', line 6614 def values @values end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      6621 6622 6623 6624  | 
    
      # File 'lib/google/apis/apigee_v1/classes.rb', line 6621 def update!(**args) @name = args[:name] if args.key?(:name) @values = args[:values] if args.key?(:values) end  |