Request Constructors

Definition

Overloads

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.

Request()

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

series
IList<Point>

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'

customInterval
Nullable<Int32>

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}.

period
Nullable<Int32>

Optional argument, periodic value of a time series. If the value is null or does not present, the API will determine the period automatically.

maxAnomalyRatio
Nullable<Double>

Optional argument, advanced model parameter, max anomaly ratio in a time series.

sensitivity
Nullable<Int32>

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