ArmMonitorModelFactory.MonitorIncident Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of MonitorIncident.
public static Azure.ResourceManager.Monitor.Models.MonitorIncident MonitorIncident(string name = default, string ruleName = default, bool? isActive = default, DateTimeOffset? activatedOn = default, DateTimeOffset? resolvedOn = default);
static member MonitorIncident : string * string * Nullable<bool> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> -> Azure.ResourceManager.Monitor.Models.MonitorIncident
Public Shared Function MonitorIncident (Optional name As String = Nothing, Optional ruleName As String = Nothing, Optional isActive As Nullable(Of Boolean) = Nothing, Optional activatedOn As Nullable(Of DateTimeOffset) = Nothing, Optional resolvedOn As Nullable(Of DateTimeOffset) = Nothing) As MonitorIncident
Parameters
- name
- String
Incident name.
- ruleName
- String
Rule name that is associated with the incident.
- activatedOn
- Nullable<DateTimeOffset>
The time at which the incident was activated in ISO8601 format.
- resolvedOn
- Nullable<DateTimeOffset>
The time at which the incident was resolved in ISO8601 format. If null, it means the incident is still active.
Returns
A new MonitorIncident instance for mocking.