#include <HistoryRepository.h>
Repository for persisting and querying HistoryEntry records in the database.
◆ HistoryRepository()
Constructor.
- Parameters
-
| databaseConnectionConfigurations | database connection configuration |
◆ allOf() [1/4]
| std::vector< HistoryEntry > lintel::HistoryRepository::allOf |
( |
| ) |
const |
- Returns
- all history entries
◆ allOf() [2/4]
| std::vector< HistoryEntry > lintel::HistoryRepository::allOf |
( |
const std::string & |
label | ) |
const |
- Parameters
-
- Returns
- history entries with the given label
◆ allOf() [3/4]
| std::vector< HistoryEntry > lintel::HistoryRepository::allOf |
( |
const std::string & |
processName, |
|
|
const std::string & |
serviceName |
|
) |
| const |
- Parameters
-
| processName | filter by process name |
| serviceName | filter by service name |
- Returns
- history entries matching process and service
◆ allOf() [4/4]
| std::vector< HistoryEntry > lintel::HistoryRepository::allOf |
( |
const std::string & |
processName, |
|
|
const std::string & |
serviceName, |
|
|
const std::string & |
label |
|
) |
| const |
- Parameters
-
| processName | filter by process name |
| serviceName | filter by service name |
| label | filter by label |
- Returns
- history entries matching all filters
◆ allOfProcess()
| std::vector< HistoryEntry > lintel::HistoryRepository::allOfProcess |
( |
const std::string & |
processName | ) |
const |
- Parameters
-
| processName | filter by process name |
- Returns
- history entries for the given process
◆ allOfService()
| std::vector< HistoryEntry > lintel::HistoryRepository::allOfService |
( |
const std::string & |
serviceName | ) |
const |
- Parameters
-
| serviceName | filter by service name |
- Returns
- history entries for the given service
◆ cleanAllOlderThan()
| void lintel::HistoryRepository::cleanAllOlderThan |
( |
std::chrono::sys_time< std::chrono::microseconds > |
timestamp | ) |
const |
Delete all entries older than the given timestamp.
- Parameters
-
| timestamp | cutoff timestamp |
◆ insertOf()
Insert multiple history entries.
- Parameters
-
The documentation for this class was generated from the following file: