From 62499e48e7d27e182524dbd4c5ee76ca46cef7bf Mon Sep 17 00:00:00 2001 From: leiyashuai Date: Wed, 9 Aug 2023 13:50:31 +0800 Subject: [PATCH] add sample of API 'get anomaly rule' Add a sample of API. Change-Id: Idc9477f773bc53b9fa785a5a270c69b0bec69aa0 --- api-ref/source/v1/anomaly-detect.inc | 9 +++++++++ .../get-anomaly-rule-show-response.json | 15 +++++++++++++++ 2 files changed, 24 insertions(+) create mode 100755 api-ref/source/v1/samples/anomaly-detect/get-anomaly-rule-show-response.json diff --git a/api-ref/source/v1/anomaly-detect.inc b/api-ref/source/v1/anomaly-detect.inc index 778710d..8781c3b 100644 --- a/api-ref/source/v1/anomaly-detect.inc +++ b/api-ref/source/v1/anomaly-detect.inc @@ -31,6 +31,15 @@ Response codes - -1 +Response +-------- + +**Example Get An Anomaly Rule response:** + + +.. literalinclude:: ./samples/anomaly-detect/get-anomaly-rule-show-response.json + :language: javascript + Get anomaly record ~~~~~~~~~~~~~~~~~~ diff --git a/api-ref/source/v1/samples/anomaly-detect/get-anomaly-rule-show-response.json b/api-ref/source/v1/samples/anomaly-detect/get-anomaly-rule-show-response.json new file mode 100755 index 0000000..af7db18 --- /dev/null +++ b/api-ref/source/v1/samples/anomaly-detect/get-anomaly-rule-show-response.json @@ -0,0 +1,15 @@ +{ + "code": 0, + "msg": "OK", + "rule": { + "id": "152f637bbd5646ab8e69313512514c4c" + "title": "\u6d4b\u8bd5\u89c4\u5219", + "desc": "\u8fd9\u662f\u4e00\u4e2a\u6d4b\u8bd5\u89c4\u5219", + "keyword": "Running periodic task", + "log_type": "flog", + "module": "venus", + "flag": 1, + "create_time": "2023-08-01T03:24:24.000000", + "update_time": "2023-08-01T03:24:24.000000" + } +}