Class: Azure::AlertsManagement::Mgmt::V2018_05_05_preview::Models::Alert
- Inherits:
-
Resource
- Object
- Resource
- Azure::AlertsManagement::Mgmt::V2018_05_05_preview::Models::Alert
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alert.rb
Overview
An alert created in alert management service.
Instance Attribute Summary collapse
-
#alert_state ⇒ AlertState
‘New’, ‘Acknowledged’, ‘Closed’.
-
#last_modified_date_time ⇒ DateTime
Last modification time(ISO-8601 format).
-
#last_modified_user_name ⇒ String
User who last modified the alert.
-
#monitor_condition ⇒ MonitorCondition
service.
-
#monitor_service ⇒ MonitorService
alert object.
-
#payload ⇒ Object
More details which are contextual to the monitor service.
-
#severity ⇒ Severity
lowest.
-
#signal_type ⇒ SignalType
values include: ‘Metric’, ‘Log’, ‘Unknown’.
-
#smart_group_id ⇒ String
Unique Id of the smart group.
-
#smart_grouping_reason ⇒ String
Reason for addition to a smart group.
-
#source_created_id ⇒ String
Unique Id created by monitor service.
-
#start_date_time ⇒ DateTime
Creation time(ISO-8601 format).
-
#target_resource ⇒ String
Target ARM resource, on which alert got created.
-
#target_resource_group ⇒ String
Resource group of target ARM resource.
-
#target_resource_name ⇒ String
Target ARM resource name, on which alert got created.
-
#target_resource_type ⇒ String
Resource type of target ARM resource.
Attributes inherited from Resource
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for Alert class as Ruby Hash.
Methods inherited from Resource
Instance Attribute Details
#alert_state ⇒ AlertState
‘New’, ‘Acknowledged’, ‘Closed’
25 26 27 |
# File 'lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alert.rb', line 25 def alert_state @alert_state end |
#last_modified_date_time ⇒ DateTime
64 65 66 |
# File 'lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alert.rb', line 64 def last_modified_date_time @last_modified_date_time end |
#last_modified_user_name ⇒ String
67 68 69 |
# File 'lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alert.rb', line 67 def last_modified_user_name @last_modified_user_name end |
#monitor_condition ⇒ MonitorCondition
service. Possible values include: ‘Fired’, ‘Resolved’
29 30 31 |
# File 'lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alert.rb', line 29 def monitor_condition @monitor_condition end |
#monitor_service ⇒ MonitorService
alert object. Possible values include: ‘Platform’, ‘Application Insights’, ‘Log Analytics’, ‘Infrastructure Insights’, ‘ActivityLog Administrative’, ‘ActivityLog Security’, ‘ActivityLog Recommendation’, ‘ActivityLog Policy’, ‘ActivityLog Autoscale’, ‘ServiceHealth’, ‘SmartDetector’, ‘Zabbix’, ‘SCOM’, ‘Nagios’
49 50 51 |
# File 'lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alert.rb', line 49 def monitor_service @monitor_service end |
#payload ⇒ Object
70 71 72 |
# File 'lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alert.rb', line 70 def payload @payload end |
#severity ⇒ Severity
lowest. Possible values include: ‘Sev0’, ‘Sev1’, ‘Sev2’, ‘Sev3’, ‘Sev4’
17 18 19 |
# File 'lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alert.rb', line 17 def severity @severity end |
#signal_type ⇒ SignalType
values include: ‘Metric’, ‘Log’, ‘Unknown’
21 22 23 |
# File 'lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alert.rb', line 21 def signal_type @signal_type end |
#smart_group_id ⇒ String
55 56 57 |
# File 'lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alert.rb', line 55 def smart_group_id @smart_group_id end |
#smart_grouping_reason ⇒ String
58 59 60 |
# File 'lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alert.rb', line 58 def smart_grouping_reason @smart_grouping_reason end |
#source_created_id ⇒ String
52 53 54 |
# File 'lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alert.rb', line 52 def source_created_id @source_created_id end |
#start_date_time ⇒ DateTime
61 62 63 |
# File 'lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alert.rb', line 61 def start_date_time @start_date_time end |
#target_resource ⇒ String
32 33 34 |
# File 'lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alert.rb', line 32 def target_resource @target_resource end |
#target_resource_group ⇒ String
38 39 40 |
# File 'lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alert.rb', line 38 def target_resource_group @target_resource_group end |
#target_resource_name ⇒ String
35 36 37 |
# File 'lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alert.rb', line 35 def target_resource_name @target_resource_name end |
#target_resource_type ⇒ String
41 42 43 |
# File 'lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alert.rb', line 41 def target_resource_type @target_resource_type end |
Class Method Details
.mapper ⇒ Object
Mapper for Alert class as Ruby Hash. This will be used for serialization/deserialization.
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 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 |
# File 'lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alert.rb', line 77 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'alert', type: { name: 'Composite', class_name: 'Alert', model_properties: { id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, type: { client_side_validation: true, required: false, read_only: true, serialized_name: 'type', type: { name: 'String' } }, name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'name', type: { name: 'String' } }, severity: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.severity', type: { name: 'String' } }, signal_type: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.signalType', type: { name: 'String' } }, alert_state: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.alertState', type: { name: 'String' } }, monitor_condition: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.monitorCondition', type: { name: 'String' } }, target_resource: { client_side_validation: true, required: false, serialized_name: 'properties.targetResource', type: { name: 'String' } }, target_resource_name: { client_side_validation: true, required: false, serialized_name: 'properties.targetResourceName', type: { name: 'String' } }, target_resource_group: { client_side_validation: true, required: false, serialized_name: 'properties.targetResourceGroup', type: { name: 'String' } }, target_resource_type: { client_side_validation: true, required: false, serialized_name: 'properties.targetResourceType', type: { name: 'String' } }, monitor_service: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.monitorService', type: { name: 'String' } }, source_created_id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.sourceCreatedId', type: { name: 'String' } }, smart_group_id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.smartGroupId', type: { name: 'String' } }, smart_grouping_reason: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.smartGroupingReason', type: { name: 'String' } }, start_date_time: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.startDateTime', type: { name: 'DateTime' } }, last_modified_date_time: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.lastModifiedDateTime', type: { name: 'DateTime' } }, last_modified_user_name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.lastModifiedUserName', type: { name: 'String' } }, payload: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.payload', type: { name: 'Object' } } } } } end |