Class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1StatsEnvironmentStats

Inherits:
Object
  • Object
show all
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 environment wrapper: "environments": [ " metrics": [ "name": "sum(message_count)", "values": [ "2.52056245E8" ] ], " name": "prod" ]

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudApigeeV1StatsEnvironmentStats

Returns a new instance of GoogleCloudApigeeV1StatsEnvironmentStats.


4990
4991
4992
# File 'generated/google/apis/apigee_v1/classes.rb', line 4990

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#dimensionsArray<Google::Apis::ApigeeV1::GoogleCloudApigeeV1DimensionMetric>

This field contains the list of metrics grouped under dimensions. Corresponds to the JSON property dimensions


4970
4971
4972
# File 'generated/google/apis/apigee_v1/classes.rb', line 4970

def dimensions
  @dimensions
end

#metricsArray<Google::Apis::ApigeeV1::GoogleCloudApigeeV1Metric>

In the final response, only one of the following fields will be present based on the dimensions provided. If no dimensions are provided, then only a top level metrics is provided. If dimensions are included, then there will be a top level dimensions field under environments which will contain metrics values and the dimension name. Example: "environments": [ "dimensions": [ " metrics": [ "name": "sum(message_count)", "values": [ "2.14049521E8" ] ], " name": "nit_proxy" ], "name": "prod" ] OR "environments": [ "metrics": [ "name": "sum(message_count)", "values": [ "2.19026331E8" ] ], "name": " prod" ] This field contains the list of metric values. Corresponds to the JSON property metrics


4983
4984
4985
# File 'generated/google/apis/apigee_v1/classes.rb', line 4983

def metrics
  @metrics
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)

4988
4989
4990
# File 'generated/google/apis/apigee_v1/classes.rb', line 4988

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


4995
4996
4997
4998
4999
# File 'generated/google/apis/apigee_v1/classes.rb', line 4995

def update!(**args)
  @dimensions = args[:dimensions] if args.key?(:dimensions)
  @metrics = args[:metrics] if args.key?(:metrics)
  @name = args[:name] if args.key?(:name)
end