Bagikan melalui


ArmAlertsManagementModelFactory.ServiceAlertEssentials Method

Definition

Initializes a new instance of ServiceAlertEssentials.

public static Azure.ResourceManager.AlertsManagement.Models.ServiceAlertEssentials ServiceAlertEssentials (Azure.ResourceManager.AlertsManagement.Models.ServiceAlertSeverity? severity = default, Azure.ResourceManager.AlertsManagement.Models.ServiceAlertSignalType? signalType = default, Azure.ResourceManager.AlertsManagement.Models.ServiceAlertState? alertState = default, Azure.ResourceManager.AlertsManagement.Models.MonitorCondition? monitorCondition = default, string targetResource = default, string targetResourceName = default, string targetResourceGroup = default, string targetResourceType = default, Azure.ResourceManager.AlertsManagement.Models.MonitorServiceSourceForAlert? monitorService = default, string alertRule = default, string sourceCreatedId = default, Guid? smartGroupId = default, string smartGroupingReason = default, DateTimeOffset? startOn = default, DateTimeOffset? lastModifiedOn = default, DateTimeOffset? monitorConditionResolvedOn = default, string lastModifiedBy = default, bool? isSuppressed = default, string description = default);
static member ServiceAlertEssentials : Nullable<Azure.ResourceManager.AlertsManagement.Models.ServiceAlertSeverity> * Nullable<Azure.ResourceManager.AlertsManagement.Models.ServiceAlertSignalType> * Nullable<Azure.ResourceManager.AlertsManagement.Models.ServiceAlertState> * Nullable<Azure.ResourceManager.AlertsManagement.Models.MonitorCondition> * string * string * string * string * Nullable<Azure.ResourceManager.AlertsManagement.Models.MonitorServiceSourceForAlert> * string * string * Nullable<Guid> * string * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * string * Nullable<bool> * string -> Azure.ResourceManager.AlertsManagement.Models.ServiceAlertEssentials
Public Shared Function ServiceAlertEssentials (Optional severity As Nullable(Of ServiceAlertSeverity) = Nothing, Optional signalType As Nullable(Of ServiceAlertSignalType) = Nothing, Optional alertState As Nullable(Of ServiceAlertState) = Nothing, Optional monitorCondition As Nullable(Of MonitorCondition) = Nothing, Optional targetResource As String = Nothing, Optional targetResourceName As String = Nothing, Optional targetResourceGroup As String = Nothing, Optional targetResourceType As String = Nothing, Optional monitorService As Nullable(Of MonitorServiceSourceForAlert) = Nothing, Optional alertRule As String = Nothing, Optional sourceCreatedId As String = Nothing, Optional smartGroupId As Nullable(Of Guid) = Nothing, Optional smartGroupingReason As String = Nothing, Optional startOn As Nullable(Of DateTimeOffset) = Nothing, Optional lastModifiedOn As Nullable(Of DateTimeOffset) = Nothing, Optional monitorConditionResolvedOn As Nullable(Of DateTimeOffset) = Nothing, Optional lastModifiedBy As String = Nothing, Optional isSuppressed As Nullable(Of Boolean) = Nothing, Optional description As String = Nothing) As ServiceAlertEssentials

Parameters

severity
Nullable<ServiceAlertSeverity>

Severity of alert Sev0 being highest and Sev4 being lowest.

signalType
Nullable<ServiceAlertSignalType>

The type of signal the alert is based on, which could be metrics, logs or activity logs.

alertState
Nullable<ServiceAlertState>

Alert object state, which can be modified by the user.

monitorCondition
Nullable<MonitorCondition>

Condition of the rule at the monitor service. It represents whether the underlying conditions have crossed the defined alert rule thresholds.

targetResource
String

Target ARM resource, on which alert got created.

targetResourceName
String

Name of the target ARM resource name, on which alert got created.

targetResourceGroup
String

Resource group of target ARM resource, on which alert got created.

targetResourceType
String

Resource type of target ARM resource, on which alert got created.

monitorService
Nullable<MonitorServiceSourceForAlert>

Monitor service on which the rule(monitor) is set.

alertRule
String

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

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

smartGroupId
Nullable<Guid>

Unique Id of the smart group.

smartGroupingReason
String

Verbose reason describing the reason why this alert instance is added to a smart group.

startOn
Nullable<DateTimeOffset>

Creation time(ISO-8601 format) of alert instance.

lastModifiedOn
Nullable<DateTimeOffset>

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

monitorConditionResolvedOn
Nullable<DateTimeOffset>

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.

lastModifiedBy
String

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

isSuppressed
Nullable<Boolean>

Action status.

description
String

Alert description.

Returns

A new ServiceAlertEssentials instance for mocking.

Applies to