azure.cognitiveservices.anomalydetector.operations module

class azure.cognitiveservices.anomalydetector.operations.AnomalyDetectorClientOperationsMixin[source]

Bases: object

change_point_detect(body, custom_headers=None, raw=False, **operation_config)[source]

Detect change point for the entire series.

Evaluate change point score of every series point.

Parameters
  • body (ChangePointDetectRequest) – Time series points and granularity is needed. Advanced model parameters can also be set in the request if needed.

  • custom_headers (dict) – headers that will be added to the request

  • raw (bool) – returns the direct response alongside the deserialized response

  • operation_configOperation configuration overrides.

Returns

ChangePointDetectResponse or ClientRawResponse if raw=true

Return type

ChangePointDetectResponse or ClientRawResponse

Raises

APIErrorException

entire_detect(body, custom_headers=None, raw=False, **operation_config)[source]

Detect anomalies for the entire series in batch.

This operation generates a model using an entire series, each point is detected with the same model. With this method, points before and after a certain point are used to determine whether it is an anomaly. The entire detection can give user an overall status of the time series.

Parameters
  • body (Request) – Time series points and period if needed. Advanced model parameters can also be set in the request.

  • custom_headers (dict) – headers that will be added to the request

  • raw (bool) – returns the direct response alongside the deserialized response

  • operation_configOperation configuration overrides.

Returns

EntireDetectResponse or ClientRawResponse if raw=true

Return type

EntireDetectResponse or ClientRawResponse

Raises

APIErrorException

last_detect(body, custom_headers=None, raw=False, **operation_config)[source]

Detect anomaly status of the latest point in time series.

This operation generates a model using points before the latest one. With this method, only historical points are used to determine whether the target point is an anomaly. The latest point detecting operation matches the scenario of real-time monitoring of business metrics.

Parameters
  • body (Request) – Time series points and period if needed. Advanced model parameters can also be set in the request.

  • custom_headers (dict) – headers that will be added to the request

  • raw (bool) – returns the direct response alongside the deserialized response

  • operation_configOperation configuration overrides.

Returns

LastDetectResponse or ClientRawResponse if raw=true

Return type

LastDetectResponse or ClientRawResponse

Raises

APIErrorException