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