blob: 2fba249ef014bbd418c13f9194e9d937efa6f2da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
#ifndef STATUSTABLE_H
#define STATUSTABLE_H
#include "livestatus/table.hpp"
using namespace icinga;
namespace icinga
{
/**
* @ingroup livestatus
*/
class StatusTable final : public Table
{
public:
DECLARE_PTR_TYPEDEFS(StatusTable);
StatusTable();
static void AddColumns(Table *table, const String& prefix = String(),
const Column::ObjectAccessor& objectAccessor = Column::ObjectAccessor());
String GetName() const override;
String GetPrefix() const override;
protected:
void FetchRows(const AddRowFunction& addRowFn) override;
static Value ConnectionsAccessor(const Value& row);
static Value ConnectionsRateAccessor(const Value& row);
static Value ServiceChecksAccessor(const Value& row);
static Value ServiceChecksRateAccessor(const Value& row);
static Value HostChecksAccessor(const Value& row);
static Value HostChecksRateAccessor(const Value& row);
static Value ExternalCommandsAccessor(const Value& row);
static Value ExternalCommandsRateAccessor(const Value& row);
static Value NagiosPidAccessor(const Value& row);
static Value EnableNotificationsAccessor(const Value& row);
static Value ExecuteServiceChecksAccessor(const Value& row);
static Value ExecuteHostChecksAccessor(const Value& row);
static Value EnableEventHandlersAccessor(const Value& row);
static Value EnableFlapDetectionAccessor(const Value& row);
static Value ProcessPerformanceDataAccessor(const Value& row);
static Value ProgramStartAccessor(const Value& row);
static Value IntervalLengthAccessor(const Value& row);
static Value NumHostsAccessor(const Value& row);
static Value NumServicesAccessor(const Value& row);
static Value ProgramVersionAccessor(const Value& row);
static Value LivestatusVersionAccessor(const Value& row);
static Value LivestatusActiveConnectionsAccessor(const Value& row);
static Value CustomVariableNamesAccessor(const Value& row);
static Value CustomVariableValuesAccessor(const Value& row);
static Value CustomVariablesAccessor(const Value& row);
};
}
#endif /* STATUSTABLE_H */
|