Class: DatadogAPIClient::V1::FormulaAndFunctionApmResourceStatName

Inherits:
Object
  • Object
show all
Includes:
BaseEnumModel
Defined in:
lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stat_name.rb,
lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stat_name.rb

Overview

APM resource stat name.

Constant Summary collapse

ERRORS =
"errors".freeze
ERROR_RATE =
"error_rate".freeze
HITS =
"hits".freeze
LATENCY_AVG =
"latency_avg".freeze
LATENCY_MAX =
"latency_max".freeze
LATENCY_P50 =
"latency_p50".freeze
LATENCY_P75 =
"latency_p75".freeze
LATENCY_P90 =
"latency_p90".freeze
LATENCY_P95 =
"latency_p95".freeze
LATENCY_P99 =
"latency_p99".freeze
LATENCY_DISTRIBUTION =
"latency_distribution".freeze

Class Method Summary collapse

Instance Method Summary collapse

Methods included from BaseEnumModel

included

Class Method Details

.build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



35
36
37
# File 'lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stat_name.rb', line 35

def self.build_from_hash(value)
  new.build_from_hash(value)
end

Instance Method Details

#build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



42
43
44
45
# File 'lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stat_name.rb', line 42

def build_from_hash(value)
  constantValues = FormulaAndFunctionApmResourceStatName.constants.select { |c| FormulaAndFunctionApmResourceStatName::const_get(c) == value }
  constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value
end