Class: Azure::Security::Mgmt::V2017_08_01_preview::Models::ThresholdCustomAlertRule
- Inherits:
-
CustomAlertRule
- Object
- CustomAlertRule
- Azure::Security::Mgmt::V2017_08_01_preview::Models::ThresholdCustomAlertRule
- Includes:
- MsRestAzure
- Defined in:
- lib/2017-08-01-preview/generated/azure_mgmt_security/models/threshold_custom_alert_rule.rb
Overview
A custom alert rule that checks if a value (depends on the custom alert type) is within the given range.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#max_threshold ⇒ Integer
The maximum threshold.
-
#min_threshold ⇒ Integer
The minimum threshold.
-
#ruleType ⇒ Object
Returns the value of attribute ruleType.
Attributes inherited from CustomAlertRule
#description, #display_name, #is_enabled
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ThresholdCustomAlertRule class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ ThresholdCustomAlertRule
constructor
A new instance of ThresholdCustomAlertRule.
Constructor Details
#initialize ⇒ ThresholdCustomAlertRule
Returns a new instance of ThresholdCustomAlertRule.
17 18 19 |
# File 'lib/2017-08-01-preview/generated/azure_mgmt_security/models/threshold_custom_alert_rule.rb', line 17 def initialize @ruleType = "ThresholdCustomAlertRule" end |
Instance Attribute Details
#max_threshold ⇒ Integer
Returns The maximum threshold.
27 28 29 |
# File 'lib/2017-08-01-preview/generated/azure_mgmt_security/models/threshold_custom_alert_rule.rb', line 27 def max_threshold @max_threshold end |
#min_threshold ⇒ Integer
Returns The minimum threshold.
24 25 26 |
# File 'lib/2017-08-01-preview/generated/azure_mgmt_security/models/threshold_custom_alert_rule.rb', line 24 def min_threshold @min_threshold end |
#ruleType ⇒ Object
Returns the value of attribute ruleType.
21 22 23 |
# File 'lib/2017-08-01-preview/generated/azure_mgmt_security/models/threshold_custom_alert_rule.rb', line 21 def ruleType @ruleType end |
Class Method Details
.mapper ⇒ Object
Mapper for ThresholdCustomAlertRule class as Ruby Hash. This will be used for serialization/deserialization.
34 35 36 37 38 39 40 41 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 |
# File 'lib/2017-08-01-preview/generated/azure_mgmt_security/models/threshold_custom_alert_rule.rb', line 34 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ThresholdCustomAlertRule', type: { name: 'Composite', class_name: 'ThresholdCustomAlertRule', 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' } }, ruleType: { 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' } } } } } end |