Notifications API
Estimate how often a rule would have fired
Changed onReplays the stored logs of the window (default: last 24 hours, at most 7 days) through the rule, including digest, quiet hours and cooldown. Nothing is sent.
post/rest/api/v1/projects/{projectId}/notificationRules/preview
Request
- Base URLhttps://api.metacopier.io
- AuthAPI key in header X-API-KEY
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
projectIdstring uuid required
Request body
Example request
{
"rule": {
"cooldown": {
"minutes": 15
},
"digest": {
"windowSeconds": 60
},
"kind": "RULE",
"name": "Errors to Teams",
"quietHours": {
"after": "SUMMARY",
"from": "22:00",
"timeZone": "Europe/Zurich",
"to": "07:00"
},
"targets": [
{
"recipient": "@john"
}
]
}
}Response
OK
Changes
- info
endpoint added
- info