Class: Azure::Security::Mgmt::V2017_08_01_preview::Models::TimeWindowCustomAlertRule
- Inherits:
-
Object
- Object
- Azure::Security::Mgmt::V2017_08_01_preview::Models::TimeWindowCustomAlertRule
- Includes:
- MsRestAzure
- Defined in:
- lib/2017-08-01-preview/generated/azure_mgmt_security/models/time_window_custom_alert_rule.rb
Overview
A custom alert rule that checks if the number of activities (depends on the custom alert type) in a time window is within the given range.
Instance Attribute Summary collapse
-
#description ⇒ String
The description of the custom alert.
-
#display_name ⇒ String
The display name of the custom alert.
-
#is_enabled ⇒ Boolean
Whether the custom alert is enabled.
-
#max_threshold ⇒ Integer
The maximum threshold.
-
#min_threshold ⇒ Integer
The minimum threshold.
-
#rule_type ⇒ String
The type of the custom alert rule.
-
#time_window_size ⇒ Duration
The time window size in iso8601 format.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for TimeWindowCustomAlertRule class as Ruby Hash.
Instance Attribute Details
#description ⇒ String
Returns The description of the custom alert.
20 21 22 |
# File 'lib/2017-08-01-preview/generated/azure_mgmt_security/models/time_window_custom_alert_rule.rb', line 20 def description @description end |
#display_name ⇒ String
Returns The display name of the custom alert.
17 18 19 |
# File 'lib/2017-08-01-preview/generated/azure_mgmt_security/models/time_window_custom_alert_rule.rb', line 17 def display_name @display_name end |
#is_enabled ⇒ Boolean
Returns Whether the custom alert is enabled.
23 24 25 |
# File 'lib/2017-08-01-preview/generated/azure_mgmt_security/models/time_window_custom_alert_rule.rb', line 23 def is_enabled @is_enabled end |
#max_threshold ⇒ Integer
Returns The maximum threshold.
32 33 34 |
# File 'lib/2017-08-01-preview/generated/azure_mgmt_security/models/time_window_custom_alert_rule.rb', line 32 def max_threshold @max_threshold end |
#min_threshold ⇒ Integer
Returns The minimum threshold.
29 30 31 |
# File 'lib/2017-08-01-preview/generated/azure_mgmt_security/models/time_window_custom_alert_rule.rb', line 29 def min_threshold @min_threshold end |
#rule_type ⇒ String
Returns The type of the custom alert rule.
26 27 28 |
# File 'lib/2017-08-01-preview/generated/azure_mgmt_security/models/time_window_custom_alert_rule.rb', line 26 def rule_type @rule_type end |
#time_window_size ⇒ Duration
Returns The time window size in iso8601 format.
35 36 37 |
# File 'lib/2017-08-01-preview/generated/azure_mgmt_security/models/time_window_custom_alert_rule.rb', line 35 def time_window_size @time_window_size end |
Class Method Details
.mapper ⇒ Object
Mapper for TimeWindowCustomAlertRule class as Ruby Hash. This will be used for serialization/deserialization.
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 |
# File 'lib/2017-08-01-preview/generated/azure_mgmt_security/models/time_window_custom_alert_rule.rb', line 42 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'TimeWindowCustomAlertRule', type: { name: 'Composite', class_name: 'TimeWindowCustomAlertRule', model_properties: { display_name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'displayName', type: { name: 'String' } }, description: { client_side_validation: true, required: false, read_only: true, serialized_name: 'description', type: { name: 'String' } }, is_enabled: { client_side_validation: true, required: true, serialized_name: 'isEnabled', type: { name: 'Boolean' } }, rule_type: { client_side_validation: true, required: true, serialized_name: 'ruleType', type: { name: 'String' } }, min_threshold: { client_side_validation: true, required: true, serialized_name: 'minThreshold', type: { name: 'Number' } }, max_threshold: { client_side_validation: true, required: true, serialized_name: 'maxThreshold', type: { name: 'Number' } }, time_window_size: { client_side_validation: true, required: true, serialized_name: 'timeWindowSize', type: { name: 'TimeSpan' } } } } } end |