Skip to content

public.incidents.view

GET
/incidents/{incident_uuid}
curl --request GET \
--url https://rest.watchtower15.com/v1/incidents/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>'
incident_uuid
required
string format: uuid

IncidentsViewResource

Media typeapplication/json
object
data
required
IncidentsViewResource
object
uuid
required
string
status
required

One of open, acknowledged, resolved.

string
severity
required

One of warning, critical.

string
message
required
string
rule_name
required

The alarm’s own name, which tells apart two alarms on one metric.

string
rule_slug
required
metric_name
required
scan_type
required
entity
required

The resource the incident is about, of any type that has alarms.

object
type
required
uuid
required
name
required
parent_entity
required

The server of a volume, port or unit; null for every other entity.

object
type
required
string
uuid
required
string
triggered_at
required
integer | null
acknowledged_at
required
integer | null
acknowledged_by
required
object
name
required
string | null
resolved_at
required
integer | null
resolved_by
required
object
name
required
string | null
resolved_by_system
required

Whether the system resolved it (the condition cleared), not a person.

boolean
console_url
required
string
change_detail
required

What changed when the incident fired, {<field>: {old, new}}, the stored normalised strings (an SSL instant as its text, the one exception to epoch milliseconds); {} with none. The WHOIS registrant fields are left out.

object
key
additional properties
object
old
required
string | null
new
required
string | null
alarm_uuid
required

The alarm the incident belongs to; null once it is gone.

string | null
trigger_scan_uuid
required

The scan that raised the incident.

string | null
resolve_scan_uuid
required

The scan that cleared it.

string | null
notification_sent_at
required

Epoch milliseconds: when notifications for the trigger were sent.

integer | null
notifications
required
Array<object>
object
channel
required

The channel it went out on, such as email or slack: an open set.

string
status
required

How it went: sent, failed, skipped or queued, as the notifier records it; an open set.

string
sent_at
required

Epoch milliseconds.

integer | null

Example generated

{
"data": {
"uuid": "example",
"status": "example",
"severity": "example",
"message": "example",
"rule_name": "example",
"rule_slug": "example",
"metric_name": "example",
"scan_type": "example",
"entity": {
"type": "example",
"uuid": "example",
"name": "example"
},
"parent_entity": {
"type": "example",
"uuid": "example"
},
"triggered_at": 1,
"acknowledged_at": 1,
"acknowledged_by": {
"name": "example"
},
"resolved_at": 1,
"resolved_by": {
"name": "example"
},
"resolved_by_system": true,
"console_url": "example",
"change_detail": {
"additionalProperty": {
"old": "example",
"new": "example"
}
},
"alarm_uuid": "example",
"trigger_scan_uuid": "example",
"resolve_scan_uuid": "example",
"notification_sent_at": 1,
"notifications": [
{
"channel": "example",
"status": "example",
"sent_at": 1
}
]
}
}

The API key is missing, malformed, expired or revoked.

Media typeapplication/problem+json
Problem
object
type
required

https://docs.watchtower15.com/api/errors/<code>/

string format: uri
title
required
string
status
required
integer
code
required
string
detail
required
string
request_id
required
string
errors
object
key
additional properties
Array<string>
limit
integer
used
integer

Example generated

{
"type": "https://example.com",
"title": "example",
"status": 1,
"code": "example",
"detail": "example",
"request_id": "example",
"errors": {
"additionalProperty": [
"example"
]
},
"limit": 1,
"used": 1
}

The key or its owner does not hold what the operation needs.

Media typeapplication/problem+json
Problem
object
type
required

https://docs.watchtower15.com/api/errors/<code>/

string format: uri
title
required
string
status
required
integer
code
required
string
detail
required
string
request_id
required
string
errors
object
key
additional properties
Array<string>
limit
integer
used
integer

Example generated

{
"type": "https://example.com",
"title": "example",
"status": 1,
"code": "example",
"detail": "example",
"request_id": "example",
"errors": {
"additionalProperty": [
"example"
]
},
"limit": 1,
"used": 1
}

No such record in this organisation (an absent id and another organisation’s answer alike).

Media typeapplication/problem+json
Problem
object
type
required

https://docs.watchtower15.com/api/errors/<code>/

string format: uri
title
required
string
status
required
integer
code
required
string
detail
required
string
request_id
required
string
errors
object
key
additional properties
Array<string>
limit
integer
used
integer

Example generated

{
"type": "https://example.com",
"title": "example",
"status": 1,
"code": "example",
"detail": "example",
"request_id": "example",
"errors": {
"additionalProperty": [
"example"
]
},
"limit": 1,
"used": 1
}

The request is invalid; errors names the parameters.

Media typeapplication/problem+json
Problem
object
type
required

https://docs.watchtower15.com/api/errors/<code>/

string format: uri
title
required
string
status
required
integer
code
required
string
detail
required
string
request_id
required
string
errors
object
key
additional properties
Array<string>
limit
integer
used
integer

Example generated

{
"type": "https://example.com",
"title": "example",
"status": 1,
"code": "example",
"detail": "example",
"request_id": "example",
"errors": {
"additionalProperty": [
"example"
]
},
"limit": 1,
"used": 1
}

A rate limit or the organisation’s daily limit is reached; Retry-After says when to retry.

Media typeapplication/problem+json
Problem
object
type
required

https://docs.watchtower15.com/api/errors/<code>/

string format: uri
title
required
string
status
required
integer
code
required
string
detail
required
string
request_id
required
string
errors
object
key
additional properties
Array<string>
limit
integer
used
integer

Example generated

{
"type": "https://example.com",
"title": "example",
"status": 1,
"code": "example",
"detail": "example",
"request_id": "example",
"errors": {
"additionalProperty": [
"example"
]
},
"limit": 1,
"used": 1
}

An unexpected error.

Media typeapplication/problem+json
Problem
object
type
required

https://docs.watchtower15.com/api/errors/<code>/

string format: uri
title
required
string
status
required
integer
code
required
string
detail
required
string
request_id
required
string
errors
object
key
additional properties
Array<string>
limit
integer
used
integer

Example generated

{
"type": "https://example.com",
"title": "example",
"status": 1,
"code": "example",
"detail": "example",
"request_id": "example",
"errors": {
"additionalProperty": [
"example"
]
},
"limit": 1,
"used": 1
}