2021-04-29 01:19:00 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Invoice Ninja (https://invoiceninja.com).
|
|
|
|
*
|
|
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
|
|
*
|
2024-04-12 06:15:41 +02:00
|
|
|
* @copyright Copyright (c) 2024. Invoice Ninja LLC (https://invoiceninja.com)
|
2021-04-29 01:19:00 +02:00
|
|
|
*
|
2021-06-16 08:58:16 +02:00
|
|
|
* @license https://www.elastic.co/licensing/elastic-license
|
2021-04-29 01:19:00 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
namespace App\DataMapper\Analytics;
|
|
|
|
|
2021-05-07 00:44:27 +02:00
|
|
|
use Turbo124\Beacon\ExampleMetric\GenericMixedMetric;
|
|
|
|
|
|
|
|
class DbQuery extends GenericMixedMetric
|
2021-04-29 01:19:00 +02:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The type of Sample.
|
|
|
|
*
|
|
|
|
* Monotonically incrementing counter
|
|
|
|
*
|
|
|
|
* - counter
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
public $type = 'mixed_metric';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The name of the counter.
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
public $name = 'db.queries';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The datetime of the counter measurement.
|
|
|
|
*
|
|
|
|
* date("Y-m-d H:i:s")
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
public $datetime;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The Class failure name
|
|
|
|
* set to 0.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
2021-04-29 05:43:40 +02:00
|
|
|
public $string_metric5 = 'method';
|
2021-04-29 02:39:56 +02:00
|
|
|
|
2021-04-29 05:43:40 +02:00
|
|
|
public $string_metric6 = 'url';
|
2021-04-29 01:19:00 +02:00
|
|
|
|
2021-04-29 05:43:40 +02:00
|
|
|
public $string_metric7 = 'ip_address';
|
2022-06-21 11:57:17 +02:00
|
|
|
|
2024-05-19 11:42:20 +02:00
|
|
|
public $string_metric8 = 'client_version';
|
|
|
|
|
|
|
|
public $string_metric9 = 'platform';
|
|
|
|
|
2021-04-29 01:19:00 +02:00
|
|
|
/**
|
|
|
|
* The counter
|
|
|
|
* set to 1.
|
|
|
|
*
|
2023-07-25 12:04:04 +02:00
|
|
|
* @var int
|
2021-04-29 01:19:00 +02:00
|
|
|
*/
|
|
|
|
public $int_metric1 = 1;
|
|
|
|
|
|
|
|
public $double_metric2 = 1;
|
|
|
|
|
2022-06-21 11:57:17 +02:00
|
|
|
public function __construct($string_metric5, $string_metric6, $int_metric1, $double_metric2, $string_metric7)
|
|
|
|
{
|
2021-04-29 02:39:56 +02:00
|
|
|
$this->int_metric1 = $int_metric1;
|
2021-04-29 01:19:00 +02:00
|
|
|
$this->string_metric5 = $string_metric5;
|
2021-04-29 02:02:09 +02:00
|
|
|
$this->string_metric6 = $string_metric6;
|
2021-04-29 01:19:00 +02:00
|
|
|
$this->double_metric2 = $double_metric2;
|
2021-04-29 05:43:40 +02:00
|
|
|
$this->string_metric7 = $string_metric7;
|
2021-04-29 01:19:00 +02:00
|
|
|
}
|
|
|
|
}
|