Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AnomalyDetectorClient

Package version

Client class for interacting with Azure Anomaly Detector service.

Hierarchy

  • AnomalyDetector
    • AnomalyDetectorClient

Index

Constructors

constructor

  • new AnomalyDetectorClient(endpointUrl: string, credential: TokenCredential | KeyCredential, options?: PipelineOptions): AnomalyDetectorClient
  • Creates an instance of AnomalyDetectorClient.

    Example usage:

    import { AnomalyDetectorClient, AzureKeyCredential } from "@azure/ai-anomaly-detector";
    
    const client = new AnomalyDetectorClient(
       "<service endpoint>",
       new AzureKeyCredential("<api key>")
    );

    Parameters

    • endpointUrl: string

      Url to an Azure Anomaly Detector service endpoint

    • credential: TokenCredential | KeyCredential

      Used to authenticate requests to the service.

    • Optional options: PipelineOptions

      Used to configure the Form Recognizer client.

    Returns AnomalyDetectorClient

Properties

endpoint

endpoint: string

Methods

deleteMultivariateModel

  • deleteMultivariateModel(modelId: string, options?: coreHttp.OperationOptions): Promise<coreHttp.RestResponse>
  • Delete an existing multivariate model according to the modelId

    Parameters

    • modelId: string

      Model identifier.

    • Optional options: coreHttp.OperationOptions

      The options parameters.

    Returns Promise<coreHttp.RestResponse>

detectAnomaly

  • Submit detection multivariate anomaly task with the trained model of modelId, the input schema should be the same with the training request. Thus request will be complete asynchronously and will return a resultId for querying the detection result.The request should be a source link to indicate an externally accessible Azure storage Uri (preferably a Shared Access Signature Uri). All time-series used in generate the model must be zipped into one single file. Each time-series will be as follows: the first column is timestamp and the second column is value.

    Parameters

    • modelId: string

      Model identifier.

    • detectionRequest: DetectionRequest

      Detect anomaly request

    • Optional options: coreHttp.OperationOptions

      The options parameters.

    Returns Promise<AnomalyDetectorDetectAnomalyResponse>

detectChangePoint

detectEntireSeries

  • This operation generates a model with 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: DetectRequest

      Time series points and period if needed. Advanced model parameters can also be set in the request.

    • Optional options: coreHttp.OperationOptions

      The options parameters.

    Returns Promise<AnomalyDetectorDetectEntireSeriesResponse>

detectLastPoint

  • 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: DetectRequest

      Time series points and period if needed. Advanced model parameters can also be set in the request.

    • Optional options: coreHttp.OperationOptions

      The options parameters.

    Returns Promise<AnomalyDetectorDetectLastPointResponse>

exportModel

getDetectionResult

  • Get multivariate anomaly detection result based on resultId returned by the DetectAnomalyAsync api

    Parameters

    • resultId: string

      Result identifier.

    • Optional options: coreHttp.OperationOptions

      The options parameters.

    Returns Promise<AnomalyDetectorGetDetectionResultResponse>

getMultivariateModel

  • Get detailed information of multivariate model, including the training status and variables used in the model.

    Parameters

    • modelId: string

      Model identifier.

    • Optional options: coreHttp.OperationOptions

      The options parameters.

    Returns Promise<AnomalyDetectorGetMultivariateModelResponse>

listMultivariateModel

trainMultivariateModel

  • Create and train a multivariate anomaly detection model. The request must include a source parameter to indicate an externally accessible Azure storage Uri (preferably a Shared Access Signature Uri). All time-series used in generate the model must be zipped into one single file. Each time-series will be in a single CSV file in which the first column is timestamp and the second column is value.

    Parameters

    • modelRequest: ModelInfo

      Training request

    • Optional options: coreHttp.OperationOptions

      The options parameters.

    Returns Promise<AnomalyDetectorTrainMultivariateModelResponse>

Generated using TypeDoc