class Google::Apis::ApigeeV1::GoogleCloudApigeeV1QueryMetric
More info about Metric: docs.apigee.com/api-platform/analytics/ analytics-reference#metrics
Attributes
alias[RW]
Alias for the metric. Alias will be used to replace metric name in query results. Corresponds to the JSON property `alias` @return [String]
function[RW]
Aggregation function: avg, min, max, or sum. Corresponds to the JSON property `function` @return [String]
name[RW]
Required. Metric name. Corresponds to the JSON property `name` @return [String]
operator[RW]
One of `+`, `-`, `/`, `%`, `*`. Corresponds to the JSON property `operator` @return [String]
value[RW]
Operand value should be provided when operator is set. Corresponds to the JSON property `value` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/apigee_v1/classes.rb, line 5517 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 5522 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