class DatadogAPIClient::V2::LogsAggregationFunction

Constants

AVG
CARDINALITY
COUNT
MAX
MIN
PERCENTILE_75
PERCENTILE_90
PERCENTILE_95
PERCENTILE_98
PERCENTILE_99
SUM

Public Class Methods

build_from_hash(value) click to toggle source

Builds the enum from string @param [String] The enum value in the form of the string @return [String] The enum value

# File lib/datadog_api_client/v2/models/logs_aggregation_function.rb, line 36
def self.build_from_hash(value)
  new.build_from_hash(value)
end

Public Instance Methods

build_from_hash(value) click to toggle source

Builds the enum from string @param [String] The enum value in the form of the string @return [String] The enum value

# File lib/datadog_api_client/v2/models/logs_aggregation_function.rb, line 43
def build_from_hash(value)
  constantValues = LogsAggregationFunction.constants.select { |c| LogsAggregationFunction::const_get(c) == value }
  raise "Invalid ENUM value #{value} for class #LogsAggregationFunction" if constantValues.empty?
  value
end