Class: DatadogAPIClient::V2::SecurityMonitoringRuleMaxSignalDuration
- Inherits:
-
Object
- Object
- DatadogAPIClient::V2::SecurityMonitoringRuleMaxSignalDuration
- Includes:
- BaseEnumModel
- Defined in:
- lib/datadog_api_client/v2/models/security_monitoring_rule_max_signal_duration.rb,
lib/datadog_api_client/v2/models/security_monitoring_rule_max_signal_duration.rb
Overview
A signal will “close” regardless of the query being matched once the time exceeds the maximum duration. This time is calculated from the first seen timestamp.
Constant Summary collapse
- ZERO_MINUTES =
0.freeze
- ONE_MINUTE =
60.freeze
- FIVE_MINUTES =
300.freeze
- TEN_MINUTES =
600.freeze
- FIFTEEN_MINUTES =
900.freeze
- THIRTY_MINUTES =
1800.freeze
- ONE_HOUR =
3600.freeze
- TWO_HOURS =
7200.freeze
- THREE_HOURS =
10800.freeze
- SIX_HOURS =
21600.freeze
- TWELVE_HOURS =
43200.freeze
- ONE_DAY =
86400.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
37 38 39 |
# 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 |
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
44 45 46 47 |
# 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 } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end |