Get alert schedules

GET/alertSchedules

Base URL: https://api.tinkermode.com

Get a list of alert schedules.

Authentication

Send an Authorization header of the form ModeCloud <AUTH_CODE>.

Must contain the key of a user or service account with permissions to read alert schedules or a project API key.

Query parameters

NameTypeRequiredConstraintsDescription
entityIdstringNoReturn alert schedules associated with the specified entity. This parameter can't be used with the hasEntity parameter.
hasEntitybooleanNoReturn alert schedules that are associated with an entity or not. This parameter can't be used with the entityId parameter.
includeDescendantsbooleanNoOnly meaningful together with the entityId filter. If true, an entity filter also matches alert schedules attached to its descendants. Defaults to false.
limitintegerNodefault: 25; min: 1; max: 100Maximum number of alert schedules to return.
projectIdintegerYesReturn alert schedules of the specified project.
skipintegerNodefault: 0; min: 0Number of alert schedules to skip over.

Responses

200 Successfully retrieved the alert schedules.

Content type: application/json

Represents an alert schedule

An array of objects with the following shape:

PropertyTypeRequiredConstraintsDescription
descriptionstringNodefault: ""Optional description for the alert schedule
entityIdstringNoOptional entity ID if the schedule is associated with a specific entity
namestringNoThe name of the alert schedule
projectIdintegerNoThe unique identifier for the project the alert rule belongs to
timeZonestringNoThe time zone to use for the schedule (IANA time zone database format, e.g. 'America/New_York')
weeklySchedulesobjectNoWeekly schedule configuration

401 Authorization is required to access this resource.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

403 Request failed because of denied permission.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

429 Request failed because of rate limit.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

500 An unexpected error has occurred.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

503 The service is temporarily unavailable.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.