lsfilter: Add support for non-timestamp date formats
[ninja.git] / test / unit_test / reports / scheddownasup.tst
blob7095be83cf9d5284390bd62293903ddb9bb152a7
1 description = count scheduled downtime as uptime
2 logfile = scheddownasup.log
4 global_vars {
5         start_time = 1202684400
6         end_time = 1202770800
7         includesoftstates = 1
10 up_down_dtstart_dtend_up: normal {
11         report_type = hosts
12         objects {
13                 up_down_dtstart_dtend_up
14         }
15         scheduleddowntimeasuptime = 0
16         correct {
17                 TIME_UP_SCHEDULED = 0
18                 TIME_UP_UNSCHEDULED = 75600
19                 TIME_DOWN_SCHEDULED = 7200
20                 TIME_DOWN_UNSCHEDULED = 3600
21                 TOTAL_TIME_SCHEDULED = 7200
22                 TOTAL_TIME_UNSCHEDULED = 79200
23                 TOTAL_TIME_ACTIVE = 86400
24                 TOTAL_TIME_KNOWN = 86400
25         }
28 up_down_dtstart_dtend_up: scheduled downtime as uptime {
29         report_type = hosts
30         objects {
31                 up_down_dtstart_dtend_up
32         }
33         scheduleddowntimeasuptime = 1
34         correct {
35                 TIME_UP_SCHEDULED = 7200
36                 TIME_UP_UNSCHEDULED = 75600
37                 TIME_DOWN_SCHEDULED = 0
38                 TIME_DOWN_UNSCHEDULED = 3600
39                 TOTAL_TIME_SCHEDULED = 7200
40                 TOTAL_TIME_UNSCHEDULED = 79200
41                 TOTAL_TIME_ACTIVE = 86400
42                 TOTAL_TIME_KNOWN = 86400
43         }
46 down_dtstart_up_dtend: normal {
47         report_type = hosts
48         objects {
49                 down_dtstart_up_dtend
50         }
51         scheduleddowntimeasuptime = 0
52         correct {
53                 TIME_UP_SCHEDULED = 3600
54                 TIME_UP_UNSCHEDULED = 75600
55                 TIME_DOWN_SCHEDULED = 3600
56                 TIME_DOWN_UNSCHEDULED = 3600
57                 TOTAL_TIME_SCHEDULED = 7200
58                 TOTAL_TIME_UNSCHEDULED = 79200
59                 TOTAL_TIME_ACTIVE = 86400
60                 TOTAL_TIME_KNOWN = 86400
61         }
64 down_dtstart_up_dtend: scheduled downtime as uptime {
65         report_type = hosts
66         objects {
67                 down_dtstart_up_dtend
68         }
69         scheduleddowntimeasuptime = 1
70         correct {
71                 TIME_UP_SCHEDULED = 7200
72                 TIME_UP_UNSCHEDULED = 75600
73                 TIME_DOWN_SCHEDULED = 0
74                 TIME_DOWN_UNSCHEDULED = 3600
75                 TOTAL_TIME_SCHEDULED = 7200
76                 TOTAL_TIME_UNSCHEDULED = 79200
77                 TOTAL_TIME_ACTIVE = 86400
78                 TOTAL_TIME_KNOWN = 86400
79         }
82 up_dtstart_down_dtend: normal {
83         report_type = hosts
84         objects {
85                 up_dtstart_down_dtend
86         }
87         scheduleddowntimeasuptime = 0
88         correct {
89                 TIME_UP_UNSCHEDULED = 3600
90                 TIME_UP_SCHEDULED = 3600
91                 TIME_DOWN_SCHEDULED = 3600
92                 TIME_DOWN_UNSCHEDULED = 75600
93                 TOTAL_TIME_SCHEDULED = 7200
94                 TOTAL_TIME_UNSCHEDULED = 79200
95                 TOTAL_TIME_ACTIVE = 86400
96                 TOTAL_TIME_KNOWN = 86400
97         }
100 up_dtstart_down_dtend: scheduled downtime as uptime {
101         report_type = hosts
102         objects {
103                 up_dtstart_down_dtend
104         }
105         scheduleddowntimeasuptime = 1
106         correct {
107                 TIME_UP_SCHEDULED = 7200
108                 TIME_UP_UNSCHEDULED = 3600
109                 TIME_DOWN_SCHEDULED = 0
110                 TIME_DOWN_UNSCHEDULED = 75600
111                 TOTAL_TIME_SCHEDULED = 7200
112                 TOTAL_TIME_UNSCHEDULED = 79200
113                 TOTAL_TIME_ACTIVE = 86400
114                 TOTAL_TIME_KNOWN = 86400
115         }
118 up_dtstart_down_up_down_dtend: normal {
119         report_type = hosts
120         objects {
121                 up_dtstart_down_up_down_dtend
122         }
123         scheduleddowntimeasuptime = 0
124         correct {
125                 TIME_UP_UNSCHEDULED = 3600
126                 TIME_UP_SCHEDULED = 3600
127                 TIME_DOWN_SCHEDULED = 3600
128                 TIME_DOWN_UNSCHEDULED = 75600
129                 TOTAL_TIME_SCHEDULED = 7200
130                 TOTAL_TIME_UNSCHEDULED = 79200
131                 TOTAL_TIME_ACTIVE = 86400
132                 TOTAL_TIME_KNOWN = 86400
133         }
136 up_dtstart_down_up_down_dtend: scheduled downtime as uptime {
137         report_type = hosts
138         objects {
139                 up_dtstart_down_up_down_dtend
140         }
141         scheduleddowntimeasuptime = 1
142         correct {
143                 TIME_UP_UNSCHEDULED = 3600
144                 TIME_UP_SCHEDULED = 7200
145                 TIME_DOWN_SCHEDULED = 0
146                 TIME_DOWN_UNSCHEDULED = 75600
147         }
150 group avail: normal {
151         report_type = hosts
152         objects {
153                 up_down_dtstart_dtend_up
154                 up_dtstart_down_dtend
155         }
156         scheduleddowntimeasuptime = 0
157         correct {
158                 TIME_UP_UNSCHEDULED = 3600
159                 TIME_UP_SCHEDULED = 0
160                 TIME_DOWN_SCHEDULED = 7200
161                 TIME_DOWN_UNSCHEDULED = 75600
162         }
165 group avail: scheduled downtime as uptime {
166         report_type = hosts
167         objects {
168                 up_down_dtstart_dtend_up
169                 up_dtstart_down_dtend
170         }
171         scheduleddowntimeasuptime = 1
172         correct {
173                 TIME_UP_UNSCHEDULED = 3600
174                 TIME_UP_SCHEDULED = 7200
175                 TIME_DOWN_SCHEDULED = 0
176                 TIME_DOWN_UNSCHEDULED = 75600
177         }