class DatadogAPIClient::V1::UsageAttributionSort
Constants
- API_PERCENTAGE
- API_USAGE
- APM_HOST_PERCENTAGE
- APM_HOST_USAGE
- BROWSER_PERCENTAGE
- BROWSER_USAGE
- CONTAINER_PERCENTAGE
- CONTAINER_USAGE
- CUSTOM_TIMESERIES_PERCENTAGE
- CUSTOM_TIMESERIES_USAGE
- INFRA_HOST_PERCENTAGE
- INFRA_HOST_USAGE
- LAMBDA_FUNCTIONS_PERCENTAGE
- LAMBDA_FUNCTIONS_USAGE
- LAMBDA_INVOCATIONS_PERCENTAGE
- LAMBDA_INVOCATIONS_USAGE
- LAMBDA_PERCENTAGE
- LAMBDA_USAGE
- NPM_HOST_PERCENTAGE
- NPM_HOST_USAGE
- SNMP_PERCENTAGE
- SNMP_USAGE
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/v1/models/usage_attribution_sort.rb, line 47 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/v1/models/usage_attribution_sort.rb, line 54 def build_from_hash(value) constantValues = UsageAttributionSort.constants.select { |c| UsageAttributionSort::const_get(c) == value } raise "Invalid ENUM value #{value} for class #UsageAttributionSort" if constantValues.empty? value end