class Google::Apis::ApigeeV1::GoogleCloudApigeeV1StatsHostStats

This message type encapsulates the hostname wrapper: “hosts”: [ ` “metrics”: [ ` “name”: “sum(message_count)”, “values”: [ “2.52056245E8” ] ` ], “name”: “ example.com” ` ]

Attributes

dimensions[RW]

This field contains the list of metrics grouped under dimensions. Corresponds to the JSON property `dimensions` @return [Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1DimensionMetric>]

metrics[RW]

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 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” ` ] This field contains the list of metric values. Corresponds to the JSON property `metrics` @return [Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1Metric>]

name[RW]

This field contains the hostname used in query. Corresponds to the JSON property `name` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/apigee_v1/classes.rb, line 6804
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 6809
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