Class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1StatsHostStats
- Inherits:
-
Object
- Object
- Google::Apis::ApigeeV1::GoogleCloudApigeeV1StatsHostStats
- 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
This message type encapsulates the hostname wrapper: "hosts": [ "metrics": [
"name": "sum(message_count)", "values": [ "2.52056245E8" ] ], "name": "
example.com" ]
Instance Attribute Summary collapse
-
#dimensions ⇒ Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1DimensionMetric>
This field contains the list of metrics grouped under dimensions.
-
#metrics ⇒ Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1Metric>
In the final response, only one of the following fields will be present based on the dimensions provided.
-
#name ⇒ String
This field contains the hostname used in query.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudApigeeV1StatsHostStats
constructor
A new instance of GoogleCloudApigeeV1StatsHostStats.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudApigeeV1StatsHostStats
Returns a new instance of GoogleCloudApigeeV1StatsHostStats.
5837 5838 5839 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 5837 def initialize(**args) update!(**args) end |
Instance Attribute Details
#dimensions ⇒ Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1DimensionMetric>
This field contains the list of metrics grouped under dimensions.
Corresponds to the JSON property dimensions
5817 5818 5819 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 5817 def dimensions @dimensions end |
#metrics ⇒ Array<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 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
5830 5831 5832 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 5830 def metrics @metrics end |
#name ⇒ String
This field contains the hostname used in query.
Corresponds to the JSON property name
5835 5836 5837 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 5835 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5842 5843 5844 5845 5846 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 5842 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 |