1 | <?php |
||
5 | class Check extends ApiResource |
||
6 | { |
||
7 | /** |
||
8 | * The id of the site. |
||
9 | * |
||
10 | * @var int |
||
11 | */ |
||
12 | public $id; |
||
13 | |||
14 | /** |
||
15 | * The type of the check. |
||
16 | * |
||
17 | * @var string |
||
18 | */ |
||
19 | public $type; |
||
20 | |||
21 | /** |
||
22 | * The human readable version of type. |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | public $label; |
||
27 | |||
28 | /** |
||
29 | * Is the check enabled? |
||
30 | * |
||
31 | * @var bool |
||
32 | */ |
||
33 | public $enabled; |
||
34 | |||
35 | /** |
||
36 | * Enable the check. |
||
37 | */ |
||
38 | public function enable() |
||
44 | |||
45 | /** |
||
46 | * Disable the check. |
||
47 | */ |
||
48 | public function disable() |
||
54 | |||
55 | /** |
||
56 | * Request a new run. |
||
57 | * |
||
58 | * @return void |
||
59 | */ |
||
60 | public function requestRun() |
||
64 | |||
65 | /** |
||
66 | * Snooze this check. |
||
67 | * |
||
68 | * @return void |
||
69 | */ |
||
70 | public function snooze(int $minutes) |
||
74 | |||
75 | /** |
||
76 | * Unsnooze this check. |
||
77 | * |
||
78 | * @return void |
||
79 | */ |
||
80 | public function unsnooze() |
||
84 | } |
||
85 |