mirror of https://github.com/Icinga/icinga2.git
parent
8c02c3a75a
commit
45db7e08a2
|
@ -122,8 +122,12 @@ Value CommentsTable::EntryTimeAccessor(const Value& row)
|
|||
|
||||
Value CommentsTable::TypeAccessor(const Value& row)
|
||||
{
|
||||
/* TODO */
|
||||
return Value();
|
||||
Service::Ptr svc = Service::GetOwnerByCommentID(row);
|
||||
|
||||
if (!svc)
|
||||
return Value();
|
||||
|
||||
return (svc->IsHostCheck() ? 1 : 2);
|
||||
}
|
||||
|
||||
Value CommentsTable::IsServiceAccessor(const Value& row)
|
||||
|
@ -138,14 +142,14 @@ Value CommentsTable::IsServiceAccessor(const Value& row)
|
|||
|
||||
Value CommentsTable::PersistentAccessor(const Value& row)
|
||||
{
|
||||
/* TODO - always 1 */
|
||||
/* always 1 */
|
||||
return 1;
|
||||
}
|
||||
|
||||
Value CommentsTable::SourceAccessor(const Value& row)
|
||||
{
|
||||
/* TODO */
|
||||
return Value();
|
||||
/* always external */
|
||||
return 1;
|
||||
}
|
||||
|
||||
Value CommentsTable::EntryTypeAccessor(const Value& row)
|
||||
|
|
Loading…
Reference in New Issue