ASM::severity

Description

Returns the overall severity of the violations found in the transaction (both request and response). This equals to the maximum severity of all these violations

Syntax

ASM::severity

ASM::severity

  • Returns one of the following values (or null string in case there was no violation until the time the command is invoked)
    • Emergency
    • Alert
    • Critical
    • Error
    • Warning
    • Notice
    • Informational

Examples

when ASM_REQUEST_DONE {
   if {[ASM::violation count] > 3 and [ASM::severity] eq "Error"} {
      ASM::raise VIOLATION_TOO_MANY_VIOLATIONS
   }
}