Class: Azure::ARM::Monitor::Models::AlertRuleResourcePatch
- Inherits:
-
Object
- Object
- Azure::ARM::Monitor::Models::AlertRuleResourcePatch
- Includes:
- MsRest::JSONable, 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.
37 38 39 |
# File 'lib/generated/azure_mgmt_monitor/models/alert_rule_resource_patch.rb', line 37 def actions @actions end |
#condition ⇒ RuleCondition
being activated.
32 33 34 |
# File 'lib/generated/azure_mgmt_monitor/models/alert_rule_resource_patch.rb', line 32 def condition @condition end |
#description ⇒ String
included in the alert email.
24 25 26 |
# File 'lib/generated/azure_mgmt_monitor/models/alert_rule_resource_patch.rb', line 24 def description @description end |
#is_enabled ⇒ Boolean
enabled.
28 29 30 |
# File 'lib/generated/azure_mgmt_monitor/models/alert_rule_resource_patch.rb', line 28 def is_enabled @is_enabled end |
#last_updated_time ⇒ DateTime
Returns Last time the rule was updated in ISO8601 format.
40 41 42 |
# File 'lib/generated/azure_mgmt_monitor/models/alert_rule_resource_patch.rb', line 40 def last_updated_time @last_updated_time end |
#name ⇒ String
Returns the name of the alert rule.
20 21 22 |
# File 'lib/generated/azure_mgmt_monitor/models/alert_rule_resource_patch.rb', line 20 def name @name end |
#tags ⇒ Hash{String => String}
Returns Resource tags.
17 18 19 |
# File 'lib/generated/azure_mgmt_monitor/models/alert_rule_resource_patch.rb', line 17 def @tags end |
Class Method Details
.mapper ⇒ Object
Mapper for AlertRuleResourcePatch class as Ruby Hash. This will be used for serialization/deserialization.
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 |
# File 'lib/generated/azure_mgmt_monitor/models/alert_rule_resource_patch.rb', line 47 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 |