+ openapi: /querylog_info, /querylog_config, /querylog_clear

This commit is contained in:
Simon Zolin 2019-07-29 18:51:55 +03:00
parent 05bb705e43
commit 27f895cf46

View File

@ -191,21 +191,42 @@ paths:
description: OK description: OK
schema: schema:
$ref: '#/definitions/QueryLog' $ref: '#/definitions/QueryLog'
/querylog_enable:
post: /querylog_info:
get:
tags: tags:
- log - log
operationId: querylogEnable operationId: queryLogInfo
summary: 'Enable querylog' summary: 'Get query log parameters'
responses: responses:
200: 200:
description: OK description: OK
/querylog_disable: schema:
$ref: "#/definitions/QueryLogConfig"
/querylog_config:
post: post:
tags: tags:
- log - log
operationId: querylogDisable operationId: queryLogConfig
summary: 'Disable filtering' summary: "Set query log parameters"
consumes:
- application/json
parameters:
- in: "body"
name: "body"
schema:
$ref: "#/definitions/QueryLogConfig"
responses:
200:
description: OK
/querylog_clear:
post:
tags:
- log
operationId: querylogClear
summary: 'Clear query log'
responses: responses:
200: 200:
description: OK description: OK
@ -244,6 +265,7 @@ paths:
summary: 'Get statistics parameters' summary: 'Get statistics parameters'
responses: responses:
200: 200:
description: OK
schema: schema:
$ref: "#/definitions/StatsConfig" $ref: "#/definitions/StatsConfig"
description: OK description: OK
@ -1360,6 +1382,18 @@ definitions:
description: "Query log" description: "Query log"
items: items:
$ref: "#/definitions/QueryLogItem" $ref: "#/definitions/QueryLogItem"
QueryLogConfig:
type: "object"
description: "Query log configuration"
properties:
enabled:
type: "boolean"
description: "Is query log enabled"
interval:
type: "integer"
description: "Time period to keep data (1 | 7 | 30 | 90)"
TlsConfig: TlsConfig:
type: "object" type: "object"
description: "TLS configuration settings and status" description: "TLS configuration settings and status"