List an incident's older timeline entries from the detail's `timeline_next_cursor`, a page at a time
curl --request GET \
--url https://api.hebeat.com/incidents/{incident_id}/timeline \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.hebeat.com/incidents/{incident_id}/timeline', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.hebeat.com/incidents/{incident_id}/timeline"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"timeline": [
{
"type": "event",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "opened",
"sequence": 1,
"occurred_at": "2023-11-07T05:31:56Z",
"alert_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"actor": {
"type": "user",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"evidence": {
"run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"region_code": "us-east",
"to_status": "active",
"matching_region_count": 123,
"configured_region_count": 123,
"affected_regions": [
"us-east"
],
"from": "critical",
"to": "critical",
"reminder": 123,
"escalation_step": 123,
"escalation_step_count": 123,
"escalation_policy_name": "<string>",
"assignee_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"assignee_name": "<string>"
}
}
],
"next_cursor": "<string>"
}{
"error": {
"code": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>",
"params": {}
}
],
"workspaces": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"member_count": 123,
"kind": "shared"
}
]
}
}{
"error": {
"code": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>",
"params": {}
}
],
"workspaces": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"member_count": 123,
"kind": "shared"
}
]
}
}{
"error": {
"code": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>",
"params": {}
}
],
"workspaces": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"member_count": 123,
"kind": "shared"
}
]
}
}{
"error": {
"code": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>",
"params": {}
}
],
"workspaces": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"member_count": 123,
"kind": "shared"
}
]
}
}{
"error": {
"code": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>",
"params": {}
}
],
"workspaces": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"member_count": 123,
"kind": "shared"
}
]
}
}{
"error": {
"code": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>",
"params": {}
}
],
"workspaces": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"member_count": 123,
"kind": "shared"
}
]
}
}Incidents
List an incident's older timeline entries from the detail's `timeline_next_cursor`, a page at a time
GET
/
incidents
/
{incident_id}
/
timeline
List an incident's older timeline entries from the detail's `timeline_next_cursor`, a page at a time
curl --request GET \
--url https://api.hebeat.com/incidents/{incident_id}/timeline \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.hebeat.com/incidents/{incident_id}/timeline', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.hebeat.com/incidents/{incident_id}/timeline"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"timeline": [
{
"type": "event",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "opened",
"sequence": 1,
"occurred_at": "2023-11-07T05:31:56Z",
"alert_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"actor": {
"type": "user",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"evidence": {
"run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"region_code": "us-east",
"to_status": "active",
"matching_region_count": 123,
"configured_region_count": 123,
"affected_regions": [
"us-east"
],
"from": "critical",
"to": "critical",
"reminder": 123,
"escalation_step": 123,
"escalation_step_count": 123,
"escalation_policy_name": "<string>",
"assignee_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"assignee_name": "<string>"
}
}
],
"next_cursor": "<string>"
}{
"error": {
"code": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>",
"params": {}
}
],
"workspaces": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"member_count": 123,
"kind": "shared"
}
]
}
}{
"error": {
"code": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>",
"params": {}
}
],
"workspaces": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"member_count": 123,
"kind": "shared"
}
]
}
}{
"error": {
"code": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>",
"params": {}
}
],
"workspaces": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"member_count": 123,
"kind": "shared"
}
]
}
}{
"error": {
"code": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>",
"params": {}
}
],
"workspaces": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"member_count": 123,
"kind": "shared"
}
]
}
}{
"error": {
"code": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>",
"params": {}
}
],
"workspaces": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"member_count": 123,
"kind": "shared"
}
]
}
}{
"error": {
"code": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>",
"params": {}
}
],
"workspaces": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"member_count": 123,
"kind": "shared"
}
]
}
}Headers
Was this page helpful?