You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Notification is a message containing the details of the incident.
typeNotificationstruct {
IDstring`json:"id"`
Typestring
StartedAtstring`json:"started_at"`
Addressstring
UserAPIObject
}
// ListNotificationOptions is the data structure used when calling the ListNotifications API endpoint.
typeListNotificationOptionsstruct {
APIListObject
TimeZonestring`url:"time_zone,omitempty"`
Sincestring`url:"since,omitempty"`
Untilstring`url:"until,omitempty"`
Filterstring`url:"filter,omitempty"`
Includes []string`url:"include,omitempty"`
}
// ListNotificationsResponse is the data structure returned from the ListNotifications API endpoint.
typeListNotificationsResponsestruct {
APIListObject
Notifications []Notification
}
// ListNotifications lists notifications for a given time range, optionally filtered by type (sms_notification, email_notification, phone_notification, or push_notification).