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. |
||
---|---|---|
.. | ||
benchmark/broker | ||
btest | ||
builtin-plugins | ||
coverage | ||
external | ||
scripts | ||
.gitignore | ||
CMakeLists.txt | ||
Makefile | ||
README |
This directory contains suites for testing for Zeek's correct operation: btest/ An ever-growing set of small unit tests testing Zeek's functionality. external/ A framework for downloading additional test sets that run more complex Zeek configuration on larger traces files. Due to their size, these are not included directly. See the README for more information. scripts/ Helpers scripts used by some tests.