List Policies
Authentication
AuthorizationBearer
Retrieve your API Key from Dashboard.
Query parameters
id
This will return policies with the specified id.
severity
This will return policies with the specified severity.
Allowed values:
monitorId
This will return policies associated with the specified monitor ID.
page
This is the page number to return. Defaults to 1.
sortOrder
This is the sort order for pagination. Defaults to 'DESC'.
Allowed values:
limit
This is the maximum number of items to return. Defaults to 100.
createdAtGt
This will return items where the createdAt is greater than the specified value.
createdAtLt
This will return items where the createdAt is less than the specified value.
createdAtGe
This will return items where the createdAt is greater than or equal to the specified value.
createdAtLe
This will return items where the createdAt is less than or equal to the specified value.
updatedAtGt
This will return items where the updatedAt is greater than the specified value.
updatedAtLt
This will return items where the updatedAt is less than the specified value.
updatedAtGe
This will return items where the updatedAt is greater than or equal to the specified value.
updatedAtLe
This will return items where the updatedAt is less than or equal to the specified value.
Response
name
This is the name of the policy.
threshold
This is the threshold configuration for the policy.
lookbackWindowMinutes
This is the lookback window in minutes. The policy will query events from the last N minutes.
severity
This is the severity level of issues created by this policy.
Allowed values:
id
This is the unique identifier for the policy.
orgId
This is the unique identifier for the org that this policy belongs to.
createdAt
This is the ISO 8601 date-time string of when the policy was created.
updatedAt
This is the ISO 8601 date-time string of when the policy was last updated.
monitorIds
These are the monitor IDs associated with this policy.
This is only present when retrieving a single policy by ID.
schedule
This is the schedule configuration for when the policy should run.
lastRunAt
This is the ISO 8601 date-time string of when the policy was last run.