Class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1QueryMetric

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

More info about Metric: https://docs.apigee.com/api-platform/analytics/ analytics-reference#metrics

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudApigeeV1QueryMetric

Returns a new instance of GoogleCloudApigeeV1QueryMetric.



5257
5258
5259
# File 'lib/google/apis/apigee_v1/classes.rb', line 5257

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

Instance Attribute Details

#aliasString

Alias for the metric. Alias will be used to replace metric name in query results. Corresponds to the JSON property alias

Returns:

  • (String)


5235
5236
5237
# File 'lib/google/apis/apigee_v1/classes.rb', line 5235

def alias
  @alias
end

#functionString

Aggregation function: avg, min, max, or sum. Corresponds to the JSON property function

Returns:

  • (String)


5240
5241
5242
# File 'lib/google/apis/apigee_v1/classes.rb', line 5240

def function
  @function
end

#nameString

Required. Metric name. Corresponds to the JSON property name

Returns:

  • (String)


5245
5246
5247
# File 'lib/google/apis/apigee_v1/classes.rb', line 5245

def name
  @name
end

#operatorString

One of +, -, /, %, *. Corresponds to the JSON property operator

Returns:

  • (String)


5250
5251
5252
# File 'lib/google/apis/apigee_v1/classes.rb', line 5250

def operator
  @operator
end

#valueString

Operand value should be provided when operator is set. Corresponds to the JSON property value

Returns:

  • (String)


5255
5256
5257
# File 'lib/google/apis/apigee_v1/classes.rb', line 5255

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5262
5263
5264
5265
5266
5267
5268
# File 'lib/google/apis/apigee_v1/classes.rb', line 5262

def update!(**args)
  @alias = args[:alias] if args.key?(:alias)
  @function = args[:function] if args.key?(:function)
  @name = args[:name] if args.key?(:name)
  @operator = args[:operator] if args.key?(:operator)
  @value = args[:value] if args.key?(:value)
end