Read a service's routes
Returns one row per route over the range, the busiest 100: requests, requests per second, the share answered 5xx, requests per status class and code, duration quantiles, total time spent and a request-rate trend. For the service the app's address routes to, rows come from the ingress access log, which records every request for seven days; route templates there are inferred from paths. Every other service needs the app to send OpenTelemetry spans, whose own routes are used. Filters take the fields `route`, `method` and `status` (a code such as `404` or a class such as `5xx`). `serviceName` is a compose service.
Authorization
cloady Personal API token (cldy_…)
In: header
Path Parameters
Query Parameters
Value in
- "production"
- "preview"
- "development"
How far back to look; the answer has 30 to 96 points across it
"1h"Value in
- "15m"
- "1h"
- "6h"
- "24h"
- "7d"
Where the numbers come from: ingress reads the access log of the service the app's address routes to, traces reads the OpenTelemetry server spans the service sends. Defaults to ingress for that service and traces for every other one
Value in
- "ingress"
- "traces"
Filters, each written <field><op><value> with op =, !=, =~ or !~; =~ and !~ take a regular expression matched against the whole value, ignoring case. Repeat the parameter for several; every one must hold
items <= 20Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/workspaces/string/apps/string/services/string/routes"{ "source": "ingress", "sources": { "ingress": true, "traces": true }, "start": 0, "step": 0, "requests": 0, "total": 0, "routes": [ { "method": "string", "route": "string", "requests": 0, "rps": 0, "errorRate": 0, "classes": { "2xx": 0, "3xx": 0, "4xx": 0, "5xx": 0, "other": 0 }, "statuses": { "property1": 0, "property2": 0 }, "p50": 0, "p95": 0, "p99": 0, "seconds": 0, "trend": [ 0 ] } ], "methods": [ "string" ], "query": "string", "coverage": { "logged": 0, "counted": 0 }}Read what a service calls and what calls it GET
Returns the calls observed in the range's traces between the service and other services, databases and hosts, with their rate, failure share and 95th-percentile duration. Without observed calls it falls back to the compose file: depends_on entries and environment values that name another service as a host. `serviceName` is a compose service.
Read one route over time GET
Returns one route's request rate, 5xx rate and duration quantiles at each step of the range. `route` and `method` name the route as readServiceRoutes lists it. `serviceName` is a compose service.