mirror of https://github.com/Icinga/icinga2.git
parent
1756859125
commit
2826ef7647
|
@ -18,6 +18,7 @@ log(value) | Writes a message to the log. Non-string values
|
||||||
log(severity, facility, value) | Writes a message to the log. `severity` can be one of `LogDebug`, `LogNotice`, `LogInformation`, `LogWarning`, and `LogCritical`. Non-string values are converted to a JSON string.
|
log(severity, facility, value) | Writes a message to the log. `severity` can be one of `LogDebug`, `LogNotice`, `LogInformation`, `LogWarning`, and `LogCritical`. Non-string values are converted to a JSON string.
|
||||||
typeof(value) | Returns the type object for a value.
|
typeof(value) | Returns the type object for a value.
|
||||||
get_time() | Returns the current UNIX timestamp.
|
get_time() | Returns the current UNIX timestamp.
|
||||||
|
parse_performance_data(pd) | Parses a performance data string and returns an array describing the values.
|
||||||
exit(integer) | Terminates the application.
|
exit(integer) | Terminates the application.
|
||||||
|
|
||||||
## <a id="object-accessor-functions"></a> Object Accessor Functions
|
## <a id="object-accessor-functions"></a> Object Accessor Functions
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
#include "base/convert.hpp"
|
#include "base/convert.hpp"
|
||||||
#include "base/exception.hpp"
|
#include "base/exception.hpp"
|
||||||
#include "base/logger.hpp"
|
#include "base/logger.hpp"
|
||||||
|
#include "base/function.hpp"
|
||||||
#include <boost/algorithm/string/case_conv.hpp>
|
#include <boost/algorithm/string/case_conv.hpp>
|
||||||
#include <boost/algorithm/string/split.hpp>
|
#include <boost/algorithm/string/split.hpp>
|
||||||
#include <boost/algorithm/string/classification.hpp>
|
#include <boost/algorithm/string/classification.hpp>
|
||||||
|
@ -28,6 +29,7 @@
|
||||||
using namespace icinga;
|
using namespace icinga;
|
||||||
|
|
||||||
REGISTER_TYPE(PerfdataValue);
|
REGISTER_TYPE(PerfdataValue);
|
||||||
|
REGISTER_SCRIPTFUNCTION(parse_performance_data, PerfdataValue::Parse);
|
||||||
|
|
||||||
PerfdataValue::PerfdataValue(void)
|
PerfdataValue::PerfdataValue(void)
|
||||||
{ }
|
{ }
|
||||||
|
|
Loading…
Reference in New Issue