-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
ModelInfo.cs
129 lines (122 loc) · 5.43 KB
/
ModelInfo.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
using Azure.Core;
namespace Azure.AI.AnomalyDetector
{
/// <summary>
/// Training result of a model, including its status, errors, and diagnostics
/// information.
/// </summary>
public partial class ModelInfo
{
/// <summary> Initializes a new instance of ModelInfo. </summary>
/// <param name="dataSource">
/// Source link to the input data to indicate an accessible Azure Storage URI.
/// It either points to an Azure Blob Storage folder or points to a CSV file in
/// Azure Blob Storage, based on your data schema selection.
/// </param>
/// <param name="startTime">
/// Start date/time of training data, which should be
/// in ISO 8601 format.
/// </param>
/// <param name="endTime">
/// End date/time of training data, which should be
/// in ISO 8601 format.
/// </param>
/// <exception cref="ArgumentNullException"> <paramref name="dataSource"/> is null. </exception>
public ModelInfo(string dataSource, DateTimeOffset startTime, DateTimeOffset endTime)
{
Argument.AssertNotNull(dataSource, nameof(dataSource));
DataSource = dataSource;
StartTime = startTime;
EndTime = endTime;
Errors = new ChangeTrackingList<ErrorResponse>();
}
/// <summary> Initializes a new instance of ModelInfo. </summary>
/// <param name="dataSource">
/// Source link to the input data to indicate an accessible Azure Storage URI.
/// It either points to an Azure Blob Storage folder or points to a CSV file in
/// Azure Blob Storage, based on your data schema selection.
/// </param>
/// <param name="dataSchema">
/// Data schema of the input data source. The default
/// is OneTable.
/// </param>
/// <param name="startTime">
/// Start date/time of training data, which should be
/// in ISO 8601 format.
/// </param>
/// <param name="endTime">
/// End date/time of training data, which should be
/// in ISO 8601 format.
/// </param>
/// <param name="displayName">
/// Display name of the model. Maximum length is 24
/// characters.
/// </param>
/// <param name="slidingWindow">
/// Number of previous time stamps that will be used to
/// detect whether the time stamp is an anomaly or not.
/// </param>
/// <param name="alignPolicy"> Manner of aligning multiple variables. </param>
/// <param name="status"> Model status. </param>
/// <param name="errors"> Error messages after failure to create a model. </param>
/// <param name="diagnosticsInfo"> Diagnostics information to help inspect the states of a model or variable. </param>
internal ModelInfo(string dataSource, DataSchema? dataSchema, DateTimeOffset startTime, DateTimeOffset endTime, string displayName, int? slidingWindow, AlignPolicy alignPolicy, ModelStatus? status, IReadOnlyList<ErrorResponse> errors, DiagnosticsInfo diagnosticsInfo)
{
DataSource = dataSource;
DataSchema = dataSchema;
StartTime = startTime;
EndTime = endTime;
DisplayName = displayName;
SlidingWindow = slidingWindow;
AlignPolicy = alignPolicy;
Status = status;
Errors = errors;
DiagnosticsInfo = diagnosticsInfo;
}
/// <summary>
/// Source link to the input data to indicate an accessible Azure Storage URI.
/// It either points to an Azure Blob Storage folder or points to a CSV file in
/// Azure Blob Storage, based on your data schema selection.
/// </summary>
public string DataSource { get; set; }
/// <summary>
/// Data schema of the input data source. The default
/// is OneTable.
/// </summary>
public DataSchema? DataSchema { get; set; }
/// <summary>
/// Start date/time of training data, which should be
/// in ISO 8601 format.
/// </summary>
public DateTimeOffset StartTime { get; set; }
/// <summary>
/// End date/time of training data, which should be
/// in ISO 8601 format.
/// </summary>
public DateTimeOffset EndTime { get; set; }
/// <summary>
/// Display name of the model. Maximum length is 24
/// characters.
/// </summary>
public string DisplayName { get; set; }
/// <summary>
/// Number of previous time stamps that will be used to
/// detect whether the time stamp is an anomaly or not.
/// </summary>
public int? SlidingWindow { get; set; }
/// <summary> Manner of aligning multiple variables. </summary>
public AlignPolicy AlignPolicy { get; set; }
/// <summary> Model status. </summary>
public ModelStatus? Status { get; }
/// <summary> Error messages after failure to create a model. </summary>
public IReadOnlyList<ErrorResponse> Errors { get; }
/// <summary> Diagnostics information to help inspect the states of a model or variable. </summary>
public DiagnosticsInfo DiagnosticsInfo { get; }
}
}