![]() |
Panoptes 1.0.0
Endpoint Detection and Response
|
#include <Windows.h>#include <memory>#include <string>#include <vector>#include <nlohmann/json.hpp>Go to the source code of this file.
Classes | |
| struct | DetectorEventRecord |
| One event as sent to the detector (a DetectorEvent message). More... | |
| class | DetectorSubscription |
| A registered subscriber. Unregisters when destroyed. More... | |
Functions | |
| std::string | RecordEvent (nlohmann::ordered_json &event, const FILETIME &time) |
| Gives event the next sequence number (appended as "Seq"), writes it to pano.log and queues it for every subscriber that wants it, in that order for every event, so Seq increases down the log. | |
| FILETIME | CurrentFileTime () |
| The current time as a FILETIME, for events that carry no timestamp of their own. | |
| void | StopDetectorStreams () |
| Wakes every subscriber's Wait with false and refuses new subscribers, so the SubscribeEvents calls return before the server shuts down. | |
| FILETIME CurrentFileTime | ( | ) |
The current time as a FILETIME, for events that carry no timestamp of their own.
Definition at line 124 of file detector_stream.cpp.
| std::string RecordEvent | ( | nlohmann::ordered_json & | event, |
| const FILETIME & | time ) |
Gives event the next sequence number (appended as "Seq"), writes it to pano.log and queues it for every subscriber that wants it, in that order for every event, so Seq increases down the log.
| time | When the event happened, at full resolution, for the detector |
Definition at line 113 of file detector_stream.cpp.
References WriteToLogFile().
| void StopDetectorStreams | ( | ) |
Wakes every subscriber's Wait with false and refuses new subscribers, so the SubscribeEvents calls return before the server shuts down.
Definition at line 131 of file detector_stream.cpp.
Referenced by StopServiceServer().