Show / Hide Table of Contents

    Class Incident

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

    Inheritance
    Object
    Incident
    Namespace: System.Dynamic.ExpandoObject
    Assembly: Microsoft.Azure.Management.Monitor.dll
    Syntax
    public class Incident

    Constructors

    Incident()

    Initializes a new instance of the Incident class.

    Declaration
    public Incident ();

    Incident(String, String, Nullable<Boolean>, Nullable<DateTime>, Nullable<DateTime>)

    Initializes a new instance of the Incident class.

    Declaration
    public Incident (string name = null, string ruleName = null, Nullable<bool> isActive = null, Nullable<DateTime> activatedTime = null, Nullable<DateTime> resolvedTime = null);
    Parameters
    String name

    Incident name.

    String ruleName

    Rule name that is associated with the incident.

    Nullable<Boolean> isActive

    A boolean to indicate whether the incident is active or resolved.

    Nullable<DateTime> activatedTime

    The time at which the incident was activated in ISO8601 format.

    Nullable<DateTime> resolvedTime

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

    Properties

    ActivatedTime

    Gets the time at which the incident was activated in ISO8601 format.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="activatedTime")]
    public Nullable<DateTime> ActivatedTime { get; }
    Property Value
    Nullable<DateTime>

    IsActive

    Gets a boolean to indicate whether the incident is active or resolved.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="isActive")]
    public Nullable<bool> IsActive { get; }
    Property Value
    Nullable<Boolean>

    Name

    Gets incident name.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="name")]
    public string Name { get; }
    Property Value
    String

    ResolvedTime

    Gets the time at which the incident was resolved in ISO8601 format. If null, it means the incident is still active.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="resolvedTime")]
    public Nullable<DateTime> ResolvedTime { get; }
    Property Value
    Nullable<DateTime>

    RuleName

    Gets rule name that is associated with the incident.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="ruleName")]
    public string RuleName { get; }
    Property Value
    String

    Back to top Azure SDK for Net