Delivery health per destination: success rate, latency percentiles, error classes, time series
curl --request GET \
--url https://app.hookie.ai/admin/api/projects/{project_id}/deliveries/metricsconst options = {method: 'GET'};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/deliveries/metrics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{project_id}/deliveries/metrics"
response = requests.get(url)
print(response.text){
"window": "24h",
"since": "2023-11-07T05:31:56Z",
"until": "2023-11-07T05:31:56Z",
"destination_id": "<string>",
"bucket": "hour",
"bucket_ms": 123,
"totals": {
"deliveries": {
"total": 123,
"delivered": 123,
"failed": 123,
"pending": 123
},
"success_rate": 123,
"attempts": 123,
"attempts_ok": 123,
"attempt_success_rate": 123,
"latency_ms": {
"p50": 123,
"p95": 123,
"p99": 123
},
"errors": {
"3xx": 123,
"4xx": 123,
"5xx": 123,
"timeout": 123,
"connection": 123,
"other": 123
}
},
"destinations": [
{
"destination_id": "<string>",
"destination_name": "<string>",
"enabled": true,
"deliveries": {
"total": 123,
"delivered": 123,
"failed": 123,
"pending": 123
},
"success_rate": 123,
"attempts": 123,
"attempts_ok": 123,
"attempt_success_rate": 123,
"latency_ms": {
"p50": 123,
"p95": 123,
"p99": 123
},
"errors": {
"3xx": 123,
"4xx": 123,
"5xx": 123,
"timeout": 123,
"connection": 123,
"other": 123
}
}
],
"series": [
{
"t": "2023-11-07T05:31:56Z",
"ok": 123,
"failed": 123
}
]
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>",
"max_members": 123,
"members": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>",
"max_members": 123,
"members": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>",
"max_members": 123,
"members": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>",
"max_members": 123,
"members": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>",
"max_members": 123,
"members": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true
}Deliveries
Delivery health per destination: success rate, latency percentiles, error classes, time series
Every attempt in the window, the failed ones and the successful ones, per destination in the project and in total. Answers which destination is failing, whether it refuses requests (4xx) or fails to serve them (5xx, timeouts), and how slow it is. The series is hourly for 24h and 7d, daily for 30d, with every bucket present.
GET
/
admin
/
api
/
projects
/
{project_id}
/
deliveries
/
metrics
Delivery health per destination: success rate, latency percentiles, error classes, time series
curl --request GET \
--url https://app.hookie.ai/admin/api/projects/{project_id}/deliveries/metricsconst options = {method: 'GET'};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/deliveries/metrics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{project_id}/deliveries/metrics"
response = requests.get(url)
print(response.text){
"window": "24h",
"since": "2023-11-07T05:31:56Z",
"until": "2023-11-07T05:31:56Z",
"destination_id": "<string>",
"bucket": "hour",
"bucket_ms": 123,
"totals": {
"deliveries": {
"total": 123,
"delivered": 123,
"failed": 123,
"pending": 123
},
"success_rate": 123,
"attempts": 123,
"attempts_ok": 123,
"attempt_success_rate": 123,
"latency_ms": {
"p50": 123,
"p95": 123,
"p99": 123
},
"errors": {
"3xx": 123,
"4xx": 123,
"5xx": 123,
"timeout": 123,
"connection": 123,
"other": 123
}
},
"destinations": [
{
"destination_id": "<string>",
"destination_name": "<string>",
"enabled": true,
"deliveries": {
"total": 123,
"delivered": 123,
"failed": 123,
"pending": 123
},
"success_rate": 123,
"attempts": 123,
"attempts_ok": 123,
"attempt_success_rate": 123,
"latency_ms": {
"p50": 123,
"p95": 123,
"p99": 123
},
"errors": {
"3xx": 123,
"4xx": 123,
"5xx": 123,
"timeout": 123,
"connection": 123,
"other": 123
}
}
],
"series": [
{
"t": "2023-11-07T05:31:56Z",
"ok": 123,
"failed": 123
}
]
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>",
"max_members": 123,
"members": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>",
"max_members": 123,
"members": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>",
"max_members": 123,
"members": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>",
"max_members": 123,
"members": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>",
"max_members": 123,
"members": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true
}Query Parameters
Response
Delivery health for the window.