Metrics
Get Dashboard Filter Suggestions
POST
apiKeyAuthheader
x-api-key<token>FastStats API key. Pass it in the x-api-key header or as a Bearer token in the Authorization header.
idOrSlug*stringapplication/json- body
dashboardId?string|null|nullfields*array<string>numericFields?array<string>|nulltimeRange?|||nullSuccess
application/json- response
[key: string]?curl -X POST 'https://api.faststats.dev/v0/projects/string/metrics/filter-suggestions' \ -H 'Content-Type: application/json' \ -d '{ "fields": [ "string" ]}'Example Response
{ "property1": { "values": [ "string" ], "numericRange": { "min": 0, "max": 0 } }, "property2": { "values": [ "string" ], "numericRange": { "min": 0, "max": 0 } }}curl -X POST 'https://api.faststats.dev/v0/projects/string/metrics/filter-suggestions' \
-H 'Content-Type: application/json' \
-d '{
"fields": [
"string"
]
}'{
"property1": {
"values": [
"string"
],
"numericRange": {
"min": 0,
"max": 0
}
},
"property2": {
"values": [
"string"
],
"numericRange": {
"min": 0,
"max": 0
}
}
}