Class ChangePointDetectRequest
java.lang.Object
com.azure.ai.anomalydetector.models.ChangePointDetectRequest
The request of change point detection.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the customInterval property: 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}.Get the granularity property: Can only be one of yearly, monthly, weekly, daily, hourly, minutely or secondly.Get the period property: Optional argument, periodic value of a time series.Get the series property: Time series data points.Get the stableTrendWindow property: Optional argument, advanced model parameter, a default stableTrendWindow will be used in detection.Get the threshold property: Optional argument, advanced model parameter, between 0.0-1.0, the lower the value is, the larger the trend error will be which means less change point will be accepted.setCustomInterval
(Integer customInterval) Set the customInterval property: 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}.setGranularity
(TimeGranularity granularity) Set the granularity property: Can only be one of yearly, monthly, weekly, daily, hourly, minutely or secondly.Set the period property: Optional argument, periodic value of a time series.setSeries
(List<TimeSeriesPoint> series) Set the series property: Time series data points.setStableTrendWindow
(Integer stableTrendWindow) Set the stableTrendWindow property: Optional argument, advanced model parameter, a default stableTrendWindow will be used in detection.setThreshold
(Float threshold) Set the threshold property: Optional argument, advanced model parameter, between 0.0-1.0, the lower the value is, the larger the trend error will be which means less change point will be accepted.
-
Constructor Details
-
ChangePointDetectRequest
public ChangePointDetectRequest()
-
-
Method Details
-
getSeries
Get the series property: Time series data points. Points should be sorted by timestamp in ascending order to match the change point detection result.- Returns:
- the series value.
-
setSeries
Set the series property: Time series data points. Points should be sorted by timestamp in ascending order to match the change point detection result.- Parameters:
series
- the series value to set.- Returns:
- the ChangePointDetectRequest object itself.
-
getGranularity
Get the granularity property: Can only be one of yearly, monthly, weekly, daily, hourly, minutely or secondly. Granularity is used for verify whether input series is valid.- Returns:
- the granularity value.
-
setGranularity
Set the granularity property: Can only be one of yearly, monthly, weekly, daily, hourly, minutely or secondly. Granularity is used for verify whether input series is valid.- Parameters:
granularity
- the granularity value to set.- Returns:
- the ChangePointDetectRequest object itself.
-
getCustomInterval
Get the customInterval property: 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}.- Returns:
- the customInterval value.
-
setCustomInterval
Set the customInterval property: 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}.- Parameters:
customInterval
- the customInterval value to set.- Returns:
- the ChangePointDetectRequest object itself.
-
getPeriod
Get the period property: Optional argument, periodic value of a time series. If the value is null or does not present, the API will determine the period automatically.- Returns:
- the period value.
-
setPeriod
Set the period property: Optional argument, periodic value of a time series. If the value is null or does not present, the API will determine the period automatically.- Parameters:
period
- the period value to set.- Returns:
- the ChangePointDetectRequest object itself.
-
getStableTrendWindow
Get the stableTrendWindow property: Optional argument, advanced model parameter, a default stableTrendWindow will be used in detection.- Returns:
- the stableTrendWindow value.
-
setStableTrendWindow
Set the stableTrendWindow property: Optional argument, advanced model parameter, a default stableTrendWindow will be used in detection.- Parameters:
stableTrendWindow
- the stableTrendWindow value to set.- Returns:
- the ChangePointDetectRequest object itself.
-
getThreshold
Get the threshold property: Optional argument, advanced model parameter, between 0.0-1.0, the lower the value is, the larger the trend error will be which means less change point will be accepted.- Returns:
- the threshold value.
-
setThreshold
Set the threshold property: Optional argument, advanced model parameter, between 0.0-1.0, the lower the value is, the larger the trend error will be which means less change point will be accepted.- Parameters:
threshold
- the threshold value to set.- Returns:
- the ChangePointDetectRequest object itself.
-