]> granicus.if.org Git - icinga2/blob - lib/icinga/checkresult.ti
Remove the HostUnreachable state.
[icinga2] / lib / icinga / checkresult.ti
1 namespace icinga
2 {
3
4 code {{{
5 /**
6  * The state of a host.
7  *
8  * @ingroup icinga
9  */
10 enum HostState
11 {
12         HostUp = 0,
13         HostDown = 1
14 };
15
16 /**
17  * The state of a service.
18  *
19  * @ingroup icinga
20  */
21 enum ServiceState
22 {
23         StateOK = 0,
24         StateWarning = 1,
25         StateCritical = 2,
26         StateUnknown = 3
27 };
28
29 /**
30  * The state type of a host or service.
31  *
32  * @ingroup icinga
33  */
34 enum StateType
35 {
36         StateTypeSoft = 0,
37         StateTypeHard = 1
38 };
39 }}}
40
41 safe class CheckResult
42 {
43         [state] double schedule_start;
44         [state] double schedule_end;
45         [state] double execution_start;
46         [state] double execution_end;
47
48         [state] Value command;
49         [state] int exit_status;
50
51         [state, enum] ServiceState "state";
52         [state] String output;
53         [state] Value performance_data;
54
55         [state] bool active {
56                 default {{{ return true; }}}
57         };
58
59         [state] String check_source;
60
61         [state] Dictionary::Ptr vars_before;
62         [state] Dictionary::Ptr vars_after;
63 };
64
65 }