2020-04-30 14:33:57 +02:00
|
|
|
<?php
|
2020-09-07 12:18:56 +02:00
|
|
|
/**
|
|
|
|
* Invoice Ninja (https://invoiceninja.com).
|
|
|
|
*
|
|
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
|
|
*
|
2023-01-28 23:21:40 +01:00
|
|
|
* @copyright Copyright (c) 2023. Invoice Ninja LLC (https://invoiceninja.com)
|
2020-09-07 12:18:56 +02:00
|
|
|
*
|
2021-06-16 08:58:16 +02:00
|
|
|
* @license https://www.elastic.co/licensing/elastic-license
|
2020-09-07 12:18:56 +02:00
|
|
|
*/
|
2020-04-30 14:33:57 +02:00
|
|
|
|
|
|
|
namespace App\DataMapper\Analytics;
|
|
|
|
|
2021-05-07 00:44:27 +02:00
|
|
|
use Turbo124\Beacon\ExampleMetric\GenericCounter;
|
|
|
|
|
|
|
|
class LoginFailure extends GenericCounter
|
2020-04-30 14:33:57 +02:00
|
|
|
{
|
2020-09-06 11:38:10 +02:00
|
|
|
/**
|
|
|
|
* The type of Sample.
|
|
|
|
*
|
|
|
|
* Monotonically incrementing counter
|
|
|
|
*
|
|
|
|
* - counter
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
public $type = 'counter';
|
2020-04-30 14:33:57 +02:00
|
|
|
|
2020-09-06 11:38:10 +02:00
|
|
|
/**
|
|
|
|
* The name of the counter.
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
public $name = 'login.failure';
|
2020-04-30 14:33:57 +02:00
|
|
|
|
2020-09-06 11:38:10 +02:00
|
|
|
/**
|
|
|
|
* The datetime of the counter measurement.
|
|
|
|
*
|
|
|
|
* date("Y-m-d H:i:s")
|
|
|
|
*
|
2023-04-26 08:55:49 +02:00
|
|
|
* @var \DateTime
|
2020-09-06 11:38:10 +02:00
|
|
|
*/
|
|
|
|
public $datetime;
|
2020-04-30 14:33:57 +02:00
|
|
|
|
2020-09-06 11:38:10 +02:00
|
|
|
/**
|
|
|
|
* The increment amount... should always be
|
|
|
|
* set to 0.
|
|
|
|
*
|
|
|
|
* @var int
|
|
|
|
*/
|
|
|
|
public $metric = 0;
|
|
|
|
}
|