]> granicus.if.org Git - icinga2/blob - lib/icinga/downtime.ti
Replace boost::shared_ptr with boost::intrusive_ptr
[icinga2] / lib / icinga / downtime.ti
1 /******************************************************************************
2  * Icinga 2                                                                   *
3  * Copyright (C) 2012-2014 Icinga Development Team (http://www.icinga.org)    *
4  *                                                                            *
5  * This program is free software; you can redistribute it and/or              *
6  * modify it under the terms of the GNU General Public License                *
7  * as published by the Free Software Foundation; either version 2             *
8  * of the License, or (at your option) any later version.                     *
9  *                                                                            *
10  * This program is distributed in the hope that it will be useful,            *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of             *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *
13  * GNU General Public License for more details.                               *
14  *                                                                            *
15  * You should have received a copy of the GNU General Public License          *
16  * along with this program; if not, write to the Free Software Foundation     *
17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.             *
18  ******************************************************************************/
19
20 namespace icinga
21 {
22
23 class Downtime
24 {
25         [state] String id;
26         [state] double entry_time;
27         [state] String author;
28         [state] String comment;
29         [state] double start_time;
30         [state] double end_time;
31         [state] double trigger_time;
32         [state] bool fixed;
33         [state] double duration;
34         [state] int triggered_by_legacy_id;
35         [state] String triggered_by;
36         [state] String scheduled_by;
37         [state] Dictionary::Ptr triggers {
38                 default {{{ return new Dictionary(); }}}
39         };
40         [state] int legacy_id;
41         [state] bool was_cancelled;
42         [state] String config_owner;
43 };
44
45 }