class Azure::AlertsManagement::Mgmt::V2019_05_05_preview::Models::Essentials

This object contains consistent fields across different monitor services.

Attributes

alert_rule[RW]

@return [String] Rule(monitor) which fired alert instance. Depending on the monitor service, this would be ARM id or name of the rule.

alert_state[RW]

@return [AlertState] Alert object state, which can be modified by the user. Possible values include: 'New', 'Acknowledged', 'Closed'

last_modified_date_time[RW]

@return [DateTime] Last modification time(ISO-8601 format) of alert instance.

last_modified_user_name[RW]

@return [String] User who last modified the alert, in case of monitor service updates user would be 'system', otherwise name of the user.

monitor_condition[RW]

@return [MonitorCondition] Condition of the rule at the monitor service. It represents whether the underlying conditions have crossed the defined alert rule thresholds. Possible values include: 'Fired', 'Resolved'

monitor_condition_resolved_date_time[RW]

@return [DateTime] Resolved time(ISO-8601 format) of alert instance. This will be updated when monitor service resolves the alert instance because the rule condition is no longer met.

monitor_service[RW]

@return [MonitorService] Monitor service on which the rule(monitor) is set. Possible values include: 'Application Insights', 'ActivityLog Administrative', 'ActivityLog Security', 'ActivityLog Recommendation', 'ActivityLog Policy', 'ActivityLog Autoscale', 'Log Analytics', 'Nagios', 'Platform', 'SCOM', 'ServiceHealth', 'SmartDetector', 'VM Insights', 'Zabbix'

severity[RW]

@return [Severity] Severity of alert Sev0 being highest and Sev4 being lowest. Possible values include: 'Sev0', 'Sev1', 'Sev2', 'Sev3', 'Sev4'

signal_type[RW]

@return [SignalType] The type of signal the alert is based on, which could be metrics, logs or activity logs. Possible values include: 'Metric', 'Log', 'Unknown'

smart_group_id[RW]

@return [String] Unique Id of the smart group

smart_grouping_reason[RW]

@return [String] Verbose reason describing the reason why this alert instance is added to a smart group

source_created_id[RW]

@return [String] Unique Id created by monitor service for each alert instance. This could be used to track the issue at the monitor service, in case of Nagios, Zabbix, SCOM etc.

start_date_time[RW]

@return [DateTime] Creation time(ISO-8601 format) of alert instance.

target_resource[RW]

@return [String] Target ARM resource, on which alert got created.

target_resource_group[RW]

@return [String] Resource group of target ARM resource, on which alert got created.

target_resource_name[RW]

@return [String] Name of the target ARM resource name, on which alert got created.

target_resource_type[RW]

@return [String] Resource type of target ARM resource, on which alert got created.

Private Class Methods

mapper() click to toggle source

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

# File lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/essentials.rb, line 94
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'essentials',
    type: {
      name: 'Composite',
      class_name: 'Essentials',
      model_properties: {
        severity: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'severity',
          type: {
            name: 'String'
          }
        },
        signal_type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'signalType',
          type: {
            name: 'String'
          }
        },
        alert_state: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'alertState',
          type: {
            name: 'String'
          }
        },
        monitor_condition: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'monitorCondition',
          type: {
            name: 'String'
          }
        },
        target_resource: {
          client_side_validation: true,
          required: false,
          serialized_name: 'targetResource',
          type: {
            name: 'String'
          }
        },
        target_resource_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'targetResourceName',
          type: {
            name: 'String'
          }
        },
        target_resource_group: {
          client_side_validation: true,
          required: false,
          serialized_name: 'targetResourceGroup',
          type: {
            name: 'String'
          }
        },
        target_resource_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'targetResourceType',
          type: {
            name: 'String'
          }
        },
        monitor_service: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'monitorService',
          type: {
            name: 'String'
          }
        },
        alert_rule: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'alertRule',
          type: {
            name: 'String'
          }
        },
        source_created_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'sourceCreatedId',
          type: {
            name: 'String'
          }
        },
        smart_group_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'smartGroupId',
          type: {
            name: 'String'
          }
        },
        smart_grouping_reason: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'smartGroupingReason',
          type: {
            name: 'String'
          }
        },
        start_date_time: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'startDateTime',
          type: {
            name: 'DateTime'
          }
        },
        last_modified_date_time: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'lastModifiedDateTime',
          type: {
            name: 'DateTime'
          }
        },
        monitor_condition_resolved_date_time: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'monitorConditionResolvedDateTime',
          type: {
            name: 'DateTime'
          }
        },
        last_modified_user_name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'lastModifiedUserName',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end