Send one test log record (and span) to a draft or the saved configuration
curl --request POST \
--url https://app.hookie.ai/admin/api/projects/{project_id}/telemetry/test \
--header 'Content-Type: application/json' \
--data '
{
"settings": {},
"secrets": {}
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({settings: {}, secrets: {}})
};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/telemetry/test', 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}/telemetry/test"
payload = {
"settings": {},
"secrets": {}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"vendor": "datadog",
"results": [
{
"signal": "logs",
"url": "<string>",
"ok": true,
"status": 123,
"ms": 123,
"error": "<string>"
}
]
}{
"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
}Broadcast Logs
Send one test log record (and span) to a draft or the saved configuration
With vendor (plus settings / secrets) in the body, tests that draft without saving it; a draft of the saved vendor may leave secrets blank to use the stored ones. With an empty body, tests the saved integration and records last_test_at / last_test_ok. Redirects are never followed.
POST
/
admin
/
api
/
projects
/
{project_id}
/
telemetry
/
test
Send one test log record (and span) to a draft or the saved configuration
curl --request POST \
--url https://app.hookie.ai/admin/api/projects/{project_id}/telemetry/test \
--header 'Content-Type: application/json' \
--data '
{
"settings": {},
"secrets": {}
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({settings: {}, secrets: {}})
};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/telemetry/test', 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}/telemetry/test"
payload = {
"settings": {},
"secrets": {}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"vendor": "datadog",
"results": [
{
"signal": "logs",
"url": "<string>",
"ok": true,
"status": 123,
"ms": 123,
"error": "<string>"
}
]
}{
"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
}Headers
Body
application/json