An anomaly score is created from an anomaly and the input_data for which you wish to create an anomaly score. New anomaly score will be between 0 and 1. The complete and updated reference with all available parameters is in our documentation website.
Inheritance: Response
Esempio n. 1
0
 /// <summary>
 /// Create an Anomaly Score.
 /// </summary>
 /// <param name="anomaly">An Anomaly detector instance</param>
 /// <param name="name">The name you want to give to the new anomaly score. </param>
 /// <param name="arguments">Specifies the values of the fields that you want to use.</param>
 public Task<AnomalyScore> CreateAnomalyScore(Anomaly anomaly, string name = null,
                                     AnomalyScore.Arguments arguments = null)
 {
     arguments = arguments ?? new AnomalyScore.Arguments();
     if (!string.IsNullOrWhiteSpace(name))
         arguments.Name = name;
     arguments.Anomaly = anomaly.Resource;
     return Create<AnomalyScore>(arguments);
 }
Esempio n. 2
0
 /// <summary>
 /// Create an anomaly score using supplied arguments.
 /// </summary>
 public Task<AnomalyScore> CreateAnomalyScore(AnomalyScore.Arguments arguments)
 {
     return Create<AnomalyScore>(arguments);
 }