Typing Annotations¶
Zeek Data Types¶
-
zlogging.typing.zeek_addr= ~addr¶ Zeek
addrdata type.- Type
type
-
zlogging.typing.zeek_bool= ~bool¶ Zeek
booldata type.- Type
type
-
zlogging.typing.zeek_count= ~count¶ Zeek
countdata type.- Type
type
-
zlogging.typing.zeek_double= ~double¶ Zeek
doubledata type.- Type
type
-
zlogging.typing.zeek_enum= ~enum¶ Zeek
enumdata type.- Type
type
-
zlogging.typing.zeek_interval= ~interval¶ Zeek
intervaldata type.- Type
type
-
zlogging.typing.zeek_int= ~int¶ Zeek
intdata type.- Type
type
-
zlogging.typing.zeek_port= ~port¶ Zeek
portdata type.- Type
type
-
zlogging.typing.zeek_record= ~record¶ Zeek
recorddata type.Note
As a variadic data type, it supports the typing proxy as
TypedDict, introduced in PEP 589:class MyLog(zeek_record): field_one: zeek_int field_two: zeek_set[zeek_port]
which is the same at runtime as following:
RecordType(field_one=IntType, field_two=SetType(element_type=PortType))
See also
See
expand_typing()for more information about the processing of typing proxy.
-
zlogging.typing.zeek_set= ~set¶ Zeek
setdata type.Note
As a generic data type, the class supports the typing proxy as introduced PEP 484:
class MyLog(zeek_record): field_one: zeek_set[zeek_str]
which is the same at runtime as following:
class MyLog(zeek_record): field_one = SetType(element_type=StringType())
-
zlogging.typing.zeek_string= ~string¶ Zeek
stringdata type.- Type
type
-
zlogging.typing.zeek_subnet= ~subnet¶ Zeek
subnetdata type.- Type
type
-
zlogging.typing.zeek_time= ~time¶ Zeek
timedata type.- Type
type
-
zlogging.typing.zeek_vector= ~vector¶ Zeek
vectordata type.Note
As a generic data type, the class supports the typing proxy as introduced PEP 484:
class MyLog(zeek_record): field_one: zeek_vector[zeek_str]
which is the same at runtime as following:
class MyLog(zeek_record): field_one = VectorType(element_type=StringType())
Bro Data Types¶
Use of bro is deprecated. Please use zeek instead.
-
zlogging.typing.bro_addr= ~bro_addr¶ Bro
addrdata type.- Type
type
-
zlogging.typing.bro_bool= ~bro_bool¶ Bro
booldata type.- Type
type
-
zlogging.typing.bro_count= ~bro_count¶ Bro
countdata type.- Type
type
-
zlogging.typing.bro_double= ~bro_double¶ Bro
doubledata type.- Type
type
-
zlogging.typing.bro_enum= ~bro_enum¶ Bro
enumdata type.- Type
type
-
zlogging.typing.bro_interval= ~bro_interval¶ Bro
intervaldata type.- Type
type
-
zlogging.typing.bro_int= ~bro_int¶ Bro
intdata type.- Type
type
-
zlogging.typing.bro_port= ~bro_port¶ Bro
portdata type.- Type
type
-
zlogging.typing.bro_record= ~bro_record¶ Bro
recorddata type.See also
See
zeek_recordfor more information.
-
zlogging.typing.bro_string= ~bro_string¶ Bro
stringdata type.- Type
type
-
zlogging.typing.bro_subnet= ~bro_subnet¶ Bro
subnetdata type.- Type
type
-
zlogging.typing.bro_time= ~bro_time¶ Bro
timedata type.- Type
type
-
zlogging.typing.bro_vector= ~bro_vector¶ Bro
vectordata type.See also
See
zeek_vectorfor more information.