Enum slog_syslog5424::TimeQuality [−][src]
The SD-ID "timeQuality" MAY be used by the originator to describe its notion of system time.
This SD-ID SHOULD be written if the originator is not properly synchronized with a reliable external time source or if it does not know whether its time zone information is correct. The main use of this structured data element is to provide some information on the level of trust it has in the TIMESTAMP described in Section 6.2.3. All parameters are OPTIONAL.
Notes:
- Documentation text copied from: RFC5424 Section 7.1
- No automatic bounds checking is currently done for these fields.
Variants
TzKnown(bool)
The "tzKnown" parameter indicates whether the originator knows its time zone. If it does, the value "1" MUST be used. If the time zone information is in doubt, the value "0" MUST be used. If the originator knows its time zone but decides to emit time in UTC, the value "1" MUST be used (because the time zone is known).
IsSynced(bool)
The "isSynced" parameter indicates whether the originator is synchronized to a reliable external time source, e.g., via NTP. If the originator is time synchronized, the value "1" MUST be used. If not, the value "0" MUST be used.
SyncAccuracy(u32)
The "syncAccuracy" parameter indicates how accurate the originator thinks its time synchronization is. It is an integer describing the maximum number of microseconds that its clock may be off between synchronization intervals.
If the value "0" is used for "isSynced", this parameter MUST NOT be specified. If the value "1" is used for "isSynced" but the "syncAccuracy" parameter is absent, a collector or relay can assume that the time information provided is accurate enough to be considered correct. The "syncAccuracy" parameter MUST be written only if the originator actually has knowledge of the reliability of the external time source. In most cases, it will gain this in-depth knowledge through operator configuration.
Trait Implementations
impl Display for TimeQuality
[src]
impl Display for TimeQuality
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Clone for TimeQuality
[src]
impl Clone for TimeQuality
fn clone(&self) -> TimeQuality
[src]
fn clone(&self) -> TimeQuality
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for TimeQuality
[src]
impl Debug for TimeQuality
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Copy for TimeQuality
[src]
impl Copy for TimeQuality
Auto Trait Implementations
impl Send for TimeQuality
impl Send for TimeQuality
impl Sync for TimeQuality
impl Sync for TimeQuality