public.databases.findings
const url = 'https://rest.watchtower15.com/v1/databases/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/findings?status=open&severity=critical&group=configuration&rule=config.buffer_pool_small&include_total=true';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://rest.watchtower15.com/v1/databases/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/findings?status=open&severity=critical&group=configuration&rule=config.buffer_pool_small&include_total=true' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”DatabasesFindingsResource
object
object
The advisor rule’s key, such as schema.no_primary_key.
The rule’s group: config, schema, workload or hardening.
What the finding is about: instance, table, index, statement, account and so on.
The object’s key, which tells objects apart when their names are hidden.
The object’s names; null unless the database shows identifiers.
One of critical, warning, info.
One of open, resolved, dismissed.
A statement’s text; null unless the database shows identifiers.
Epoch milliseconds.
Epoch milliseconds.
Epoch milliseconds: when it stopped applying; null while it is open.
Epoch milliseconds: when it was dismissed; null otherwise.
The whole list’s size; present only with include_total=true.
Example generated
{ "data": [ { "uuid": "example", "rule_key": "example", "group": "example", "object_kind": "example", "object_key": "example", "object_names": "example", "severity": "example", "status": "example", "statement_text": "example", "first_seen_at": 1, "last_seen_at": 1, "resolved_at": 1, "dismissed_at": 1 } ], "next_cursor": "example", "total": 1}The API key is missing, malformed, expired or revoked.
object
https://docs.watchtower15.com/api/errors/<code>/
object
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.
object
https://docs.watchtower15.com/api/errors/<code>/
object
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).
object
https://docs.watchtower15.com/api/errors/<code>/
object
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.
object
https://docs.watchtower15.com/api/errors/<code>/
object
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.
object
https://docs.watchtower15.com/api/errors/<code>/
object
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.
object
https://docs.watchtower15.com/api/errors/<code>/
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "code": "example", "detail": "example", "request_id": "example", "errors": { "additionalProperty": [ "example" ] }, "limit": 1, "used": 1}