|
roo_monitoring
API Documentation for roo_monitoring
|
Identifies a specific file in the monitoring vault. More...
#include <vault.h>
Public Member Functions | |
| VaultFileRef () | |
| VaultFileRef (const VaultFileRef &other)=default | |
| VaultFileRef & | operator= (const VaultFileRef &other)=default |
| int64_t | timestamp () const |
| Returns the start timestamp for this vault file. | |
| int64_t | timestamp_at (int position) const |
| Returns the timestamp for the entry at the given position. | |
| Resolution | resolution () const |
| Returns the resolution for this vault file. | |
| int64_t | time_step () const |
| Returns the time step between entries. | |
| int64_t | time_steps (int count) const |
| Returns the time step delta for the specified count. | |
| int64_t | time_span () const |
| Returns the total time span covered by the file. | |
| VaultFileRef | parent () const |
| Returns the parent vault file at the next coarser resolution. | |
| VaultFileRef | child (int index) const |
| Returns the child vault file at the next finer resolution. | |
| VaultFileRef | prev () const |
| Returns the previous vault file at the same resolution. | |
| VaultFileRef | next () const |
| Returns the next vault file at the same resolution. | |
| VaultFileRef | advance (int n) const |
| Returns the vault file advanced by n spans. | |
| int | sibling_index () const |
| Returns the index of this file within its parent range. | |
Static Public Member Functions | |
| static VaultFileRef | Lookup (int64_t timestamp, Resolution resolution) |
| Creates a reference that encloses the timestamp at the given resolution. | |
|
inline |
|
default |
|
inline |
Returns the vault file advanced by n spans.
Definition at line 66 of file vault.h.
References time_span(), timestamp(), and VaultFileRef().
Referenced by child().
|
inline |
Returns the child vault file at the next finer resolution.
Definition at line 51 of file vault.h.
References advance(), and VaultFileRef().
|
static |
Creates a reference that encloses the timestamp at the given resolution.
Definition at line 414 of file monitoring.cpp.
References roo_monitoring::kRangeLength, resolution(), timestamp(), roo_monitoring::timestamp_ms_floor(), and VaultFileRef().
Referenced by roo_monitoring::Writer::flushSome(), and parent().
|
inline |
Returns the next vault file at the same resolution.
Definition at line 61 of file vault.h.
References time_span(), and VaultFileRef().
Referenced by roo_monitoring::VaultIterator::next().
|
default |
|
inline |
|
inline |
Returns the previous vault file at the same resolution.
Definition at line 56 of file vault.h.
References time_span(), and VaultFileRef().
|
inline |
Returns the resolution for this vault file.
Definition at line 32 of file vault.h.
Referenced by roo_monitoring::Writer::flushSome(), roo_monitoring::Collection::getVaultFilePath(), Lookup(), roo_monitoring::VaultFileReader::next(), roo_monitoring::operator<<(), and roo_monitoring::VaultFileReader::seekForward().
|
inline |
Returns the index of this file within its parent range.
Definition at line 71 of file vault.h.
References roo_monitoring::kRangeLength.
|
inline |
Returns the total time span covered by the file.
Definition at line 41 of file vault.h.
References roo_monitoring::kRangeLength.
Referenced by advance(), next(), roo_monitoring::operator<<(), and prev().
|
inline |
Returns the time step between entries.
Definition at line 35 of file vault.h.
Referenced by roo_monitoring::operator<<().
Returns the time step delta for the specified count.
Definition at line 37 of file vault.h.
References timestamp().
Referenced by timestamp_at().
|
inline |
Returns the start timestamp for this vault file.
Definition at line 26 of file vault.h.
Referenced by advance(), roo_monitoring::Collection::getVaultFilePath(), Lookup(), roo_monitoring::VaultIterator::next(), roo_monitoring::operator<<(), roo_monitoring::VaultFileReader::seekForward(), roo_monitoring::VaultFileReader::tell(), and time_steps().
Returns the timestamp for the entry at the given position.
Definition at line 28 of file vault.h.
References time_steps().
Referenced by roo_monitoring::VaultIterator::cursor().