API route for returning tracked analytics keys (#10019)

* feat: track metrics saved by NodeBB (and assoc. plugins), #9949

* feat: route to retrieve analytics keys, closes #9949
This commit is contained in:
Julian Lam
2021-11-19 15:12:13 -05:00
committed by GitHub
parent 449366ca83
commit 5b42b6b369
5 changed files with 51 additions and 8 deletions

View File

@@ -0,0 +1,20 @@
get:
tags:
- admin
summary: get analytics keys
description: This operation returns the list metrics tracked by NodeBB. It is only accessible to administrators.
responses:
'200':
description: Analytics keys retrieved
content:
application/json:
schema:
type: object
properties:
status:
$ref: ../../components/schemas/Status.yaml#/Status
response:
type: object
properties:
keys:
type: array