Source
'id:hk_history' => '31d', // This should be changed to another custom value after DEV-1673 is fixed.
<?php
/*
** 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 Affero General Public License as published by the Free Software Foundation, version 3.
**
** 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 Affero General Public License for more details.
**
** You should have received a copy of the GNU Affero General Public License along with this program.
** If not, see <https://www.gnu.org/licenses/>.
**/
require_once dirname(__FILE__).'/../common/testFormAdministrationGeneral.php';
/**
* @backup config
*/
class testFormAdministrationHousekeeping extends testFormAdministrationGeneral {
public $config_link = 'zabbix.php?action=housekeeping.edit';
public $form_selector = 'id:housekeeping-form';
public $default_values = [
// Events and alerts.
'id:hk_events_mode' => true,
'id:hk_events_trigger' => '365d',
'id:hk_events_internal' => '1d',
'id:hk_events_discovery' => '1d',
'id:hk_events_autoreg' => '1d',
// Services.
'id:hk_services_mode' => true,
'id:hk_services' => '365d',
// User sessions.
'id:hk_sessions_mode' => true,
'id:hk_sessions' => '365d',
// History.
'id:hk_history_mode' => true,
'id:hk_history_global' => false,
'id:hk_history' => '31d',
// Trends.
'id:hk_trends_mode' => true,
'id:hk_trends_global' => false,
'id:hk_trends' => '365d'
];
public $db_default_values = [
'hk_events_mode' => 1,
'hk_events_trigger' => '365d',
'hk_events_internal' => '1d',
'hk_events_discovery' => '1d',
'hk_events_autoreg' => '1d',
'hk_services_mode' => 1,
'hk_services' => '365d',
'hk_sessions_mode' => 1,
'hk_sessions' => '365d',
'hk_history_mode' => 1,
'hk_history_global' => 0,
'hk_history' => '31d',
'hk_trends_mode' => 1,