class DatadogAPIClient::V1::WidgetLiveSpan
Constants
- ALERT
- PAST_FIFTEEN_MINUTES
- PAST_FIVE_MINUTES
- PAST_FOUR_HOURS
- PAST_ONE_DAY
- PAST_ONE_HOUR
- PAST_ONE_MINUTE
- PAST_ONE_MONTH
- PAST_ONE_WEEK
- PAST_ONE_YEAR
- PAST_SIX_MONTHS
- PAST_TEN_MINUTES
- PAST_THIRTY_MINUTES
- PAST_THREE_MONTHS
- PAST_TWO_DAYS
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/widget_live_span.rb, line 40 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/widget_live_span.rb, line 47 def build_from_hash(value) constantValues = WidgetLiveSpan.constants.select { |c| WidgetLiveSpan::const_get(c) == value } raise "Invalid ENUM value #{value} for class #WidgetLiveSpan" if constantValues.empty? value end