@directus-labs/api-metric-panel
v1.0.0
Published
A panel which allows to display a metric value from an external API
Downloads
10
Readme
Directus API Metric Panel
A panel which allows to display a metric value from an external API.
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.
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.