With `skipErrorChangeNotification: true`, a notification was treated as an "error reason change" whenever the incident had not started in the current run: currentIncident.start[0] !== currentTimeSecond That holds for the very first DOWN notification too when `gracePeriod` is set, because that one is sent `gracePeriod` minutes after the incident started. So with both options enabled no DOWN notification was sent at all, while the UP notification still was. Work out whether this is the first notification of the incident (sent immediately without a grace period, or when the grace period is met) and only skip the ones after it. Behaviour without `gracePeriod`, or without `skipErrorChangeNotification`, is unchanged. Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| .gitignore | ||
| .prettierrc.yaml | ||
| package-lock.json | ||
| package.json | ||
| tsconfig.json | ||
| wrangler.toml | ||