Returns time-series resource utilization data for all services. Each timestamp includes per-service metrics: CPU (cores), memory (bytes), swap (bytes), pressure indicators (0.0-1.0), and per-mountpoint disk/inode usage. All metrics include statistical aggregations: min, max, avg, stddev, and percentiles (p50, p95-p99). Service names and mountpoint paths are dynamic. Aggregation values are nullable when insufficient data exists.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The unique identifier of the Upsun project
[a-z0-9]+"abc123def456"
The environment identifier
.+"main"
Start timestamp for the time range (Unix timestamp in seconds)
1704067200
End timestamp for the time range (Unix timestamp in seconds)
1704153600
Filter by specific service name (optional)
"app"
Filter results to specific services. Can be specified multiple times for multiple services. When omitted, all services are included by default. Use services_mode to control inclusion/exclusion behavior. Specify parameter multiple times for multiple values (e.g., ?services[]=app&services[]=database).
Filter mode for services parameter. "1" (additive) includes only specified services. "-1" (subtractive, default) excludes specified services and includes all others.
1, -1 "1"
Resource metrics retrieved successfully
Data granularity in seconds
5
Query start timestamp
1704067200
Query end timestamp
1704153600
Project identifier
"abc123def456"
Environment identifier
"main"
Branch machine name
"main-bvxea6i"
Array of timestamped data points, each containing resource metrics grouped by service name. Each data point contains timestamp and optional data fields. Fields are omitted for timestamps with no data - this indicates no data was received.
[
{
"timestamp": 1704067200,
"services": {
"app": {
"cpu_used": { "avg": 0.45 },
"memory_used": { "avg": 612892672 }
}
}
},
{ "timestamp": 1704070800 },
{
"timestamp": 1704074400,
"services": {
"app": {
"cpu_used": { "avg": 0.52 },
"memory_used": { "avg": 625000000 }
}
}
}
]