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):
13class Entry(typing.NamedTuple):
14    id: int
15    timestamp: float
16    msg: Msg

Entry(id, timestamp, msg)

Entry(id: int, timestamp: float, msg: hat.syslog.common.Msg)

Create new instance of Entry(id, timestamp, msg)

id: int

Alias for field number 0

timestamp: float

Alias for field number 1

Alias for field number 2

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)

max_results: int | None

Alias for field number 0

last_id: int | None

Alias for field number 1

entry_timestamp_from: float | None

Alias for field number 2

entry_timestamp_to: float | None

Alias for field number 3

facility: hat.syslog.common.Facility | None

Alias for field number 4

severity: hat.syslog.common.Severity | None

Alias for field number 5

hostname: str | None

Alias for field number 6

app_name: str | None

Alias for field number 7

procid: str | None

Alias for field number 8

msgid: str | None

Alias for field number 9

msg: str | None

Alias for field number 10

Inherited Members
builtins.tuple
index
count