+ openapi: add /stats_config, /stats_info methods
This commit is contained in:
parent
55ceca6314
commit
7ff27dbb42
|
@ -236,6 +236,34 @@ paths:
|
||||||
200:
|
200:
|
||||||
description: OK
|
description: OK
|
||||||
|
|
||||||
|
/stats_info:
|
||||||
|
get:
|
||||||
|
tags:
|
||||||
|
- stats
|
||||||
|
operationId: statsInfo
|
||||||
|
summary: 'Get statistics parameters'
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
schema:
|
||||||
|
$ref: "#/definitions/StatsConfig"
|
||||||
|
|
||||||
|
/stats_config:
|
||||||
|
post:
|
||||||
|
tags:
|
||||||
|
- stats
|
||||||
|
operationId: statsConfig
|
||||||
|
summary: "Set statistics parameters"
|
||||||
|
consumes:
|
||||||
|
- application/json
|
||||||
|
parameters:
|
||||||
|
- in: "body"
|
||||||
|
name: "body"
|
||||||
|
schema:
|
||||||
|
$ref: "#/definitions/StatsConfig"
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
description: OK
|
||||||
|
|
||||||
# --------------------------------------------------
|
# --------------------------------------------------
|
||||||
# TLS server methods
|
# TLS server methods
|
||||||
# --------------------------------------------------
|
# --------------------------------------------------
|
||||||
|
@ -1115,6 +1143,14 @@ definitions:
|
||||||
items:
|
items:
|
||||||
type: "integer"
|
type: "integer"
|
||||||
|
|
||||||
|
StatsConfig:
|
||||||
|
type: "object"
|
||||||
|
description: "Statistics configuration"
|
||||||
|
properties:
|
||||||
|
interval:
|
||||||
|
type: "integer"
|
||||||
|
description: "Time period to keep data (1 | 7 | 30 | 90)"
|
||||||
|
|
||||||
DhcpConfig:
|
DhcpConfig:
|
||||||
type: "object"
|
type: "object"
|
||||||
description: "Built-in DHCP server configuration"
|
description: "Built-in DHCP server configuration"
|
||||||
|
|
Loading…
Reference in New Issue