Values of a field, for variables and filter pickers.
GET
/dashboards/values
const url = 'https://api.siteqwality.com/dashboards/values?source=monitors&field=example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.siteqwality.com/dashboards/values?source=monitors&field=example' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” source
required
string
field
required
string
A field key of the source’s catalog.
q
string
Prefix or substring to search for.
metric
string
Metrics source only: scope tag values to this metric.
limit
integer format: int32
At most 100.
Responses
Section titled “ Responses ”Distinct values with labels
Media type application/json
object
values
required
Array<object>
object
value
required
string
label
string | null
Example generated
{ "values": [ { "value": "example", "label": "example" } ]}Unknown field for the source
Missing or invalid authentication
Custom dashboards require a paid plan
The source is not available, or the caller lacks its read scope
Internal server error
The lookup took too long