$M/ D d dl mZ d dlmZmZmZmZmZmZ d dl m Z d dlmZ d Z G d de Z G d de Z G d d ee Z G d de Z G d dee Z G d dee Z G d dee Z G d deee Z G d de Z G d de Z G d dee Z G d dee Z G d de Z G d d ee Z G d! d"ee Z G d# d$ee Z G d% d&ee Z G d' d(e Z G d) d*e Z G d+ d,ee Z! G d- d.ee Z" G d/ d0ee Z# G d1 d2e Z$ G d3 d4e Z% G d5 d6e Z& G d7 d8e Z'd9S ): )utils) AccumulatableMessageMessageListReceived ReportableShortenReprListMixin) WebShieldData)IPc e Zd ZdZdZeZdS )StrategyChangez8The message is generated when an IDS change is detected.STRATEGY_CHANGEN__name__ __module____qualname____doc__DEFAULT_METHODHIGHEST_PRIORITYPRIORITY M/opt/imunify360/venv/lib/python3.11/site-packages/im360/contracts/messages.pyr r s BB&NHHHr r c e Zd ZdZdZdS )SensorIncidentz+Single incident, e.g. user auth failed onceINCIDENTNr r r r r r r r r r s 55NNNr r c e Zd ZdZdZdS )SensorIncidentListzAggregated incident list INCIDENT_LISTNr r r r r r s ""$NNNr r c e Zd ZdZdZdS )UnreportableLocalIncidentListz=Aggregate local incident list that are not reported to serverLOCALINCIDENT_LISTNr r r r r" r" # s GG)NNNr r" c e Zd ZdZdZdS )LocalIncidentListz4Aggregate local incident list - where no ip providedr Nr r r r r% r% ) s >>$NNNr r% c 0 e Zd ZdZdZdZed ZdS )SensorAlertz9Alert incident, e.g. user auth failures reached thresholdALERT c N | }| j |d<