Get monitor time series
const url = 'https://api.perstat.io/monitors/example/series';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.perstat.io/monitors/example/series \ --header 'Authorization: Bearer <token>'Returns the aggregated measurement time series of a monitor over a selectable range from 3 hours to 90 days (default 1 day), bucketed server-side into evenly spaced points with uptime, latency, and check statistics. For agent-based threshold monitors the curve carries the measured metric instead of latency, and service monitors accept a series_metric parameter to choose between process CPU and memory. Accepts API keys with the monitors:read scope, subject to current role and resource grants.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”3h|6h|12h|1d|7d|14d|30d|90d (default 1d)
Dienst-Monitore: cpu|mem (Default cpu); Kurve = Prozess-CPU-% bzw. RAM-MB
Responses
Section titled “Responses”Request succeeded. The response body contains the result.
Zeitreihe für die Monitor-Detailansicht: serverseitig in Buckets aggregiert, damit auch große Zeiträume (bis 90 Tage) wenige, gleichmäßige Punkte liefern.
object
Ein aggregierter Zeit-Bucket je Region für den Detail-Chart.
object
Range-Aggregat für die Stat-Cards (Uptime/Ø/P95/Anzahl).
object
Examplegenerated
{ "bucket_seconds": 1, "from_unix": 1, "points": [ { "avg_ms": 1, "bucket_unix": 1, "degraded": 1, "down": 1, "max_ms": 1, "region": "example", "up": 1 } ], "range": "example", "stats": { "avg_ms": 1, "checks": 1, "p95_ms": 1, "uptime_pct": 1 }, "to_unix": 1}The request is invalid. Check the supplied fields and values.
Authentication is missing or invalid.
The authenticated caller does not have permission to perform this operation.
No accessible resource matches the supplied identifier.