Class: DatadogAPIClient::V1::WidgetMonitorSummarySort
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::WidgetMonitorSummarySort
- Includes:
- BaseEnumModel
- Defined in:
- lib/datadog_api_client/v1/models/widget_monitor_summary_sort.rb,
lib/datadog_api_client/v1/models/widget_monitor_summary_sort.rb
Overview
Widget sorting methods.
Constant Summary collapse
- NAME =
"name".freeze
- GROUP =
"group".freeze
- STATUS =
"status".freeze
- TAGS =
"tags".freeze
- TRIGGERED =
"triggered".freeze
- GROUP_ASCENDING =
"group,asc".freeze
- GROUP_DESCENDING =
"group,desc".freeze
- NAME_ASCENDING =
"name,asc".freeze
- NAME_DESCENDING =
"name,desc".freeze
- STATUS_ASCENDING =
"status,asc".freeze
- STATUS_DESCENDING =
"status,desc".freeze
- TAGS_ASCENDING =
"tags,asc".freeze
- TAGS_DESCENDING =
"tags,desc".freeze
- TRIGGERED_ASCENDING =
"triggered,asc".freeze
- TRIGGERED_DESCENDING =
"triggered,desc".freeze
- PRIORITY_ASCENDING =
"priority,asc".freeze
- PRIORITY_DESCENDING =
"priority,desc".freeze
Class Method Summary collapse
-
.build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Methods included from BaseEnumModel
Class Method Details
.build_from_hash(value) ⇒ String
Builds the enum from string
40 41 42 |
# File 'lib/datadog_api_client/v1/models/widget_monitor_summary_sort.rb', line 40 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
47 48 49 50 |
# File 'lib/datadog_api_client/v1/models/widget_monitor_summary_sort.rb', line 47 def build_from_hash(value) constantValues = WidgetMonitorSummarySort.constants.select { |c| WidgetMonitorSummarySort::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end |