1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
6 #include "livestatus/table.hpp"
8 using namespace icinga;
16 class StatusTable final : public Table
19 DECLARE_PTR_TYPEDEFS(StatusTable);
23 static void AddColumns(Table *table, const String& prefix = String(),
24 const Column::ObjectAccessor& objectAccessor = Column::ObjectAccessor());
26 String GetName() const override;
27 String GetPrefix() const override;
30 void FetchRows(const AddRowFunction& addRowFn) override;
32 static Value ConnectionsAccessor(const Value& row);
33 static Value ConnectionsRateAccessor(const Value& row);
34 static Value ServiceChecksAccessor(const Value& row);
35 static Value ServiceChecksRateAccessor(const Value& row);
36 static Value HostChecksAccessor(const Value& row);
37 static Value HostChecksRateAccessor(const Value& row);
38 static Value ExternalCommandsAccessor(const Value& row);
39 static Value ExternalCommandsRateAccessor(const Value& row);
40 static Value NagiosPidAccessor(const Value& row);
41 static Value EnableNotificationsAccessor(const Value& row);
42 static Value ExecuteServiceChecksAccessor(const Value& row);
43 static Value ExecuteHostChecksAccessor(const Value& row);
44 static Value EnableEventHandlersAccessor(const Value& row);
45 static Value EnableFlapDetectionAccessor(const Value& row);
46 static Value ProcessPerformanceDataAccessor(const Value& row);
47 static Value ProgramStartAccessor(const Value& row);
48 static Value NumHostsAccessor(const Value& row);
49 static Value NumServicesAccessor(const Value& row);
50 static Value ProgramVersionAccessor(const Value& row);
51 static Value LivestatusVersionAccessor(const Value& row);
52 static Value LivestatusActiveConnectionsAccessor(const Value& row);
53 static Value CustomVariableNamesAccessor(const Value& row);
54 static Value CustomVariableValuesAccessor(const Value& row);
55 static Value CustomVariablesAccessor(const Value& row);
60 #endif /* STATUSTABLE_H */