Add sample of API 'update anomaly rule'
Change-Id: If1b4d9335e23570bd323f64e418d9bc6b99d5365
This commit is contained in:
parent
cb75ca6ee9
commit
f04e972195
@ -61,6 +61,12 @@ Request
|
||||
- module: rule_module
|
||||
- flag: rule_flag
|
||||
|
||||
**Example Update An Anomaly Rule request:**
|
||||
|
||||
|
||||
.. literalinclude:: ./samples/anomaly-detect/update-anomaly-rule-request.json
|
||||
:language: javascript
|
||||
|
||||
Response codes
|
||||
--------------
|
||||
|
||||
@ -72,6 +78,22 @@ Response codes
|
||||
|
||||
- -1
|
||||
|
||||
Response
|
||||
--------
|
||||
|
||||
**Example Update An Anomaly Rule Success response:**
|
||||
|
||||
|
||||
.. literalinclude:: ./samples/anomaly-detect/update-anomaly-rule-success-response.json
|
||||
:language: javascript
|
||||
|
||||
|
||||
**Example Update An Anomaly Rule Failed response:**
|
||||
|
||||
|
||||
.. literalinclude:: ./samples/anomaly-detect/update-anomaly-rule-failed-response.json
|
||||
:language: javascript
|
||||
|
||||
|
||||
Delete anomaly rule
|
||||
~~~~~~~~~~~~~~~~~~~~~
|
||||
|
@ -0,0 +1,4 @@
|
||||
{
|
||||
"code": -1,
|
||||
"msg": "no found"
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
{
|
||||
"title": "new name"
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
{
|
||||
"code": 0,
|
||||
"msg": "OK"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user