Class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1StatsHostStats

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 hostname wrapper: "hosts": [ ` "metrics": [ ` "name": " sum(message_count)", "values": [ "2.52056245E8" ] ` ], "name": "example.com" ` ]

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudApigeeV1StatsHostStats

Returns a new instance of GoogleCloudApigeeV1StatsHostStats.



10848
10849
10850
# File 'lib/google/apis/apigee_v1/classes.rb', line 10848

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



10828
10829
10830
# File 'lib/google/apis/apigee_v1/classes.rb', line 10828

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 the top- level metrics are provided. If dimensions are included, then there will be a top-level dimensions field under hostnames which will contain metrics values and the dimension name. Example: "hosts": [ ` "dimensions": [ ` "metrics": [ ` "name": "sum(message_count)", "values": [ "2.14049521E8" ] ` ], "name": " nit_proxy" ` ], "name": "example.com" ` ] OR "hosts": [ ` "metrics": [ ` "name": "sum(message_count)", "values": [ "2.19026331E8" ] ` ], "name": " example.com" ` ] List of metric values. Corresponds to the JSON property metrics



10841
10842
10843
# File 'lib/google/apis/apigee_v1/classes.rb', line 10841

def metrics
  @metrics
end

#nameString

Hostname used in query. Corresponds to the JSON property name

Returns:

  • (String)


10846
10847
10848
# File 'lib/google/apis/apigee_v1/classes.rb', line 10846

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10853
10854
10855
10856
10857
# File 'lib/google/apis/apigee_v1/classes.rb', line 10853

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