blob: 4343286177c4470534e9204391699eaf3bc88427 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
{ lib }:
{
options = with lib; with types; {
type = mkOption {
type = enum [ "standard" "metric" ];
default = "standard";
description = "Type of check.";
};
standalone = mkOption {
type = bool;
default = false;
description = "Scheduled by the client instead of the server.";
};
command = mkOption {
type = str;
description = "Command to run.";
};
subscribers = mkOption {
type = listOf str;
default = [];
description = "Subscribers";
};
handlers = mkOption {
default = [];
description = "Handlers.";
type = listOf str;
};
interval = mkOption {
type = int;
default = 60;
description = "Check interval.";
};
timeout = mkOption {
type = int;
default = 30;
description = "Check timeout.";
};
ttl = mkOption {
type = int;
default = 120;
description = "Check TTL.";
};
source = mkOption {
type = str;
default = "";
description = "Custom source for JIT checks.";
};
occurrences = mkOption {
type = int;
default = 1;
description = "The number of occurrences before triggering an alert.";
};
subdue = mkOption {
type = attrs;
default = {};
description = "Subdue check during certain windows.";
};
vars = mkOption {
type = attrs;
default = {};
description = "Custom variables sent with the check.";
};
};
}
|