1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
3 #ifndef COMMENTSTABLE_H
4 #define COMMENTSTABLE_H
6 #include "livestatus/table.hpp"
8 using namespace icinga;
16 class CommentsTable final : public Table
19 DECLARE_PTR_TYPEDEFS(CommentsTable);
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;
33 static Object::Ptr HostAccessor(const Value& row, const Column::ObjectAccessor& parentObjectAccessor);
34 static Object::Ptr ServiceAccessor(const Value& row, const Column::ObjectAccessor& parentObjectAccessor);
36 static Value AuthorAccessor(const Value& row);
37 static Value CommentAccessor(const Value& row);
38 static Value IdAccessor(const Value& row);
39 static Value EntryTimeAccessor(const Value& row);
40 static Value TypeAccessor(const Value& row);
41 static Value IsServiceAccessor(const Value& row);
42 static Value EntryTypeAccessor(const Value& row);
43 static Value ExpiresAccessor(const Value& row);
44 static Value ExpireTimeAccessor(const Value& row);
49 #endif /* COMMENTSTABLE_H */