mirror of
https://github.com/openappsec/openappsec.git
synced 2025-06-28 16:41:02 +03:00
21 lines
440 B
C++
21 lines
440 B
C++
#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;
|
|
}
|
|
}
|
|
}
|