Enum slog_syslog5424::TimeQuality[][src]

pub enum TimeQuality {
    TzKnown(bool),
    IsSynced(bool),
    SyncAccuracy(u32),
}

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

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).

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.

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]

Formats the value using the given formatter. Read more

impl Clone for TimeQuality
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for TimeQuality
[src]

Formats the value using the given formatter. Read more

impl Copy for TimeQuality
[src]

Auto Trait Implementations

impl Send for TimeQuality

impl Sync for TimeQuality