Class: Azure::ARM::Monitor::Models::Incident
- Inherits:
-
Object
- Object
- Azure::ARM::Monitor::Models::Incident
- Includes:
- MsRest::JSONable, MsRestAzure
- Defined in:
- lib/generated/azure_mgmt_monitor/models/incident.rb
Overview
An alert incident indicates the activation status of an alert rule.
Instance Attribute Summary collapse
-
#activated_time ⇒ DateTime
ISO8601 format.
-
#is_active ⇒ Boolean
or resolved.
-
#name ⇒ String
Incident name.
-
#resolved_time ⇒ DateTime
ISO8601 format.
-
#rule_name ⇒ String
Rule name that is associated with the incident.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for Incident class as Ruby Hash.
Instance Attribute Details
#activated_time ⇒ DateTime
ISO8601 format.
28 29 30 |
# File 'lib/generated/azure_mgmt_monitor/models/incident.rb', line 28 def activated_time @activated_time end |
#is_active ⇒ Boolean
or resolved.
24 25 26 |
# File 'lib/generated/azure_mgmt_monitor/models/incident.rb', line 24 def is_active @is_active end |
#name ⇒ String
Returns Incident name.
17 18 19 |
# File 'lib/generated/azure_mgmt_monitor/models/incident.rb', line 17 def name @name end |
#resolved_time ⇒ DateTime
ISO8601 format. If null, it means the incident is still active.
32 33 34 |
# File 'lib/generated/azure_mgmt_monitor/models/incident.rb', line 32 def resolved_time @resolved_time end |
#rule_name ⇒ String
Returns Rule name that is associated with the incident.
20 21 22 |
# File 'lib/generated/azure_mgmt_monitor/models/incident.rb', line 20 def rule_name @rule_name end |
Class Method Details
.mapper ⇒ Object
Mapper for Incident class as Ruby Hash. This will be used for serialization/deserialization.
39 40 41 42 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 |
# File 'lib/generated/azure_mgmt_monitor/models/incident.rb', line 39 def self.mapper() { required: false, serialized_name: 'Incident', type: { name: 'Composite', class_name: 'Incident', model_properties: { name: { required: false, read_only: true, serialized_name: 'name', type: { name: 'String' } }, rule_name: { required: false, read_only: true, serialized_name: 'ruleName', type: { name: 'String' } }, is_active: { required: false, read_only: true, serialized_name: 'isActive', type: { name: 'Boolean' } }, activated_time: { required: false, read_only: true, serialized_name: 'activatedTime', type: { name: 'DateTime' } }, resolved_time: { required: false, read_only: true, serialized_name: 'resolvedTime', type: { name: 'DateTime' } } } } } end |