mirror of
https://github.com/openappsec/openappsec.git
synced 2026-01-02 06:34:42 +03:00
My 11th 2023 update
This commit is contained in:
20
components/security_apps/ips/ips_metric.cc
Normal file
20
components/security_apps/ips/ips_metric.cc
Normal file
@@ -0,0 +1,20 @@
|
||||
#include "ips_metric.h"
|
||||
|
||||
void
|
||||
IPSSignatureSubTypes::IPSMetric::upon(const MatchEvent &event)
|
||||
{
|
||||
switch (event.getAction()) {
|
||||
case SignatureAction::PREVENT: {
|
||||
prevented.report(1);
|
||||
break;
|
||||
}
|
||||
case SignatureAction::DETECT: {
|
||||
detected.report(1);
|
||||
break;
|
||||
}
|
||||
case SignatureAction::IGNORE: {
|
||||
ignored.report(1);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user