mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
![]() ``` ## Checks if there is a Zeek analyzer of a given name. ## ## analyzer: the Zeek-side name of the analyzer to check for ## if_enabled: if true, only checks for analyzers that are enabled ## ## Returns the type of the analyzer if it exists, or ``Undef`` if it does not. public function has_analyzer(analyzer: string, if_enabled: bool = True): bool &cxxname="zeek::spicy::rt::has_analyzer"; ## Differentiates between the types of analyzers Zeek provides. public type AnalyzerType = enum { Protocol, File, Packet, }; ## Returns the type of a Zeek analyzer of a given name. ## ## analyzer: the Zeek-side name of the analyzer to check ## if_enabled: if true, only checks for analyzers that are enabled ## ## Returns the type of the analyzer if it exists, or ``Undef`` if it does not. public function analyzer_type(analyzer: string, if_enabled: bool = True): AnalyzerType &cxxname="zeek::spicy::rt::analyzer_type"; ``` Closes #4481. |
||
---|---|---|
.. | ||
base | ||
policy | ||
site | ||
spicy | ||
zeekygen | ||
CMakeLists.txt | ||
test-all-policy.zeek |