Skip to content

Commit

Permalink
feat(crons): Add "volume_anomaly_result" result to clock-tick (#339)
Browse files Browse the repository at this point in the history
This will be used to inform the clock tick tasks that the tick detected
an abnormal amount of check-in volume for the previous minute.

Part of getsentry/sentry#79328
  • Loading branch information
evanpurkhiser authored Oct 24, 2024
1 parent 8b3f584 commit 306a1d9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/monitors-clock-tick/1/example-volume-abnormal.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"ts": 1714072962,
"volume_anomaly_result": "abnormal"
}
4 changes: 4 additions & 0 deletions examples/monitors-clock-tick/1/example-volume-normal.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"ts": 1714072962,
"volume_anomaly_result": "normal"
}
5 changes: 5 additions & 0 deletions schemas/monitors-clock-tick.v1.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
"ts": {
"description": "The timestamp the clock ticked at.",
"type": "number"
},
"volume_anomaly_result": {
"description": "The result of the volume anomaly detection for the minute that has been ticked past.",
"type": "string",
"enum": ["normal", "abnormal"]
}
},
"required": ["ts"]
Expand Down

0 comments on commit 306a1d9

Please sign in to comment.