From edbb035160a2090dd0e3e8fbba55449609bbae9f Mon Sep 17 00:00:00 2001 From: Mats Klepsland Date: Fri, 13 Jan 2017 11:50:35 +0100 Subject: [PATCH] doc: add documentation for Lua SCFlowHasAlerts --- doc/userguide/output/lua-output.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/doc/userguide/output/lua-output.rst b/doc/userguide/output/lua-output.rst index d1193ae95d..158c0505b0 100644 --- a/doc/userguide/output/lua-output.rst +++ b/doc/userguide/output/lua-output.rst @@ -178,6 +178,22 @@ Example: end end +SCFlowHasAlerts +~~~~~~~~~~~~~~~ + +Returns true if flow has alerts. + +Example: + +:: + + function log(args) + has_alerts = SCFlowHasAlerts() + if has_alerts then + -- do something + end + end + SCFlowStats ~~~~~~~~~~~