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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudApigeeV1StatsEnvironmentStats

Returns a new instance of GoogleCloudApigeeV1StatsEnvironmentStats.



7062
7063
7064
# File 'lib/google/apis/apigee_v1/classes.rb', line 7062

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

Instance Attribute Details

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

List of metrics grouped under dimensions. Corresponds to the JSON property dimensions



7042
7043
7044
# File 'lib/google/apis/apigee_v1/classes.rb', line 7042

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 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" ` ] List of metric values. Corresponds to the JSON property metrics



7055
7056
7057
# File 'lib/google/apis/apigee_v1/classes.rb', line 7055

def metrics
  @metrics
end

#nameString

Name of the environment. Corresponds to the JSON property name

Returns:

  • (String)


7060
7061
7062
# File 'lib/google/apis/apigee_v1/classes.rb', line 7060

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7067
7068
7069
7070
7071
# File 'lib/google/apis/apigee_v1/classes.rb', line 7067

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