2013-03-12 13:45:54 +01:00
|
|
|
/******************************************************************************
|
|
|
|
* Icinga 2 *
|
2014-03-19 01:02:29 +01:00
|
|
|
* Copyright (C) 2012-2014 Icinga Development Team (http://www.icinga.org) *
|
2013-03-12 13:45:54 +01:00
|
|
|
* *
|
|
|
|
* This program is free software; you can redistribute it and/or *
|
|
|
|
* modify it under the terms of the GNU General Public License *
|
|
|
|
* as published by the Free Software Foundation; either version 2 *
|
|
|
|
* of the License, or (at your option) any later version. *
|
|
|
|
* *
|
|
|
|
* This program is distributed in the hope that it will be useful, *
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
|
|
* GNU General Public License for more details. *
|
|
|
|
* *
|
|
|
|
* You should have received a copy of the GNU General Public License *
|
|
|
|
* along with this program; if not, write to the Free Software Foundation *
|
|
|
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
|
|
|
|
******************************************************************************/
|
|
|
|
|
2014-03-28 13:52:29 +01:00
|
|
|
%type DynamicObject {
|
2014-04-05 09:15:40 +02:00
|
|
|
%require "__name",
|
|
|
|
%attribute %string "__name",
|
2013-03-12 13:45:54 +01:00
|
|
|
|
2014-03-28 13:52:29 +01:00
|
|
|
%require "type",
|
|
|
|
%attribute %string "type",
|
2013-03-12 13:45:54 +01:00
|
|
|
|
2014-03-28 14:46:19 +01:00
|
|
|
%attribute %array "templates" {
|
|
|
|
%attribute %string "*"
|
|
|
|
},
|
|
|
|
|
2014-03-28 13:52:29 +01:00
|
|
|
%attribute %dictionary "methods",
|
2013-03-12 13:45:54 +01:00
|
|
|
|
2014-04-03 10:30:11 +02:00
|
|
|
%attribute %dictionary "vars" {
|
2014-03-28 13:52:29 +01:00
|
|
|
%attribute %string "*"
|
2013-09-12 10:03:48 +02:00
|
|
|
},
|
|
|
|
|
2014-03-28 13:52:29 +01:00
|
|
|
%attribute %array "domains" {
|
|
|
|
%attribute %string "*"
|
2013-06-26 10:18:26 +02:00
|
|
|
}
|
2013-03-12 13:45:54 +01:00
|
|
|
}
|
|
|
|
|
2014-03-28 13:52:29 +01:00
|
|
|
%type Logger {
|
|
|
|
%attribute %string "severity"
|
2013-03-12 13:45:54 +01:00
|
|
|
}
|
|
|
|
|
2014-03-28 13:52:29 +01:00
|
|
|
%type FileLogger %inherits Logger {
|
2013-06-06 11:26:30 +02:00
|
|
|
%require "path",
|
2014-03-28 13:52:29 +01:00
|
|
|
%attribute %string "path"
|
2013-06-06 11:26:30 +02:00
|
|
|
}
|
|
|
|
|
2014-03-28 13:52:29 +01:00
|
|
|
%type SyslogLogger %inherits Logger {
|
2013-06-06 11:26:30 +02:00
|
|
|
}
|
|
|
|
|
2014-03-28 13:52:29 +01:00
|
|
|
%type Script {
|
2013-03-12 13:45:54 +01:00
|
|
|
%require "language",
|
2014-03-28 13:52:29 +01:00
|
|
|
%attribute %string "language",
|
2013-03-12 13:45:54 +01:00
|
|
|
|
|
|
|
%require "code",
|
2014-03-28 13:52:29 +01:00
|
|
|
%attribute %string "code"
|
2013-03-12 13:45:54 +01:00
|
|
|
}
|