Merge "Fix params to required of api 'add anomaly rule' in api-ref"
This commit is contained in:
commit
0feeee3b19
@ -18,11 +18,11 @@ Request
|
|||||||
|
|
||||||
.. rest_parameters:: parameters.yaml
|
.. rest_parameters:: parameters.yaml
|
||||||
|
|
||||||
- title: rule_title
|
- title: add_rule_title
|
||||||
- desc: rule_desc
|
- desc: add_rule_desc
|
||||||
- keyword: rule_keyword
|
- keyword: add_rule_keyword
|
||||||
- log_type: rule_log_type
|
- log_type: add_rule_log_type
|
||||||
- module: rule_module
|
- module: add_rule_module
|
||||||
|
|
||||||
**Example Add Anomaly rule request:**
|
**Example Add Anomaly rule request:**
|
||||||
|
|
||||||
|
@ -117,6 +117,38 @@ uuid:
|
|||||||
in: query
|
in: query
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
|
# variables in body
|
||||||
|
add_rule_desc:
|
||||||
|
description: |
|
||||||
|
the description of anomaly rule.
|
||||||
|
in: body
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
add_rule_keyword:
|
||||||
|
description: |
|
||||||
|
keyword, only support exact-match at present.
|
||||||
|
in: body
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
add_rule_log_type:
|
||||||
|
description: |
|
||||||
|
the type of log, ``flog`` is platform log, and ``slog`` is operate system log.
|
||||||
|
in: body
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
add_rule_module:
|
||||||
|
description: |
|
||||||
|
application module or service.
|
||||||
|
in: body
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
add_rule_title:
|
||||||
|
description: |
|
||||||
|
the title of anomaly rule.
|
||||||
|
in: body
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
anomaly_log_type:
|
anomaly_log_type:
|
||||||
description: |
|
description: |
|
||||||
the log type of anomaly log, such as flog, slog
|
the log type of anomaly log, such as flog, slog
|
||||||
|
Loading…
Reference in New Issue
Block a user