get
Last
Up
Event
@Query(value = ""SELECT MAX(" + EVENT_DATE_KEY + ") FROM " + HOST_EVENTS_KEY +
_WHERE_ + TYPE_KEY + " IN ('ONLINE', 'RESTARTED') AND " +
HOST_IDENTIFIER_KEY + "=:" + HOST_IDENTIFIER_KEY",
nativeQuery = true
)
Query used to get the last ONLINE event
Return
Parameters
hostId
The identifier of the host