mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-12-15 03:02:07 +03:00
+ openapi: add /stats_config, /stats_info methods
This commit is contained in:
parent
55ceca6314
commit
7ff27dbb42
@ -236,6 +236,34 @@ paths:
|
||||
200:
|
||||
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
|
||||
# --------------------------------------------------
|
||||
@ -1115,6 +1143,14 @@ definitions:
|
||||
items:
|
||||
type: "integer"
|
||||
|
||||
StatsConfig:
|
||||
type: "object"
|
||||
description: "Statistics configuration"
|
||||
properties:
|
||||
interval:
|
||||
type: "integer"
|
||||
description: "Time period to keep data (1 | 7 | 30 | 90)"
|
||||
|
||||
DhcpConfig:
|
||||
type: "object"
|
||||
description: "Built-in DHCP server configuration"
|
||||
|
Loading…
Reference in New Issue
Block a user