From 5172929f9de9ec87adc1ebea1ba226f2dc0ae4bb Mon Sep 17 00:00:00 2001 From: leiyashuai Date: Wed, 9 Aug 2023 17:24:42 +0800 Subject: [PATCH] Add api 'update anomaly rule' Change-Id: I5fccccd5041ba1212a0563a357a7cb2672ac71e3 --- api-ref/source/v1/anomaly-detect.inc | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/api-ref/source/v1/anomaly-detect.inc b/api-ref/source/v1/anomaly-detect.inc index 11c730d..3914277 100644 --- a/api-ref/source/v1/anomaly-detect.inc +++ b/api-ref/source/v1/anomaly-detect.inc @@ -41,6 +41,32 @@ Response :language: javascript +Update Anomaly Rule +~~~~~~~~~~~~~~~~~~~ + +.. rest_method:: POST /v1/anomaly/rule/{id} + +Update an anomaly rule. + +Request +------- + +.. rest_parameters:: parameters.yaml + + - id: rule_id + +Response codes +-------------- + +.. rest_status_code:: success ../status.yaml + + - 1 + +.. rest_status_code:: error ../status.yaml + + - -1 + + Get anomaly record ~~~~~~~~~~~~~~~~~~