Skip to content

Datasource: JSON

Rello edited this page Jan 27, 2021 · 8 revisions

With the JSON datasource, you can extract data from an external JSON service

Usecase

  • grab Nextcloud statistics from its own monitoring API (see below)

Conditions

  • URL needs to be accessible by Nextcloud
  • Realtime or dataload

Usage

  1. select report
  2. select "JSON" datasource
  3. maintain parameters
  4. testrun until the required parameters arrive

Input Parameter:

  • URL of json
  • authentication
  • json path
  • timestamp t/f

Example:

Monitor the Nextcloud instance via its internal API

  • monitoring app needs to be enabled
  • access token needs to be created
  • URL: http://server/nextcloud/ocs/v2.php/apps/serverinfo/api/v1/info?format=json
  • Auth: user:token (from settings->security)
  • Path: ocs/data/nextcloud/storage (or/and ocs/data/nextcloud/shares in a second dataload)
  • Timestamp true

Screenshot 2020-02-04 at 21 30 39

Clone this wiki locally