cloudflare/pint

Public

mirrored from https://github.com/cloudflare/pintAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v0.74.7

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

docs/checks/alerts/for.md

54lines · modecode

1---
2layout: default
3parent: Checks
4grand_parent: Documentation
5---
6
7# alerts/for
8
9This check will warn if an alert rule uses invalid `for` or `keep_firing_for`
10value or if it passes default value that can be removed to simplify rule.
11
12## Configuration
13
14This check doesn't have any configuration options.
15
16## How to enable it
17
18This check is enabled by default.
19
20## How to disable it
21
22You can disable this check globally by adding this config block:
23
24```js
25checks {
26 disabled = ["alerts/for"]
27}
28```
29
30You can also disable it for all rules inside given file by adding
31a comment anywhere in that file. Example:
32
33```yaml
34# pint file/disable alerts/for
35```
36
37Or you can disable it per rule by adding a comment to it. Example:
38
39```yaml
40# pint disable alerts/for
41```
42
43## How to snooze it
44
45You can disable this check until given time by adding a comment to it. Example:
46
47```yaml
48# pint snooze $TIMESTAMP alerts/for
49```
50
51Where `$TIMESTAMP` is either use [RFC3339](https://www.rfc-editor.org/rfc/rfc3339)
52formatted or `YYYY-MM-DD`.
53Adding this comment will disable `alerts/for` *until* `$TIMESTAMP`, after that
54check will be re-enabled.
55