Skip to content

Commit

Permalink
* openapi: describe top_* array entries in /stats
Browse files Browse the repository at this point in the history
  • Loading branch information
szolin committed Jun 18, 2020
1 parent 523aeb5 commit d0b640c
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1213,15 +1213,15 @@ components:
top_queried_domains:
type: array
items:
type: object
$ref: "#/components/schemas/TopArrayEntry"
top_clients:
type: array
items:
type: object
$ref: "#/components/schemas/TopArrayEntry"
top_blocked_domains:
type: array
items:
type: object
$ref: "#/components/schemas/TopArrayEntry"
dns_queries:
type: array
items:
Expand All @@ -1238,6 +1238,12 @@ components:
type: array
items:
type: integer
TopArrayEntry:
type: object
description: Represent the number of hits per key (domain or client IP)
properties:
domain_or_ip:
type: integer
StatsConfig:
type: object
description: Statistics configuration
Expand Down

0 comments on commit d0b640c

Please sign in to comment.