Source
xxxxxxxxxx
'comments' => 'Trigger status (expression) is recalculated every time Zabbix server receives new value, if this value is part of this expression. If time based functions are used in the expression, it is recalculated every 30 seconds by a zabbix timer process.',
<?php
/*
** Zabbix
** Copyright (C) 2001-2025 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.
**/
require_once dirname(__FILE__).'/../include/CLegacyWebTest.php';
require_once dirname(__FILE__).'/behaviors/CMessageBehavior.php';
use Facebook\WebDriver\WebDriverBy;
/**
* @backup triggers
*/
class testFormTrigger extends CLegacyWebTest {
/**
* Attach MessageBehavior to the test.
*
* @return array
*/
public function getBehaviors() {
return [
'class' => CMessageBehavior::class
];
}
/**
* The name of the Simple form test host created in the test data set.
*
* @var string
*/
protected $host = 'Simple form test host';
// Returns layout data
public static function layout() {
return [
[
['constructor' => 'open', 'host' => 'Simple form test host'
]
],
[
['constructor' => 'open_close', 'host' => 'Simple form test host'
]
],
[
['constructor' => 'open', 'severity' => 'Warning', 'host' => 'Simple form test host'
]
],
[
['constructor' => 'open_close', 'severity' => 'Disaster', 'host' => 'Simple form test host'
]
],
[
['severity' => 'Not classified', 'host' => 'Simple form test host'
]
],
[
['severity' => 'Information', 'host' => 'Simple form test host'
]
],
[
['severity' => 'Warning', 'host' => 'Simple form test host'
]
],
[
['severity' => 'Average', 'host' => 'Simple form test host'
]
],
[
['severity' => 'High', 'host' => 'Simple form test host'
]
],
[
['severity' => 'Disaster', 'host' => 'Simple form test host'
]
],