Class: Azure::ARM::Monitor::Models::AlertRuleResourcePatch
- Inherits:
-
Object
- Object
- Azure::ARM::Monitor::Models::AlertRuleResourcePatch
- Includes:
- MsRestAzure
- Defined in:
- lib/generated/azure_mgmt_monitor/models/alert_rule_resource_patch.rb
Overview
The alert rule object for patch operations.
Instance Attribute Summary collapse
-
#actions ⇒ Array<RuleAction>
when the alert rule becomes active, and when an alert condition is resolved.
-
#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.
-
#name ⇒ String
The name of the alert rule.
-
#tags ⇒ Hash{String => String}
Resource tags.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for AlertRuleResourcePatch class as Ruby Hash.
Instance Attribute Details
#actions ⇒ Array<RuleAction>
when the alert rule becomes active, and when an alert condition is resolved.
36 37 38 |
# File 'lib/generated/azure_mgmt_monitor/models/alert_rule_resource_patch.rb', line 36 def actions @actions end |
#condition ⇒ RuleCondition
being activated.
31 32 33 |
# File 'lib/generated/azure_mgmt_monitor/models/alert_rule_resource_patch.rb', line 31 def condition @condition end |
#description ⇒ String
included in the alert email.
23 24 25 |
# File 'lib/generated/azure_mgmt_monitor/models/alert_rule_resource_patch.rb', line 23 def description @description end |
#is_enabled ⇒ Boolean
enabled.
27 28 29 |
# File 'lib/generated/azure_mgmt_monitor/models/alert_rule_resource_patch.rb', line 27 def is_enabled @is_enabled end |
#last_updated_time ⇒ DateTime
Returns Last time the rule was updated in ISO8601 format.
39 40 41 |
# File 'lib/generated/azure_mgmt_monitor/models/alert_rule_resource_patch.rb', line 39 def last_updated_time @last_updated_time end |
#name ⇒ String
Returns the name of the alert rule.
19 20 21 |
# File 'lib/generated/azure_mgmt_monitor/models/alert_rule_resource_patch.rb', line 19 def name @name end |
#tags ⇒ Hash{String => String}
Returns Resource tags.
16 17 18 |
# File 'lib/generated/azure_mgmt_monitor/models/alert_rule_resource_patch.rb', line 16 def end |
Class Method Details
.mapper ⇒ Object
Mapper for AlertRuleResourcePatch class as Ruby Hash. This will be used for serialization/deserialization.
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 |
# File 'lib/generated/azure_mgmt_monitor/models/alert_rule_resource_patch.rb', line 46 def self.mapper() { required: false, serialized_name: 'AlertRuleResourcePatch', type: { name: 'Composite', class_name: 'AlertRuleResourcePatch', model_properties: { tags: { required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, 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: true, 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 |