共用方式為


Essentials Class

Definition

This object contains consistent fields across different monitor services.

public class Essentials
type Essentials = class
Public Class Essentials
Inheritance
Essentials

Constructors

Essentials()

Initializes a new instance of the Essentials class.

Essentials(String, String, String, String, String, String, String, String, String, String, String, String, String, Nullable<DateTime>, Nullable<DateTime>, Nullable<DateTime>, String)

Initializes a new instance of the Essentials class.

Properties

AlertRule

Gets rule(monitor) which fired alert instance. Depending on the monitor service, this would be ARM id or name of the rule.

AlertState

Gets alert object state, which can be modified by the user. Possible values include: 'New', 'Acknowledged', 'Closed'

LastModifiedDateTime

Gets last modification time(ISO-8601 format) of alert instance.

LastModifiedUserName

Gets user who last modified the alert, in case of monitor service updates user would be 'system', otherwise name of the user.

MonitorCondition

Gets 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'

MonitorConditionResolvedDateTime

Gets 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.

MonitorService

Gets 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

Gets severity of alert Sev0 being highest and Sev4 being lowest. Possible values include: 'Sev0', 'Sev1', 'Sev2', 'Sev3', 'Sev4'

SignalType

Gets the type of signal the alert is based on, which could be metrics, logs or activity logs. Possible values include: 'Metric', 'Log', 'Unknown'

SmartGroupId

Gets unique Id of the smart group

SmartGroupingReason

Gets verbose reason describing the reason why this alert instance is added to a smart group

SourceCreatedId

Gets 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.

StartDateTime

Gets creation time(ISO-8601 format) of alert instance.

TargetResource

Gets or sets target ARM resource, on which alert got created.

TargetResourceGroup

Gets or sets resource group of target ARM resource, on which alert got created.

TargetResourceName

Gets or sets name of the target ARM resource name, on which alert got created.

TargetResourceType

Gets or sets resource type of target ARM resource, on which alert got created.

Applies to