class DatadogAPIClient::V2::SecurityMonitoringRuleMaxSignalDuration

Constants

FIFTEEN_MINUTES
FIVE_MINUTES
ONE_DAY
ONE_HOUR
ONE_MINUTE
SIX_HOURS
TEN_MINUTES
THIRTY_MINUTES
THREE_HOURS
TWELVE_HOURS
TWO_HOURS
ZERO_MINUTES

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/v2/models/security_monitoring_rule_max_signal_duration.rb, line 37
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/v2/models/security_monitoring_rule_max_signal_duration.rb, line 44
def build_from_hash(value)
  constantValues = SecurityMonitoringRuleMaxSignalDuration.constants.select { |c| SecurityMonitoringRuleMaxSignalDuration::const_get(c) == value }
  raise "Invalid ENUM value #{value} for class #SecurityMonitoringRuleMaxSignalDuration" if constantValues.empty?
  value
end