Class: Azure::ARM::Monitor::Models::Incident

Inherits:
Object
  • Object
show all
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

Class Method Summary collapse

Instance Attribute Details

#activated_timeDateTime

ISO8601 format.

Returns:

  • (DateTime)

    The time at which the incident was activated in



28
29
30
# File 'lib/generated/azure_mgmt_monitor/models/incident.rb', line 28

def activated_time
  @activated_time
end

#is_activeBoolean

or resolved.

Returns:

  • (Boolean)

    A boolean to indicate whether the incident is active



24
25
26
# File 'lib/generated/azure_mgmt_monitor/models/incident.rb', line 24

def is_active
  @is_active
end

#nameString

Returns Incident name.

Returns:

  • (String)

    Incident name.



17
18
19
# File 'lib/generated/azure_mgmt_monitor/models/incident.rb', line 17

def name
  @name
end

#resolved_timeDateTime

ISO8601 format. If null, it means the incident is still active.

Returns:

  • (DateTime)

    The time at which the incident was resolved in



32
33
34
# File 'lib/generated/azure_mgmt_monitor/models/incident.rb', line 32

def resolved_time
  @resolved_time
end

#rule_nameString

Returns Rule name that is associated with the incident.

Returns:

  • (String)

    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

.mapperObject

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