fail2ban.server.ticket module
*****************************

class fail2ban.server.ticket.BanTicket(ip=None, time=None, matches=None, data={}, ticket=None)

   Bases: "FailTicket"

   Attributes:
      **banEpoch**
      **banned**
      **restored**
   -[ Methods ]-

   +------------+--------------------------------------------------------------------------------------------+
   | "adjustTi  | Adjust time of ticket and current attempts count considering given maxTime as estimation   |
   | me"(time,  | from rate by previous known interval (if it exceeds the findTime)                          |
   | maxTime)   |                                                                                            |
   +------------+--------------------------------------------------------------------------------------------+
   | "getRetry  | Returns failures / attempt count or artificial retry count increased for bad IPs           |
   | "()        |                                                                                            |
   +------------+--------------------------------------------------------------------------------------------+
   | "setRetry  | Set artificial retry count, normally equal failures / attempt, used in incremental         |
   | "(value)   | features (BanTimeIncr) to increase retry count for bad IPs                                 |
   +------------+--------------------------------------------------------------------------------------------+

   +---------------------+------------+
   | **getAttempt**      |            |
   +---------------------+------------+
   | **getBanCount**     |            |
   +---------------------+------------+
   | **getBanTime**      |            |
   +---------------------+------------+
   | **getData**         |            |
   +---------------------+------------+
   | **getEndOfBanTime** |            |
   +---------------------+------------+
   | **getID**           |            |
   +---------------------+------------+
   | **getIP**           |            |
   +---------------------+------------+
   | **getMatches**      |            |
   +---------------------+------------+
   | **getTime**         |            |
   +---------------------+------------+
   | **inc**             |            |
   +---------------------+------------+
   | **incrBanCount**    |            |
   +---------------------+------------+
   | **isTimedOut**      |            |
   +---------------------+------------+
   | **setAttempt**      |            |
   +---------------------+------------+
   | **setBanCount**     |            |
   +---------------------+------------+
   | **setBanTime**      |            |
   +---------------------+------------+
   | **setData**         |            |
   +---------------------+------------+
   | **setID**           |            |
   +---------------------+------------+
   | **setMatches**      |            |
   +---------------------+------------+
   | **setTime**         |            |
   +---------------------+------------+
   | **update**          |            |
   +---------------------+------------+
   | **wrap**            |            |
   +---------------------+------------+

   static wrap(o)

class fail2ban.server.ticket.FailTicket(ip=None, time=None, matches=None, data={}, ticket=None)

   Bases: "Ticket"

   Attributes:
      **banEpoch**
      **banned**
      **restored**
   -[ Methods ]-

   +------------+--------------------------------------------------------------------------------------------+
   | "adjustTi  | Adjust time of ticket and current attempts count considering given maxTime as estimation   |
   | me"(time,  | from rate by previous known interval (if it exceeds the findTime)                          |
   | maxTime)   |                                                                                            |
   +------------+--------------------------------------------------------------------------------------------+
   | "getRetry  | Returns failures / attempt count or artificial retry count increased for bad IPs           |
   | "()        |                                                                                            |
   +------------+--------------------------------------------------------------------------------------------+
   | "setRetry  | Set artificial retry count, normally equal failures / attempt, used in incremental         |
   | "(value)   | features (BanTimeIncr) to increase retry count for bad IPs                                 |
   +------------+--------------------------------------------------------------------------------------------+

   +---------------------+------------+
   | **getAttempt**      |            |
   +---------------------+------------+
   | **getBanCount**     |            |
   +---------------------+------------+
   | **getBanTime**      |            |
   +---------------------+------------+
   | **getData**         |            |
   +---------------------+------------+
   | **getEndOfBanTime** |            |
   +---------------------+------------+
   | **getID**           |            |
   +---------------------+------------+
   | **getIP**           |            |
   +---------------------+------------+
   | **getMatches**      |            |
   +---------------------+------------+
   | **getTime**         |            |
   +---------------------+------------+
   | **inc**             |            |
   +---------------------+------------+
   | **incrBanCount**    |            |
   +---------------------+------------+
   | **isTimedOut**      |            |
   +---------------------+------------+
   | **setAttempt**      |            |
   +---------------------+------------+
   | **setBanCount**     |            |
   +---------------------+------------+
   | **setBanTime**      |            |
   +---------------------+------------+
   | **setData**         |            |
   +---------------------+------------+
   | **setID**           |            |
   +---------------------+------------+
   | **setMatches**      |            |
   +---------------------+------------+
   | **setTime**         |            |
   +---------------------+------------+
   | **update**          |            |
   +---------------------+------------+
   | **wrap**            |            |
   +---------------------+------------+

   adjustTime(time, maxTime)

      Adjust time of ticket and current attempts count considering
      given maxTime as estimation from rate by previous known interval
      (if it exceeds the findTime)

   getRetry()

      Returns failures / attempt count or artificial retry count
      increased for bad IPs

   inc(matches=None, attempt=1, count=1)

   setRetry(value)

      Set artificial retry count, normally equal failures / attempt,
      used in incremental features (BanTimeIncr) to increase retry
      count for bad IPs

   static wrap(o)

class fail2ban.server.ticket.Ticket(ip=None, time=None, matches=None, data={}, ticket=None)

   Bases: "object"

   Attributes:
      **banEpoch**
      **banned**
      **restored**
   -[ Methods ]-

   +---------------------+------------+
   | **getAttempt**      |            |
   +---------------------+------------+
   | **getBanCount**     |            |
   +---------------------+------------+
   | **getBanTime**      |            |
   +---------------------+------------+
   | **getData**         |            |
   +---------------------+------------+
   | **getEndOfBanTime** |            |
   +---------------------+------------+
   | **getID**           |            |
   +---------------------+------------+
   | **getIP**           |            |
   +---------------------+------------+
   | **getMatches**      |            |
   +---------------------+------------+
   | **getTime**         |            |
   +---------------------+------------+
   | **incrBanCount**    |            |
   +---------------------+------------+
   | **isTimedOut**      |            |
   +---------------------+------------+
   | **setAttempt**      |            |
   +---------------------+------------+
   | **setBanCount**     |            |
   +---------------------+------------+
   | **setBanTime**      |            |
   +---------------------+------------+
   | **setData**         |            |
   +---------------------+------------+
   | **setID**           |            |
   +---------------------+------------+
   | **setMatches**      |            |
   +---------------------+------------+
   | **setTime**         |            |
   +---------------------+------------+
   | **update**          |            |
   +---------------------+------------+

   BANNED = 8

   MAX_TIME = 140737488355327

   RESTORED = 1

   property banEpoch

   property banned

   getAttempt()

   getBanCount()

   getBanTime(defaultBT=None)

   getData(key=None, default=None)

   getEndOfBanTime(defaultBT=None)

   getID()

   getIP()

   getMatches()

   getTime()

   incrBanCount(value=1)

   isTimedOut(time, defaultBT=None)

   property restored

   setAttempt(value)

   setBanCount(value, always=False)

   setBanTime(value)

   setData(*args, **argv)

   setID(value)

   setMatches(matches)

   setTime(value)

   update(ticket)
