kernl API
    Preparing search index...

    Function toGuardEvent

    • Turn a runtime firewall event into a guard event. The runtime's event carries the applet's message; the guard event never does, so nothing the applet sent reaches the guard log. Reasons follow the guard's vocabulary: a rate is rate:<class>, the startup burst is flood:startup, anything else is runtime:<ruleId>.

      Parameters

      • event: FirewallEvent

        What the runtime firewall reported.

      • at: number

        When it happened.

      Returns GuardEvent

      The guard event.

      toGuardEvent({ windowId: 'w1', napplet: 'chat', opClass: 'state:write', decision: 'reject', action: 'block', ruleId: 'rate:opclass', reason: '…' }, 0).reason;
      // 'rate:storage:write'