feat: add timeout in http monitor #24

This commit is contained in:
moonrailgun 2024-02-09 17:44:14 +08:00
parent 5c7839b43f
commit 8d096d55e1

View File

@ -1,4 +1,4 @@
import { Form, Input, Select, Switch, Typography } from 'antd'; import { Form, Input, InputNumber, Select, Switch, Typography } from 'antd';
import React from 'react'; import React from 'react';
import { MonitorOverviewComponent, MonitorProvider } from './types'; import { MonitorOverviewComponent, MonitorProvider } from './types';
import { trpc } from '../../../api/trpc'; import { trpc } from '../../../api/trpc';
@ -45,6 +45,9 @@ const MonitorHttp: React.FC = React.memo(() => {
<Select.Option value="options">OPTIONS</Select.Option> <Select.Option value="options">OPTIONS</Select.Option>
</Select> </Select>
</Form.Item> </Form.Item>
<Form.Item label="Request Timeout(s)" name={['payload', 'timeout']}>
<InputNumber defaultValue={30} />
</Form.Item>
<Form.Item <Form.Item
label="Ignore TLS/SSL error" label="Ignore TLS/SSL error"
valuePropName="checked" valuePropName="checked"