1.0.0 • Published 8 months ago

@directus-labs/api-metric-panel v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

Directus API Metric Panel

A panel which allows to display a metric value from an external API.

npm.io

Installation & Setup

To install the extension, take a look at the Official Guide.

!NOTE
The selected metric will be available through the API for any user with app-access.

Settings

Once added to a dashboard you can define from where the data should be fetched.

npm.io

In the result-path you can define the path to your desired value in a dot-notation. If your endpoint for example returns this JSON-response:

{
  "user": "directus",
  "pull_count": 35786947,
  "nested_data": {
    "nested_one": 12,
  }
}

You can select nested_one by using nested_data.nested_one as your request path.

Other settings as request-headers, a custom request-body and a bunch of styling options are available too.