Class: Azure::Security::Mgmt::V2017_08_01_preview::Models::CustomAlertRule
- Inherits:
-
Object
- Object
- Azure::Security::Mgmt::V2017_08_01_preview::Models::CustomAlertRule
- Includes:
- MsRestAzure
- Defined in:
- lib/2017-08-01-preview/generated/azure_mgmt_security/models/custom_alert_rule.rb
Overview
A custom alert rule
Direct Known Subclasses
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.
-
#rule_type ⇒ String
The type of the custom alert rule.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for CustomAlertRule class as Ruby Hash.
Instance Attribute Details
#description ⇒ String
Returns The description of the custom alert.
19 20 21 |
# File 'lib/2017-08-01-preview/generated/azure_mgmt_security/models/custom_alert_rule.rb', line 19 def description @description end |
#display_name ⇒ String
Returns The display name of the custom alert.
16 17 18 |
# File 'lib/2017-08-01-preview/generated/azure_mgmt_security/models/custom_alert_rule.rb', line 16 def display_name @display_name end |
#is_enabled ⇒ Boolean
Returns Whether the custom alert is enabled.
22 23 24 |
# File 'lib/2017-08-01-preview/generated/azure_mgmt_security/models/custom_alert_rule.rb', line 22 def is_enabled @is_enabled end |
#rule_type ⇒ String
Returns The type of the custom alert rule.
25 26 27 |
# File 'lib/2017-08-01-preview/generated/azure_mgmt_security/models/custom_alert_rule.rb', line 25 def rule_type @rule_type end |
Class Method Details
.mapper ⇒ Object
Mapper for CustomAlertRule class as Ruby Hash. This will be used for serialization/deserialization.
32 33 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 |
# File 'lib/2017-08-01-preview/generated/azure_mgmt_security/models/custom_alert_rule.rb', line 32 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'CustomAlertRule', type: { name: 'Composite', class_name: 'CustomAlertRule', 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' } } } } } end |