Source code for zlogging.enum.Weird
# -*- coding: utf-8 -*-
# pylint: disable=line-too-long
"""Namespace: ``Weird``."""
from zlogging._compat import enum
[docs]@enum.unique
class Action(enum.IntFlag):
"""Enum: ``Weird::Action``.
Types of actions that may be taken when handling weird activity events.
See Also:
`base/frameworks/notice/weird.zeek <https://docs.zeek.org/en/stable/scripts/base/frameworks/notice/weird.zeek.html#type-Weird::Action>`__
"""
_ignore_ = 'Action _'
Action = vars()
#: A dummy action indicating the user does not care what
#: internal decision is made regarding a given type of weird.
ACTION_UNSPECIFIED = enum.auto()
#: No action is to be taken.
ACTION_IGNORE = enum.auto()
#: Log the weird event every time it occurs.
ACTION_LOG = enum.auto()
#: Log the weird event only once.
ACTION_LOG_ONCE = enum.auto()
#: Log the weird event once per connection.
ACTION_LOG_PER_CONN = enum.auto()
#: Log the weird event once per originator host.
ACTION_LOG_PER_ORIG = enum.auto()
#: Always generate a notice associated with the weird event.
ACTION_NOTICE = enum.auto()
#: Generate a notice associated with the weird event only once.
ACTION_NOTICE_ONCE = enum.auto()
#: Generate a notice for the weird event once per connection.
ACTION_NOTICE_PER_CONN = enum.auto()
#: Generate a notice for the weird event once per originator host.
ACTION_NOTICE_PER_ORIG = enum.auto()