Source
'description' => _('fuzzytime() - Difference between item value (as timestamp) and Zabbix server timestamp is less than or equal to T seconds (1 - true, 0 - false)'),
<?php
/*
** Zabbix
** Copyright (C) 2001-2024 Zabbix SIA
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
**/
class CControllerPopupTriggerExpr extends CController {
private $metrics = [];
private $param1SecCount = [];
private $param1Period = [];
private $param1Sec = [];
private $param1Str = [];
private $param2SecCount = [];
private $param2SecMode = [];
private $param2SecCountMode = [];
private $param3SecVal = [];
private $param_find = [];
private $param3SecPercent = [];
private $paramForecast = [];
private $paramTimeleft = [];
private $allowedTypesAny = [];
private $allowedTypesNumeric = [];
private $allowedTypesStr = [];
private $allowedTypesLog = [];
private $allowedTypesInt = [];
private $functions = [];
private $operators = ['=', '<>', '>', '<', '>=', '<='];
private $period_optional = [];
private $period_seasons = [];
protected function init() {
$this->disableSIDvalidation();
$this->metrics = [
PARAM_TYPE_TIME => _('Time'),
PARAM_TYPE_COUNTS => _('Count')
];
/*
* C - caption
* T - type
* M - metrics
* A - asterisk
*/
$this->param1SecCount = [
'last' => [
'C' => _('Last of').' (T)',