Files
data-collection-terminal/management-panel/app/Filament/Pages/ManageTime.php
2024-09-04 10:25:47 +08:00

45 lines
1.4 KiB
PHP

<?php
namespace App\Filament\Pages;
use App\Settings\TimeSettings;
use Filament\Forms;
use Filament\Forms\Components\Repeater;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Form;
use Filament\Pages\SettingsPage;
class ManageTime extends SettingsPage
{
protected static ?string $navigationIcon = 'heroicon-o-cog-6-tooth';
protected static string $settings = TimeSettings::class;
protected static ?string $navigationLabel = '时间配置管理'; // 设置侧边栏的中文名称
protected static ?string $title = '时间配置管理'; // 自定义页面标题
public function form(Form $form): Form
{
return $form
->schema([
TextInput::make('global_time')
->label('默认拉取时间')
->required()
->suffix("s"),
TextInput::make('node_exporter_time')
->label('系统监控时间间隔')
->required()
->suffix("s"),
TextInput::make('opcua_time')
->label('配置读取时间')
->required()
->suffix("s"),
TextInput::make('prometheus_time')
->label('数据存储时间')
->required()
->suffix("h"),
]);
}
}