Class: Azure::AlertsManagement::Mgmt::V2019_05_05_preview::Models::ActionRuleProperties
- Inherits:
-
Object
- Object
- Azure::AlertsManagement::Mgmt::V2019_05_05_preview::Models::ActionRuleProperties
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/action_rule_properties.rb
Overview
Action rule properties defining scope, conditions, suppression logic for action rule
Direct Known Subclasses
Constant Summary collapse
- @@discriminatorMap =
Hash.new
Instance Attribute Summary collapse
-
#conditions ⇒ Conditions
Conditions on which alerts will be filtered.
-
#created_at ⇒ DateTime
format.
-
#created_by ⇒ String
Created by user name.
-
#description ⇒ String
Description of action rule.
-
#last_modified_at ⇒ DateTime
ISO-8601 format.
-
#last_modified_by ⇒ String
Last modified by user name.
-
#scope ⇒ Scope
Scope on which action rule will apply.
-
#status ⇒ ActionRuleStatus
enabled or disabled.
-
#type ⇒ Object
Returns the value of attribute type.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ActionRuleProperties class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ ActionRuleProperties
constructor
A new instance of ActionRuleProperties.
Constructor Details
#initialize ⇒ ActionRuleProperties
Returns a new instance of ActionRuleProperties.
21 22 23 |
# File 'lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/action_rule_properties.rb', line 21 def initialize @type = "ActionRuleProperties" end |
Instance Attribute Details
#conditions ⇒ Conditions
Returns conditions on which alerts will be filtered.
31 32 33 |
# File 'lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/action_rule_properties.rb', line 31 def conditions @conditions end |
#created_at ⇒ DateTime
format.
38 39 40 |
# File 'lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/action_rule_properties.rb', line 38 def created_at @created_at end |
#created_by ⇒ String
Returns Created by user name.
45 46 47 |
# File 'lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/action_rule_properties.rb', line 45 def created_by @created_by end |
#description ⇒ String
Returns Description of action rule.
34 35 36 |
# File 'lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/action_rule_properties.rb', line 34 def description @description end |
#last_modified_at ⇒ DateTime
ISO-8601 format.
42 43 44 |
# File 'lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/action_rule_properties.rb', line 42 def last_modified_at @last_modified_at end |
#last_modified_by ⇒ String
Returns Last modified by user name.
48 49 50 |
# File 'lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/action_rule_properties.rb', line 48 def last_modified_by @last_modified_by end |
#scope ⇒ Scope
Returns scope on which action rule will apply.
28 29 30 |
# File 'lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/action_rule_properties.rb', line 28 def scope @scope end |
#status ⇒ ActionRuleStatus
enabled or disabled. Possible values include: ‘Enabled’, ‘Disabled’
52 53 54 |
# File 'lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/action_rule_properties.rb', line 52 def status @status end |
#type ⇒ Object
Returns the value of attribute type.
25 26 27 |
# File 'lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/action_rule_properties.rb', line 25 def type @type end |
Class Method Details
.mapper ⇒ Object
Mapper for ActionRuleProperties class as Ruby Hash. This will be used for serialization/deserialization.
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 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 |
# File 'lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/action_rule_properties.rb', line 59 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ActionRuleProperties', type: { name: 'Composite', polymorphic_discriminator: 'type', uber_parent: 'ActionRuleProperties', class_name: 'ActionRuleProperties', model_properties: { scope: { client_side_validation: true, required: false, serialized_name: 'scope', type: { name: 'Composite', class_name: 'Scope' } }, conditions: { client_side_validation: true, required: false, serialized_name: 'conditions', type: { name: 'Composite', class_name: 'Conditions' } }, description: { client_side_validation: true, required: false, serialized_name: 'description', type: { name: 'String' } }, created_at: { client_side_validation: true, required: false, read_only: true, serialized_name: 'createdAt', type: { name: 'DateTime' } }, last_modified_at: { client_side_validation: true, required: false, read_only: true, serialized_name: 'lastModifiedAt', type: { name: 'DateTime' } }, created_by: { client_side_validation: true, required: false, read_only: true, serialized_name: 'createdBy', type: { name: 'String' } }, last_modified_by: { client_side_validation: true, required: false, read_only: true, serialized_name: 'lastModifiedBy', type: { name: 'String' } }, status: { client_side_validation: true, required: false, serialized_name: 'status', type: { name: 'String' } } } } } end |