Merge "add sample of API 'get anomaly rule'"

This commit is contained in:
Zuul 2023-08-09 07:15:34 +00:00 committed by Gerrit Code Review
commit e97993ee75
2 changed files with 24 additions and 0 deletions

View File

@ -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
~~~~~~~~~~~~~~~~~~

View File

@ -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"
}
}