-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
AnomalyValue.cs
59 lines (53 loc) · 2.56 KB
/
AnomalyValue.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
using Azure.Core;
namespace Azure.AI.AnomalyDetector
{
/// <summary> Detailed information of the anomalous time stamp. </summary>
public partial class AnomalyValue
{
/// <summary> Initializes a new instance of AnomalyValue. </summary>
/// <param name="isAnomaly"> True if an anomaly is detected at the current time stamp. </param>
/// <param name="severity">
/// Indicates the significance of the anomaly. The higher the severity, the more
/// significant the anomaly is.
/// </param>
/// <param name="score"> Raw anomaly score of severity, to help indicate the degree of abnormality. </param>
internal AnomalyValue(bool isAnomaly, float severity, float score)
{
IsAnomaly = isAnomaly;
Severity = severity;
Score = score;
Interpretation = new ChangeTrackingList<AnomalyInterpretation>();
}
/// <summary> Initializes a new instance of AnomalyValue. </summary>
/// <param name="isAnomaly"> True if an anomaly is detected at the current time stamp. </param>
/// <param name="severity">
/// Indicates the significance of the anomaly. The higher the severity, the more
/// significant the anomaly is.
/// </param>
/// <param name="score"> Raw anomaly score of severity, to help indicate the degree of abnormality. </param>
/// <param name="interpretation"> Interpretation of this anomalous time stamp. </param>
internal AnomalyValue(bool isAnomaly, float severity, float score, IReadOnlyList<AnomalyInterpretation> interpretation)
{
IsAnomaly = isAnomaly;
Severity = severity;
Score = score;
Interpretation = interpretation;
}
/// <summary> True if an anomaly is detected at the current time stamp. </summary>
public bool IsAnomaly { get; }
/// <summary>
/// Indicates the significance of the anomaly. The higher the severity, the more
/// significant the anomaly is.
/// </summary>
public float Severity { get; }
/// <summary> Raw anomaly score of severity, to help indicate the degree of abnormality. </summary>
public float Score { get; }
/// <summary> Interpretation of this anomalous time stamp. </summary>
public IReadOnlyList<AnomalyInterpretation> Interpretation { get; }
}
}