Skip to content
This repository was archived by the owner on Oct 13, 2025. It is now read-only.

Commit 623d301

Browse files
committed
Spicy doc updates for #4619.
1 parent 1e3a303 commit 623d301

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

devel/spicy/autogen/zeek-functions.spicy

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,28 @@ Instructs Zeek to flip the directionality of the current connection.
5959

6060
Returns the number of packets seen so far on the current side of the current connection.
6161

62+
.. _spicy_has_analyzer:
63+
64+
.. rubric:: ``function zeek::has_analyzer(analyzer: string, if_enabled: bool = True) : bool``
65+
66+
Checks if there is a Zeek analyzer of a given name.
67+
68+
analyzer: the Zeek-side name of the analyzer to check for
69+
if_enabled: if true, only checks for analyzers that are enabled
70+
71+
Returns the type of the analyzer if it exists, or ``Undef`` if it does not.
72+
73+
.. _spicy_analyzer_type:
74+
75+
.. rubric:: ``function zeek::analyzer_type(analyzer: string, if_enabled: bool = True) : AnalyzerType``
76+
77+
Returns the type of a Zeek analyzer of a given name.
78+
79+
analyzer: the Zeek-side name of the analyzer to check
80+
if_enabled: if true, only checks for analyzers that are enabled
81+
82+
Returns the type of the analyzer if it exists, or ``Undef`` if it does not.
83+
6284
.. _spicy_protocol_begin:
6385

6486
.. rubric:: ``function zeek::protocol_begin(analyzer: optional<string>, protocol: spicy::Protocol = spicy::Protocol::TCP)``

0 commit comments

Comments
 (0)