你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MetricsAdvisorModelFactory.AnomalyIncident 方法

定义

初始化 的新实例 AnomalyIncident 以进行模拟。

public static Azure.AI.MetricsAdvisor.Models.AnomalyIncident AnomalyIncident (string dataFeedId = default, string metricId = default, string detectionConfigurationId = default, string id = default, DateTimeOffset startedOn = default, DateTimeOffset lastDetectedOn = default, Azure.AI.MetricsAdvisor.Models.DimensionKey rootSeriesKey = default, Azure.AI.MetricsAdvisor.Models.AnomalySeverity severity = default, Azure.AI.MetricsAdvisor.Models.AnomalyIncidentStatus status = default, double valueOfRootNode = 0, double? expectedValueOfRootNode = default);
static member AnomalyIncident : string * string * string * string * DateTimeOffset * DateTimeOffset * Azure.AI.MetricsAdvisor.Models.DimensionKey * Azure.AI.MetricsAdvisor.Models.AnomalySeverity * Azure.AI.MetricsAdvisor.Models.AnomalyIncidentStatus * double * Nullable<double> -> Azure.AI.MetricsAdvisor.Models.AnomalyIncident
Public Shared Function AnomalyIncident (Optional dataFeedId As String = Nothing, Optional metricId As String = Nothing, Optional detectionConfigurationId As String = Nothing, Optional id As String = Nothing, Optional startedOn As DateTimeOffset = Nothing, Optional lastDetectedOn As DateTimeOffset = Nothing, Optional rootSeriesKey As DimensionKey = Nothing, Optional severity As AnomalySeverity = Nothing, Optional status As AnomalyIncidentStatus = Nothing, Optional valueOfRootNode As Double = 0, Optional expectedValueOfRootNode As Nullable(Of Double) = Nothing) As AnomalyIncident

参数

dataFeedId
String

设置 DataFeedId 属性。

metricId
String

设置 MetricId 属性。

detectionConfigurationId
String

设置 DetectionConfigurationId 属性。

id
String

设置 Id 属性。

startedOn
DateTimeOffset

设置 StartedOn 属性。

lastDetectedOn
DateTimeOffset

设置 LastDetectedOn 属性。

rootSeriesKey
DimensionKey

设置 RootSeriesKey 属性。

severity
AnomalySeverity

设置 Severity 属性。

status
AnomalyIncidentStatus

设置 Status 属性。

valueOfRootNode
Double

设置 ValueOfRootNode 属性。

expectedValueOfRootNode
Nullable<Double>

设置 ExpectedValueOfRootNode 属性。

返回

用于模拟目的的 的新实例 AnomalyIncident

适用于