Class: DatadogAPIClient::V1::WidgetMonitorSummarySort

Inherits:
Object
  • Object
show all
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

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



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

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



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