MetricsAdvisorModelFactory.AnomalyAlert Method

Definition

Initializes a new instance of AnomalyAlert for mocking purposes.

public static Azure.AI.MetricsAdvisor.Models.AnomalyAlert AnomalyAlert (string id = default, DateTimeOffset timestamp = default, DateTimeOffset createdOn = default, DateTimeOffset lastModified = default);
static member AnomalyAlert : string * DateTimeOffset * DateTimeOffset * DateTimeOffset -> Azure.AI.MetricsAdvisor.Models.AnomalyAlert
Public Shared Function AnomalyAlert (Optional id As String = Nothing, Optional timestamp As DateTimeOffset = Nothing, Optional createdOn As DateTimeOffset = Nothing, Optional lastModified As DateTimeOffset = Nothing) As AnomalyAlert

Parameters

id
String

Sets the Id property.

timestamp
DateTimeOffset

Sets the Timestamp property.

createdOn
DateTimeOffset

Sets the CreatedOn property.

lastModified
DateTimeOffset

Sets the LastModified property.

Returns

A new instance of AnomalyAlert for mocking purposes.

Applies to