Share via


Request Class

Definition

public class Request
type Request = class
Public Class Request
Inheritance
Request

Constructors

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.

Properties

CustomInterval

Gets or sets 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}.

Granularity

Gets or sets 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'

MaxAnomalyRatio

Gets or sets optional argument, advanced model parameter, max anomaly ratio in a time series.

Period

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

Sensitivity

Gets or sets 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.

Series

Gets or sets 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.

Methods

Validate()

Validate the object.

Applies to