Push Notification Log
Logs of all the Push Notifications sent out to all users and subscribers for this project.
The Push Notification Log Model
Properties
- Name
_id- Type
- Object ID
- Description
ID of this object
- Name
createdAt- Type
- Date
- Description
Date and Time when the object was created.
- Name
updatedAt- Type
- Date
- Description
Date and Time when the object was updated.
- Name
project- Type
- Project
- Description
Relation to Project Resource in which this object belongs
- Name
projectId- Type
- Object IDRequired
- Description
ID of your Project in which this object belongs
- Name
title- Type
- Long TextRequired
- Description
Title of the push notification
- Name
body- Type
- Very Long Text
- Description
Body of the push notification
- Name
deviceType- Type
- Text
- Description
Type of device this was sent to (e.g., web)
- Name
deviceName- Type
- Text
- Description
Name of the device this was sent to
- Name
statusMessage- Type
- Long Text
- Description
Status Message (if any)
- Name
status- Type
- TextRequired
- Description
Status of the push notification
- Name
incident- Type
- Incident
- Description
Incident associated with this Push (if any)
- Name
incidentId- Type
- Object ID
- Description
ID of Incident associated with this Push (if any)
- Name
user- Type
- User
- Description
User who initiated this Push notification (if any)
- Name
userId- Type
- Object ID
- Description
ID of User who initiated this Push notification (if any)
- Name
alert- Type
- Alert
- Description
Alert associated with this Push (if any)
- Name
alertId- Type
- Object ID
- Description
ID of Alert associated with this Push (if any)
- Name
monitor- Type
- Monitor
- Description
Monitor associated with this Push (if any)
- Name
monitorId- Type
- Object ID
- Description
ID of Monitor associated with this Push (if any)
- Name
scheduledMaintenance- Type
- Scheduled Maintenance Event
- Description
Scheduled Maintenance associated with this Push (if any)
- Name
scheduledMaintenanceId- Type
- Object ID
- Description
ID of Scheduled Maintenance associated with this Push (if any)
- Name
statusPage- Type
- Status Page
- Description
Status Page associated with this Push (if any)
- Name
statusPageId- Type
- Object ID
- Description
ID of Status Page associated with this Push (if any)
- Name
statusPageAnnouncement- Type
- Status Page Announcement
- Description
Status Page Announcement associated with this Push (if any)
- Name
statusPageAnnouncementId- Type
- Object ID
- Description
ID of Status Page Announcement associated with this Push (if any)
- Name
onCallDutyPolicy- Type
- On-Call Policy
- Description
On-Call Duty Policy associated with this Push Notification (if any)
- Name
onCallDutyPolicyId- Type
- Object ID
- Description
ID of On-Call Duty Policy associated with this Push Notification (if any)
- Name
onCallDutyPolicyEscalationRule- Type
- Escalation Rule
- Description
On-Call Duty Policy Escalation Rule associated with this Push Notification (if any)
- Name
onCallDutyPolicyEscalationRuleId- Type
- Object ID
- Description
ID of On-Call Duty Policy Escalation Rule associated with this Push Notification (if any)
- Name
onCallDutyPolicySchedule- Type
- On-Call Policy Schedule
- Description
On-Call Duty Policy Schedule associated with this Push Notification (if any)
- Name
onCallDutyPolicyScheduleId- Type
- Object ID
- Description
ID of On-Call Duty Policy Schedule associated with this Push Notification (if any)
- Name
team- Type
- Team
- Description
Team associated with this Push Notification (if any)
- Name
teamId- Type
- Object ID
- Description
ID of Team associated with this Push Notification (if any)
/api/push-notification-log/get-listList
This endpoint allows you to retrieve a paginated list of all your Push Notification Log. By default, a maximum of ten Push Notification Log are shown per page.
Optional Query Params
limit- number
- Number of objects to fetch. By default 10, you can increase this count up to 100
skip- number
- Number of objects to skip. This can be useful in pagination
Optional Request Body
query- If you would like to filter on Push Notification Log. You can specify include a query here. For more information, please check out writing queries here.
select- By default you will only retrieve ID of objects, to retrieve more fields you need to select them. For more information, please check how to select here.
sort- Objects will be sorted based on created date by default. You can change the sort order — see Data Types: Sort.
List Request
POST/api/push-notification-log/get-list?skip=0&limit=10Content-Type: application/json ApiKey: YOUR_API_KEY
{
"select": {
"projectId": true,
"status": true,
"title": true,
"alert": true,
"alertId": true
},
"query": {
"status": "Sent"
},
"sort": {
"createdAt": -1
}
}Response
{
"count": 10,
"limit": 10,
"skip": 0,
"data": [
{
"_id": "37784870-28fe-11f1-b591-3fdcef396aba",
"projectId": "5f8b9c0d-e1a2-4b3c-8d5e-6f7a8b9c0d1e",
"status": "Sent",
"title": "Alert: High CPU Usage Detected",
"alert": "d4e5f6a7-89ab-23de-f456-456789abcdef",
"alertId": "d4e5f6a7-89ab-23de-f456-456789abcdef"
},
{
"_id": "37784871-28fe-11f1-b591-3fdcef396aba",
"projectId": "5f8b9c0d-e1a2-4b3c-8d5e-6f7a8b9c0d1e",
"status": "Sent",
"title": "Alert: High CPU Usage Detected",
"alert": "d4e5f6a7-89ab-23de-f456-456789abcdef",
"alertId": "d4e5f6a7-89ab-23de-f456-456789abcdef"
},
{
"_id": "37784872-28fe-11f1-b591-3fdcef396aba",
"projectId": "5f8b9c0d-e1a2-4b3c-8d5e-6f7a8b9c0d1e",
"status": "Sent",
"title": "Alert: High CPU Usage Detected",
"alert": "d4e5f6a7-89ab-23de-f456-456789abcdef",
"alertId": "d4e5f6a7-89ab-23de-f456-456789abcdef"
}
]
}/api/push-notification-log/:id/get-itemGet item by ID
This endpoint allows you to retrieve Push Notification Log by ID.
id- text
- ID of the Object
Optional Request Body
select- By default you will only retrieve ID of objects, to retrieve more fields you need to select them. For more information, please check how to select here.
Get Item Request
POST/api/push-notification-log/:id/get-itemContent-Type: application/json ApiKey: YOUR_API_KEY
{
"select": {
"projectId": true,
"status": true,
"title": true,
"alert": true,
"alertId": true
}
}Response
{
"_id": "37784870-28fe-11f1-b591-3fdcef396aba",
"projectId": "5f8b9c0d-e1a2-4b3c-8d5e-6f7a8b9c0d1e",
"status": "Sent",
"title": "Alert: High CPU Usage Detected",
"alert": "d4e5f6a7-89ab-23de-f456-456789abcdef",
"alertId": "d4e5f6a7-89ab-23de-f456-456789abcdef"
}/api/push-notification-log/countCount
This endpoint allows you to retrieve the count of all your Push Notification Log.
Optional Request Body
query- If you would like to filter on Push Notification Log. You can specify include a query here. For more information, please check out writing queries here.
Count Request
POST/api/push-notification-log/countContent-Type: application/json ApiKey: YOUR_API_KEY
{
"query": {
"status": "Sent"
}
}Response
{
"count": 107
}Permissions
Your API Token needs permissions to create, update, read or delete this resource. If you do not have permissions to make a request a 4xx status will be sent as response.
Read Permissions
Required to read Push Notification Log
Project OwnerProject AdminProject MemberRead Push LogRead All Project Resources
Create Permissions
Required to create Push Notification Log
Update Permissions
Required to update Push Notification Log
Delete Permissions
Required to delete Push Notification Log