Get HTTP request count for one or more services
GET {{baseUrl}}/metrics/http-requests?startTime=<dateTime>&endTime=<dateTime>&resolutionSeconds=60&service=<string>&host=<string>&path=<string>&aggregateBy=host
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
startTime | string | Epoch/Unix timestamp of end of time range to return. Defaults to now() - 1 hour . | |
endTime | string | Epoch/Unix timestamp of end of time range to return. Defaults to now() . | |
resolutionSeconds | number | The resolution of the returned data | |
service | string | (Required) Service ID to query. When multiple service query params are provided, they are ORed together | |
host | string | The hosts of HTTP requests to filter to. When multiple host query params are provided, they are ORed together | |
path | string | The paths of HTTP requests to filter to. When multiple path query params are provided, they are ORed together | |
aggregateBy | string | The field to aggregate by |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
[{"labels":[{"field":"\u003cstring\u003e","value":"\u003cstring\u003e"},{"field":"\u003cstring\u003e","value":"\u003cstring\u003e"}],"values":[{"timestamp":"\u003cdateTime\u003e","value":"\u003cnumber\u003e","unit":false},{"timestamp":"\u003cdateTime\u003e","value":"\u003cnumber\u003e","unit":-88035325}],"unit":"\u003cstring\u003e"},{"labels":[{"field":"\u003cstring\u003e","value":"\u003cstring\u003e"},{"field":"\u003cstring\u003e","value":"\u003cstring\u003e"}],"values":[{"timestamp":"\u003cdateTime\u003e","value":"\u003cnumber\u003e","unit":true},{"timestamp":"\u003cdateTime\u003e","value":"\u003cnumber\u003e","unit":-1664528}],"unit":"\u003cstring\u003e"}]