trigger_tune
Reduce an over-firing event trigger by increasing its check interval, cooldown, hold time or fire cap, or by pausing it. Keeps state and applies only to the trigger that fired.
Instructions
Make a trigger that fires more often than is useful quieter, keeping its state (no new baseline, no fire again for a condition that already holds): check less often, wait longer after a fire, require the condition to hold longer, allow fewer fires, or pause it. It is the one change allowed while handling a fire, and then only for the trigger that fired; the user is told what changed and why. Anything that makes a trigger more sensitive goes through the user and trigger_update.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| for | No | State triggers: how long the condition must hold before it fires, such as 5m. Only longer than now. | |
| pause | No | Pause the trigger until the user resumes it. | |
| reason | Yes | Why, in one sentence the user will read, such as: fired 14 times in the last hour on the same flapping health check. | |
| cooldown | No | After a fire, wait this long before the next one, such as 1h. Only longer than now. | |
| max_fires | No | Stop after this many fires in total. Only lower than now. | |
| trigger_id | Yes | The trigger id, as shown by trigger_list. | |
| check_every | No | Check no more often than this, such as 15m. Only longer than now. |