JSON
Namespace¶
Namespace: JSON
.
- class zlogging.enum.json.TimestampFormat(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Bases:
IntFlag
Enum:
JSON::TimestampFormat
.See also
- TS_EPOCH = 1
Timestamps will be formatted as UNIX epoch doubles. This is the format that Zeek typically writes out timestamps.
- TS_MILLIS = 2
Timestamps will be formatted as unsigned integers that represent the number of milliseconds since the UNIX epoch.
- TS_ISO8601 = 4
Timestamps will be formatted in the ISO8601 DateTime format. Subseconds are also included which isn’t actually part of the standard but most consumers that parse ISO8601 seem to be able to cope with that.
- static _generate_next_value_(name, start, count, last_values)
Generate the next value when not given.
name: the name of the member start: the initial start value or None count: the number of existing members last_values: the last value assigned or None