Class: DatadogAPIClient::V2::SecurityMonitoringRuleKeepAlive

Inherits:
Object
  • Object
show all
Includes:
BaseEnumModel
Defined in:
lib/datadog_api_client/v2/models/security_monitoring_rule_keep_alive.rb,
lib/datadog_api_client/v2/models/security_monitoring_rule_keep_alive.rb

Overview

Once a signal is generated, the signal will remain “open” if a case is matched at least once within this keep alive window. For third party detection method, this field is not used.

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

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



35
36
37
# 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

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



42
43
44
45
# 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 }
  constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value
end