]> granicus.if.org Git - icinga2/blob - lib/icinga/customvarobject.hpp
Correct current_concurrent_checks to actually running checks
[icinga2] / lib / icinga / customvarobject.hpp
1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
2
3 #ifndef CUSTOMVAROBJECT_H
4 #define CUSTOMVAROBJECT_H
5
6 #include "icinga/i2-icinga.hpp"
7 #include "icinga/customvarobject-ti.hpp"
8 #include "base/configobject.hpp"
9 #include "remote/messageorigin.hpp"
10
11 namespace icinga
12 {
13
14 /**
15  * An object with custom variable attribute.
16  *
17  * @ingroup icinga
18  */
19 class CustomVarObject : public ObjectImpl<CustomVarObject>
20 {
21 public:
22         DECLARE_OBJECT(CustomVarObject);
23
24         void ValidateVars(const Lazy<Dictionary::Ptr>& lvalue, const ValidationUtils& utils) final;
25 };
26
27 int FilterArrayToInt(const Array::Ptr& typeFilters, const std::map<String, int>& filterMap, int defaultValue);
28
29 }
30
31 #endif /* CUSTOMVAROBJECT_H */