* openapi: describe top_* array entries in /stats

Squashed commit of the following:

commit d0b640cb36985c82f1020de99fba2201a1c54738
Author: Simon Zolin <s.zolin@adguard.com>
Date:   Thu Jun 18 11:53:16 2020 +0300

    * openapi: describe top_* array entries in /stats
This commit is contained in:
Simon Zolin 2020-06-18 13:49:52 +03:00
parent 523aeb5c98
commit ec6e0bea07
1 changed files with 9 additions and 3 deletions

View File

@ -1213,15 +1213,15 @@ components:
top_queried_domains: top_queried_domains:
type: array type: array
items: items:
type: object $ref: "#/components/schemas/TopArrayEntry"
top_clients: top_clients:
type: array type: array
items: items:
type: object $ref: "#/components/schemas/TopArrayEntry"
top_blocked_domains: top_blocked_domains:
type: array type: array
items: items:
type: object $ref: "#/components/schemas/TopArrayEntry"
dns_queries: dns_queries:
type: array type: array
items: items:
@ -1238,6 +1238,12 @@ components:
type: array type: array
items: items:
type: integer type: integer
TopArrayEntry:
type: object
description: Represent the number of hits per key (domain or client IP)
properties:
domain_or_ip:
type: integer
StatsConfig: StatsConfig:
type: object type: object
description: Statistics configuration description: Statistics configuration