mirror of https://github.com/Icinga/icinga2.git
livestatus: Implement support for modified_attributes.
This commit is contained in:
parent
816d0e8d73
commit
aed9b578f1
|
@ -840,8 +840,12 @@ Value HostsTable::CheckOptionsAccessor(const Value& row)
|
||||||
|
|
||||||
Value HostsTable::ModifiedAttributesAccessor(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 Empty;
|
||||||
|
|
||||||
|
return hc->GetModifiedAttributes();
|
||||||
}
|
}
|
||||||
|
|
||||||
Value HostsTable::ModifiedAttributesListAccessor(const Value& row)
|
Value HostsTable::ModifiedAttributesListAccessor(const Value& row)
|
||||||
|
|
|
@ -618,8 +618,7 @@ Value ServicesTable::CheckFreshnessAccessor(const Value& row)
|
||||||
|
|
||||||
Value ServicesTable::ModifiedAttributesAccessor(const Value& row)
|
Value ServicesTable::ModifiedAttributesAccessor(const Value& row)
|
||||||
{
|
{
|
||||||
/* not supported */
|
return static_cast<Service::Ptr>(row)->GetModifiedAttributes();
|
||||||
return Empty;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Value ServicesTable::ModifiedAttributesListAccessor(const Value& row)
|
Value ServicesTable::ModifiedAttributesListAccessor(const Value& row)
|
||||||
|
|
Loading…
Reference in New Issue