Class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1OptimizedStatsResponse

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 a response format for JavaScript Optimized Scenario.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudApigeeV1OptimizedStatsResponse

Returns a new instance of GoogleCloudApigeeV1OptimizedStatsResponse.



7205
7206
7207
# File 'lib/google/apis/apigee_v1/classes.rb', line 7205

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

Instance Attribute Details

#meta_dataGoogle::Apis::ApigeeV1::GoogleCloudApigeeV1Metadata

Encapsulates additional information about query execution. Corresponds to the JSON property metaData



7186
7187
7188
# File 'lib/google/apis/apigee_v1/classes.rb', line 7186

def 
  @meta_data
end

#result_truncatedBoolean Also known as: result_truncated?

Boolean flag that indicates whether the results were truncated based on the limit parameter. Corresponds to the JSON property resultTruncated

Returns:

  • (Boolean)


7192
7193
7194
# File 'lib/google/apis/apigee_v1/classes.rb', line 7192

def result_truncated
  @result_truncated
end

#statsGoogle::Apis::ApigeeV1::GoogleCloudApigeeV1OptimizedStatsNode

Encapsulates a data node as represented below: ` "identifier": ` "names": [ "apiproxy" ], "values": [ "sirjee" ] `, "metric": [ ` "env": "prod", "name": " sum(message_count)", "values": [ 36.0 ] ` ]or` "env": "prod", "name" : "sum(message_count)", "values": [ 36.0 ]`Depending on whether a dimension is present in the query or not the data node type can be a simple metric value or dimension identifier with list of metrics. Corresponds to the JSON propertystats`



7203
7204
7205
# File 'lib/google/apis/apigee_v1/classes.rb', line 7203

def stats
  @stats
end

#time_unitArray<Fixnum>

List of time unit values. Time unit refers to an epoch timestamp value. Corresponds to the JSON property TimeUnit

Returns:

  • (Array<Fixnum>)


7181
7182
7183
# File 'lib/google/apis/apigee_v1/classes.rb', line 7181

def time_unit
  @time_unit
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7210
7211
7212
7213
7214
7215
# File 'lib/google/apis/apigee_v1/classes.rb', line 7210

def update!(**args)
  @time_unit = args[:time_unit] if args.key?(:time_unit)
  @meta_data = args[:meta_data] if args.key?(:meta_data)
  @result_truncated = args[:result_truncated] if args.key?(:result_truncated)
  @stats = args[:stats] if args.key?(:stats)
end