Skip to content

Commit b26109b

Browse files
authored
fix(frontend): improve sumo logic config screen (#3488)
1 parent f0208f8 commit b26109b

File tree

1 file changed

+21
-3
lines changed
  • web/src/components/Settings/DataStorePlugin/forms/SumoLogic

1 file changed

+21
-3
lines changed

web/src/components/Settings/DataStorePlugin/forms/SumoLogic/SumoLogic.tsx

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
import {Col, Form, Input, Row} from 'antd';
1+
import {Col, Form, Input, Row, Typography} from 'antd';
22
import {SupportedDataStoresToName} from 'constants/DataStore.constants';
33
import {SupportedDataStores} from 'types/DataStore.types';
44
import * as S from '../../DataStorePluginForm.styled';
55
import DataStoreDocsBanner from '../../../DataStoreDocsBanner/DataStoreDocsBanner';
66

7+
const SUMO_LOGIC_ENDPOINTS_DOCS_URL =
8+
'https://help.sumologic.com/docs/api/getting-started/#sumo-logic-endpoints-by-deployment-and-firewall-security';
9+
710
const SumoLogic = () => {
811
const baseName = ['dataStore', SupportedDataStores.SumoLogic];
912

@@ -14,8 +17,23 @@ const SumoLogic = () => {
1417

1518
<Row gutter={[16, 16]}>
1619
<Col span={12}>
17-
<Form.Item label="URL" name={[...baseName, 'url']} rules={[{required: true, message: 'URL is required'}]}>
18-
<Input placeholder="Enter a URL" />
20+
<Form.Item
21+
label="Sumo Logic API endpoint"
22+
name={[...baseName, 'url']}
23+
rules={[{required: true, message: 'URL is required'}]}
24+
help={
25+
<>
26+
<Typography.Text type="secondary">
27+
This URL will be different based on your location. Use the Sumo Logic API endpoint as documented on
28+
</Typography.Text>
29+
&nbsp;
30+
<Typography.Link href={SUMO_LOGIC_ENDPOINTS_DOCS_URL} target="_blank">
31+
&quot;Which endpoint should I use&quot;
32+
</Typography.Link>
33+
</>
34+
}
35+
>
36+
<Input placeholder="https://api.sumologic.com/api/" />
1937
</Form.Item>
2038
</Col>
2139
</Row>

0 commit comments

Comments
 (0)