Query histogram metric data: percentile time series plus the raw bucket matrix for heatmap rendering.
GET
/metrics/histogram
const url = 'https://api.siteqwality.com/metrics/histogram';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/metrics/histogram \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Histogram query result
Media type application/json
Histogram query response: per-time-bucket percentiles plus the raw bucket-count matrix for heatmap rendering.
object
bounds
required
Upper-bound labels for the histogram buckets, in ascending order. The last entry may be “+Inf”.
Array<string>
buckets
required
Array<object>
One time bucket of aggregated histogram data.
object
timestamp
required
string
counts
required
Per-bucket (non-cumulative) observation counts, aligned with bounds.
Array<integer>
total
required
Total number of observations in this time bucket.
integer format: int64
sum
required
Sum of all observed values in this time bucket.
number format: double
p50
required
number format: double
p90
required
number format: double
p95
required
number format: double
p99
required
number format: double
unit
required
string
interval_seconds
required
integer format: int64
Example generated
{ "bounds": [ "example" ], "buckets": [ { "timestamp": "example", "counts": [ 1 ], "total": 1, "sum": 1, "p50": 1, "p90": 1, "p95": 1, "p99": 1 } ], "unit": "example", "interval_seconds": 1}Missing or invalid authentication
Internal server error