class DatadogAPIClient::V2::SecurityMonitoringRuleKeepAlive
Constants
- FIFTEEN_MINUTES
- FIVE_MINUTES
- ONE_HOUR
- ONE_MINUTE
- SIX_HOURS
- TEN_MINUTES
- THIRTY_MINUTES
- THREE_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_keep_alive.rb, line 35 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_keep_alive.rb, line 42 def build_from_hash(value) constantValues = SecurityMonitoringRuleKeepAlive.constants.select { |c| SecurityMonitoringRuleKeepAlive::const_get(c) == value } raise "Invalid ENUM value #{value} for class #SecurityMonitoringRuleKeepAlive" if constantValues.empty? value end