File SolidSyslogTimeQualitySd.h¶
FileList > Core > Interface > SolidSyslogTimeQualitySd.h
#include "SolidSyslogExternC.h"#include "SolidSyslogTimeQuality.h"
Detailed Description¶
A StructuredData source for the RFC 5424 §7.1 "timeQuality" SD-ELEMENT (IANA SD-ID, so no enterprise-number suffix), emitted on every message the owning logger formats.
The getTimeQuality callback is queried once per message; the element always carries tzKnown and isSynced (emitted as 0/1), and adds syncAccuracy when the clock is synced and the callback supplies an accuracy.
Public Functions Documentation¶
SolidSyslogTimeQualitySd_Create¶
Create a "timeQuality" SD source (RFC 5424 §7.1), querying getTimeQuality once per message to build the element.
struct SolidSyslogStructuredData * SolidSyslogTimeQualitySd_Create (
SolidSyslogTimeQualityFunction getTimeQuality
)
Never returns NULL: a NULL callback or an exhausted pool reports via SolidSyslog_Error and returns the shared no-op NullSd, so callers need not null-check the result.
SolidSyslogTimeQualitySd_Destroy¶
Release the SD's pool slot.
The documentation for this class was generated from the following file Core/Interface/SolidSyslogTimeQualitySd.h