Request Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Request() |
Initializes a new instance of the Request class. |
Request(IList<Point>, Granularity, Nullable<Int32>, Nullable<Int32>, Nullable<Double>, Nullable<Int32>) |
Initializes a new instance of the Request class. |
- Source:
- Request.cs
Initializes a new instance of the Request class.
public Request ();
Public Sub New ()
Applies to
Request(IList<Point>, Granularity, Nullable<Int32>, Nullable<Int32>, Nullable<Double>, Nullable<Int32>)
- Source:
- Request.cs
Initializes a new instance of the Request class.
public Request (System.Collections.Generic.IList<Microsoft.Azure.CognitiveServices.AnomalyDetector.Models.Point> series, Microsoft.Azure.CognitiveServices.AnomalyDetector.Models.Granularity granularity, int? customInterval = default, int? period = default, double? maxAnomalyRatio = default, int? sensitivity = default);
new Microsoft.Azure.CognitiveServices.AnomalyDetector.Models.Request : System.Collections.Generic.IList<Microsoft.Azure.CognitiveServices.AnomalyDetector.Models.Point> * Microsoft.Azure.CognitiveServices.AnomalyDetector.Models.Granularity * Nullable<int> * Nullable<int> * Nullable<double> * Nullable<int> -> Microsoft.Azure.CognitiveServices.AnomalyDetector.Models.Request
Public Sub New (series As IList(Of Point), granularity As Granularity, Optional customInterval As Nullable(Of Integer) = Nothing, Optional period As Nullable(Of Integer) = Nothing, Optional maxAnomalyRatio As Nullable(Of Double) = Nothing, Optional sensitivity As Nullable(Of Integer) = Nothing)
Parameters
Time series data points. Points should be sorted by timestamp in ascending order to match the anomaly detection result. If the data is not sorted correctly or there is duplicated timestamp, the API will not work. In such case, an error message will be returned.
- granularity
- Granularity
Can only be one of yearly, monthly, weekly, daily, hourly or minutely. Granularity is used for verify whether input series is valid. Possible values include: 'yearly', 'monthly', 'weekly', 'daily', 'hourly', 'minutely'
Custom Interval is used to set non-standard time interval, for example, if the series is 5 minutes, request can be set as {"granularity":"minutely", "customInterval":5}.
Optional argument, periodic value of a time series. If the value is null or does not present, the API will determine the period automatically.
Optional argument, advanced model parameter, max anomaly ratio in a time series.
Optional argument, advanced model parameter, between 0-99, the lower the value is, the larger the margin value will be which means less anomalies will be accepted.
Applies to
Feedback su Azure SDK for .NET
Azure SDK for .NET è un progetto di open source. Selezionare un collegamento per fornire feedback: