1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
3 #ifndef SERVICEGROUPSTABLE_H
4 #define SERVICEGROUPSTABLE_H
6 #include "livestatus/table.hpp"
8 using namespace icinga;
16 class ServiceGroupsTable final : public Table
19 DECLARE_PTR_TYPEDEFS(ServiceGroupsTable);
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 NameAccessor(const Value& row);
33 static Value AliasAccessor(const Value& row);
34 static Value NotesAccessor(const Value& row);
35 static Value NotesUrlAccessor(const Value& row);
36 static Value ActionUrlAccessor(const Value& row);
37 static Value MembersAccessor(const Value& row);
38 static Value MembersWithStateAccessor(const Value& row);
39 static Value WorstServiceStateAccessor(const Value& row);
40 static Value NumServicesAccessor(const Value& row);
41 static Value NumServicesOkAccessor(const Value& row);
42 static Value NumServicesWarnAccessor(const Value& row);
43 static Value NumServicesCritAccessor(const Value& row);
44 static Value NumServicesUnknownAccessor(const Value& row);
45 static Value NumServicesPendingAccessor(const Value& row);
46 static Value NumServicesHardOkAccessor(const Value& row);
47 static Value NumServicesHardWarnAccessor(const Value& row);
48 static Value NumServicesHardCritAccessor(const Value& row);
49 static Value NumServicesHardUnknownAccessor(const Value& row);
54 #endif /* SERVICEGROUPSTABLE_H */