livestatus: Implement support for modified_attributes.

This commit is contained in:
Gunnar Beutner 2013-10-16 14:30:13 +02:00
parent 816d0e8d73
commit aed9b578f1
2 changed files with 7 additions and 4 deletions

View File

@ -840,8 +840,12 @@ Value HostsTable::CheckOptionsAccessor(const Value& row)
Value HostsTable::ModifiedAttributesAccessor(const Value& row)
{
/* not supported */
Service::Ptr hc = static_cast<Host::Ptr>(row)->GetCheckService();
if (!hc)
return Empty;
return hc->GetModifiedAttributes();
}
Value HostsTable::ModifiedAttributesListAccessor(const Value& row)

View File

@ -618,8 +618,7 @@ Value ServicesTable::CheckFreshnessAccessor(const Value& row)
Value ServicesTable::ModifiedAttributesAccessor(const Value& row)
{
/* not supported */
return Empty;
return static_cast<Service::Ptr>(row)->GetModifiedAttributes();
}
Value ServicesTable::ModifiedAttributesListAccessor(const Value& row)