class Azure::ARM::Insights::Models::Incident

An alert incident indicates the activation status of an alert rule.

Attributes

activated_time[RW]

@return [DateTime] The time at which the incident was activated in ISO8601 format.

is_active[RW]

@return [Boolean] A boolean to indicate whether the incident is active or resolved.

name[RW]

@return [String] Incident name.

resolved_time[RW]

@return [DateTime] The time at which the incident was resolved in ISO8601 format. If null, it means the incident is still active.

rule_name[RW]

@return [String] Rule name that is associated with the incident.

Public Class Methods

mapper() click to toggle source

Mapper for Incident class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/generated/azure_mgmt_insights/models/incident.rb, line 38
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