-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
AnomalyDetectionModel.cs
58 lines (51 loc) · 2.43 KB
/
AnomalyDetectionModel.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using Azure.Core;
namespace Azure.AI.AnomalyDetector
{
/// <summary> Response of getting a model. </summary>
public partial class AnomalyDetectionModel
{
/// <summary> Initializes a new instance of AnomalyDetectionModel. </summary>
/// <param name="modelId"> Model identifier. </param>
/// <param name="createdTime"> Date and time (UTC) when the model was created. </param>
/// <param name="lastUpdatedTime"> Date and time (UTC) when the model was last updated. </param>
/// <exception cref="ArgumentNullException"> <paramref name="modelId"/> is null. </exception>
internal AnomalyDetectionModel(string modelId, DateTimeOffset createdTime, DateTimeOffset lastUpdatedTime)
{
Argument.AssertNotNull(modelId, nameof(modelId));
ModelId = modelId;
CreatedTime = createdTime;
LastUpdatedTime = lastUpdatedTime;
}
/// <summary> Initializes a new instance of AnomalyDetectionModel. </summary>
/// <param name="modelId"> Model identifier. </param>
/// <param name="createdTime"> Date and time (UTC) when the model was created. </param>
/// <param name="lastUpdatedTime"> Date and time (UTC) when the model was last updated. </param>
/// <param name="modelInfo">
/// Training result of a model, including its status, errors, and diagnostics
/// information.
/// </param>
internal AnomalyDetectionModel(string modelId, DateTimeOffset createdTime, DateTimeOffset lastUpdatedTime, ModelInfo modelInfo)
{
ModelId = modelId;
CreatedTime = createdTime;
LastUpdatedTime = lastUpdatedTime;
ModelInfo = modelInfo;
}
/// <summary> Model identifier. </summary>
public string ModelId { get; }
/// <summary> Date and time (UTC) when the model was created. </summary>
public DateTimeOffset CreatedTime { get; }
/// <summary> Date and time (UTC) when the model was last updated. </summary>
public DateTimeOffset LastUpdatedTime { get; }
/// <summary>
/// Training result of a model, including its status, errors, and diagnostics
/// information.
/// </summary>
public ModelInfo ModelInfo { get; }
}
}