Last Values
If the backend has been unavailable for a period - either due to an intentional shutdown or a malfunction (for example, a network failure) - you can request the latest available values from the NGA manager.
The data is transferred to the write handler after the write thread is started.
// request last written data from the NGA Manager (only non-direct read mode)
if (!directReadMode)
{
logDebug("Backend retrieving max timestamp of EVENTS...");
google::protobuf::Timestamp max_ts; // you must get the highest event timestamp in the database to get only new data
logDebug("Backend requested last values of EVENTS and ALERTS...");
configChannelHandler.requestValuesNewerThan(max_ts);
configChannelHandler.requestCurrentAlerts();
}
