hat.syslog.server.common
Common data structures
1"""Common data structures""" 2 3from hat.syslog.common import * # NOQA 4 5import typing 6 7from hat.syslog.common import (Facility, 8 Msg, 9 Severity) 10 11 12class Entry(typing.NamedTuple): 13 id: int 14 timestamp: float 15 msg: Msg 16 17 18class Filter(typing.NamedTuple): 19 max_results: int | None = None 20 last_id: int | None = None 21 entry_timestamp_from: float | None = None 22 entry_timestamp_to: float | None = None 23 facility: Facility | None = None 24 severity: Severity | None = None 25 hostname: str | None = None 26 app_name: str | None = None 27 procid: str | None = None 28 msgid: str | None = None 29 msg: str | None = None
class
Entry(typing.NamedTuple):
Entry(id, timestamp, msg)
Entry(id: int, timestamp: float, msg: hat.syslog.common.Msg)
Create new instance of Entry(id, timestamp, msg)
Inherited Members
- builtins.tuple
- index
- count
class
Filter(typing.NamedTuple):
19class Filter(typing.NamedTuple): 20 max_results: int | None = None 21 last_id: int | None = None 22 entry_timestamp_from: float | None = None 23 entry_timestamp_to: float | None = None 24 facility: Facility | None = None 25 severity: Severity | None = None 26 hostname: str | None = None 27 app_name: str | None = None 28 procid: str | None = None 29 msgid: str | None = None 30 msg: str | None = None
Filter(max_results, last_id, entry_timestamp_from, entry_timestamp_to, facility, severity, hostname, app_name, procid, msgid, msg)
Filter( max_results: int | None = None, last_id: int | None = None, entry_timestamp_from: float | None = None, entry_timestamp_to: float | None = None, facility: hat.syslog.common.Facility | None = None, severity: hat.syslog.common.Severity | None = None, hostname: str | None = None, app_name: str | None = None, procid: str | None = None, msgid: str | None = None, msg: str | None = None)
Create new instance of Filter(max_results, last_id, entry_timestamp_from, entry_timestamp_to, facility, severity, hostname, app_name, procid, msgid, msg)
Inherited Members
- builtins.tuple
- index
- count