Class: Azure::ARM::Insights::Models::AlertRuleResource
- Inherits:
-
MsRestAzure::Resource
- Object
- MsRestAzure::Resource
- Azure::ARM::Insights::Models::AlertRuleResource
- Includes:
- MsRestAzure
- Defined in:
- lib/generated/azure_mgmt_insights/models/alert_rule_resource.rb
Overview
The alert rule resource.
Instance Attribute Summary collapse
-
#actions ⇒ Array<RuleAction>
when the alert rule becomes active, and when an alert condition is resolved.
-
#alert_rule_resource_name ⇒ String
The name of the alert rule.
-
#condition ⇒ RuleCondition
being activated.
-
#description ⇒ String
included in the alert email.
-
#is_enabled ⇒ Boolean
enabled.
-
#last_updated_time ⇒ DateTime
Last time the rule was updated in ISO8601 format.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for AlertRuleResource class as Ruby Hash.
Instance Attribute Details
#actions ⇒ Array<RuleAction>
when the alert rule becomes active, and when an alert condition is resolved.
33 34 35 |
# File 'lib/generated/azure_mgmt_insights/models/alert_rule_resource.rb', line 33 def actions @actions end |
#alert_rule_resource_name ⇒ String
Returns the name of the alert rule.
16 17 18 |
# File 'lib/generated/azure_mgmt_insights/models/alert_rule_resource.rb', line 16 def alert_rule_resource_name @alert_rule_resource_name end |
#condition ⇒ RuleCondition
being activated.
28 29 30 |
# File 'lib/generated/azure_mgmt_insights/models/alert_rule_resource.rb', line 28 def condition @condition end |
#description ⇒ String
included in the alert email.
20 21 22 |
# File 'lib/generated/azure_mgmt_insights/models/alert_rule_resource.rb', line 20 def description @description end |
#is_enabled ⇒ Boolean
enabled.
24 25 26 |
# File 'lib/generated/azure_mgmt_insights/models/alert_rule_resource.rb', line 24 def is_enabled @is_enabled end |
#last_updated_time ⇒ DateTime
Returns Last time the rule was updated in ISO8601 format.
36 37 38 |
# File 'lib/generated/azure_mgmt_insights/models/alert_rule_resource.rb', line 36 def last_updated_time @last_updated_time end |
Class Method Details
.mapper ⇒ Object
Mapper for AlertRuleResource class as Ruby Hash. This will be used for serialization/deserialization.
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 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 144 145 146 147 148 149 150 151 152 153 154 |
# File 'lib/generated/azure_mgmt_insights/models/alert_rule_resource.rb', line 43 def self.mapper() { required: false, serialized_name: 'AlertRuleResource', type: { name: 'Composite', class_name: 'AlertRuleResource', model_properties: { id: { required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, name: { required: false, serialized_name: 'name', type: { name: 'String' } }, type: { required: false, read_only: true, serialized_name: 'type', type: { name: 'String' } }, location: { required: true, serialized_name: 'location', type: { name: 'String' } }, tags: { required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, alert_rule_resource_name: { required: true, serialized_name: 'properties.name', type: { name: 'String' } }, description: { required: false, serialized_name: 'properties.description', type: { name: 'String' } }, is_enabled: { required: true, serialized_name: 'properties.isEnabled', type: { name: 'Boolean' } }, condition: { required: false, serialized_name: 'properties.condition', type: { name: 'Composite', polymorphic_discriminator: 'odata.type', uber_parent: 'RuleCondition', class_name: 'RuleCondition' } }, actions: { required: false, serialized_name: 'properties.actions', type: { name: 'Sequence', element: { required: false, serialized_name: 'RuleActionElementType', type: { name: 'Composite', polymorphic_discriminator: 'odata.type', uber_parent: 'RuleAction', class_name: 'RuleAction' } } } }, last_updated_time: { required: false, read_only: true, serialized_name: 'properties.lastUpdatedTime', type: { name: 'DateTime' } } } } } end |