mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 13:45:04 +02:00
parent
540e63c157
commit
d6d61354ed
@ -117,7 +117,7 @@ Value CommentsTable::EntryTimeAccessor(const Value& row)
|
|||||||
if (!comment)
|
if (!comment)
|
||||||
return Value();
|
return Value();
|
||||||
|
|
||||||
return comment->Get("entry_time");
|
return static_cast<int>(comment->Get("entry_time"));
|
||||||
}
|
}
|
||||||
|
|
||||||
Value CommentsTable::TypeAccessor(const Value& row)
|
Value CommentsTable::TypeAccessor(const Value& row)
|
||||||
@ -175,5 +175,5 @@ Value CommentsTable::ExpireTimeAccessor(const Value& row)
|
|||||||
if (!comment)
|
if (!comment)
|
||||||
return Value();
|
return Value();
|
||||||
|
|
||||||
return comment->Get("expire_time");
|
return static_cast<int>(comment->Get("expire_time"));
|
||||||
}
|
}
|
||||||
|
@ -105,7 +105,7 @@ Value DowntimesTable::EntryTimeAccessor(const Value& row)
|
|||||||
{
|
{
|
||||||
Dictionary::Ptr downtime = Service::GetDowntimeByID(row);
|
Dictionary::Ptr downtime = Service::GetDowntimeByID(row);
|
||||||
|
|
||||||
return downtime->Get("entry_time");
|
return static_cast<int>(downtime->Get("entry_time"));
|
||||||
}
|
}
|
||||||
|
|
||||||
Value DowntimesTable::TypeAccessor(const Value& row)
|
Value DowntimesTable::TypeAccessor(const Value& row)
|
||||||
@ -126,14 +126,14 @@ Value DowntimesTable::StartTimeAccessor(const Value& row)
|
|||||||
{
|
{
|
||||||
Dictionary::Ptr downtime = Service::GetDowntimeByID(row);
|
Dictionary::Ptr downtime = Service::GetDowntimeByID(row);
|
||||||
|
|
||||||
return downtime->Get("start_time");
|
return static_cast<int>(downtime->Get("start_time"));
|
||||||
}
|
}
|
||||||
|
|
||||||
Value DowntimesTable::EndTimeAccessor(const Value& row)
|
Value DowntimesTable::EndTimeAccessor(const Value& row)
|
||||||
{
|
{
|
||||||
Dictionary::Ptr downtime = Service::GetDowntimeByID(row);
|
Dictionary::Ptr downtime = Service::GetDowntimeByID(row);
|
||||||
|
|
||||||
return downtime->Get("end_time");
|
return static_cast<int>(downtime->Get("end_time"));
|
||||||
}
|
}
|
||||||
|
|
||||||
Value DowntimesTable::FixedAccessor(const Value& row)
|
Value DowntimesTable::FixedAccessor(const Value& row)
|
||||||
|
@ -509,7 +509,7 @@ Value HostsTable::NextCheckAccessor(const Value& row)
|
|||||||
if (!hc)
|
if (!hc)
|
||||||
return Value();
|
return Value();
|
||||||
|
|
||||||
return hc->GetNextCheck();
|
return static_cast<int>(hc->GetNextCheck());
|
||||||
}
|
}
|
||||||
|
|
||||||
Value HostsTable::LastHardStateChangeAccessor(const Value& row)
|
Value HostsTable::LastHardStateChangeAccessor(const Value& row)
|
||||||
@ -520,7 +520,7 @@ Value HostsTable::LastHardStateChangeAccessor(const Value& row)
|
|||||||
if (!hc)
|
if (!hc)
|
||||||
return Value();
|
return Value();
|
||||||
|
|
||||||
return hc->GetLastHardStateChange();
|
return static_cast<int>(hc->GetLastHardStateChange());
|
||||||
}
|
}
|
||||||
|
|
||||||
Value HostsTable::HasBeenCheckedAccessor(const Value& row)
|
Value HostsTable::HasBeenCheckedAccessor(const Value& row)
|
||||||
@ -617,12 +617,12 @@ Value HostsTable::LastCheckAccessor(const Value& row)
|
|||||||
if (!hc)
|
if (!hc)
|
||||||
return Value();
|
return Value();
|
||||||
|
|
||||||
return hc->GetLastCheck();
|
return static_cast<int>(hc->GetLastCheck());
|
||||||
}
|
}
|
||||||
|
|
||||||
Value HostsTable::LastStateChangeAccessor(const Value& row)
|
Value HostsTable::LastStateChangeAccessor(const Value& row)
|
||||||
{
|
{
|
||||||
return static_cast<Host::Ptr>(row)->GetLastStateChange();
|
return static_cast<int>(static_cast<Host::Ptr>(row)->GetLastStateChange());
|
||||||
}
|
}
|
||||||
|
|
||||||
Value HostsTable::LastTimeUpAccessor(const Value& row)
|
Value HostsTable::LastTimeUpAccessor(const Value& row)
|
||||||
|
@ -389,12 +389,12 @@ Value ServicesTable::LastTimeUnknownAccessor(const Value& row)
|
|||||||
|
|
||||||
Value ServicesTable::LastCheckAccessor(const Value& row)
|
Value ServicesTable::LastCheckAccessor(const Value& row)
|
||||||
{
|
{
|
||||||
return static_cast<Service::Ptr>(row)->GetLastCheck();
|
return static_cast<int>(static_cast<Service::Ptr>(row)->GetLastCheck());
|
||||||
}
|
}
|
||||||
|
|
||||||
Value ServicesTable::NextCheckAccessor(const Value& row)
|
Value ServicesTable::NextCheckAccessor(const Value& row)
|
||||||
{
|
{
|
||||||
return static_cast<Service::Ptr>(row)->GetNextCheck();
|
return static_cast<int>(static_cast<Service::Ptr>(row)->GetNextCheck());
|
||||||
}
|
}
|
||||||
|
|
||||||
Value ServicesTable::LastNotificationAccessor(const Value& row)
|
Value ServicesTable::LastNotificationAccessor(const Value& row)
|
||||||
@ -417,12 +417,12 @@ Value ServicesTable::CurrentNotificationNumberAccessor(const Value& row)
|
|||||||
|
|
||||||
Value ServicesTable::LastStateChangeAccessor(const Value& row)
|
Value ServicesTable::LastStateChangeAccessor(const Value& row)
|
||||||
{
|
{
|
||||||
return static_cast<Service::Ptr>(row)->GetLastStateChange();
|
return static_cast<int>(static_cast<Service::Ptr>(row)->GetLastStateChange());
|
||||||
}
|
}
|
||||||
|
|
||||||
Value ServicesTable::LastHardStateChangeAccessor(const Value& row)
|
Value ServicesTable::LastHardStateChangeAccessor(const Value& row)
|
||||||
{
|
{
|
||||||
return static_cast<Service::Ptr>(row)->GetLastHardStateChange();
|
return static_cast<int>(static_cast<Service::Ptr>(row)->GetLastHardStateChange());
|
||||||
}
|
}
|
||||||
|
|
||||||
Value ServicesTable::ScheduledDowntimeDepthAccessor(const Value& row)
|
Value ServicesTable::ScheduledDowntimeDepthAccessor(const Value& row)
|
||||||
|
@ -312,7 +312,7 @@ Value StatusTable::CheckExternalCommandsAccessor(const Value& row)
|
|||||||
|
|
||||||
Value StatusTable::ProgramStartAccessor(const Value& row)
|
Value StatusTable::ProgramStartAccessor(const Value& row)
|
||||||
{
|
{
|
||||||
return IcingaApplication::GetInstance()->GetStartTime();
|
return static_cast<int>(IcingaApplication::GetInstance()->GetStartTime());
|
||||||
}
|
}
|
||||||
|
|
||||||
Value StatusTable::LastCommandCheckAccessor(const Value& row)
|
Value StatusTable::LastCommandCheckAccessor(const Value& row)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user