Skip to content

Commit

Permalink
fix(frontend): improve sumo logic config screen (#3488)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeepc committed Jan 2, 2024
1 parent f0208f8 commit b26109b
Showing 1 changed file with 21 additions and 3 deletions.
@@ -1,9 +1,12 @@
import {Col, Form, Input, Row} from 'antd';
import {Col, Form, Input, Row, Typography} from 'antd';
import {SupportedDataStoresToName} from 'constants/DataStore.constants';
import {SupportedDataStores} from 'types/DataStore.types';
import * as S from '../../DataStorePluginForm.styled';
import DataStoreDocsBanner from '../../../DataStoreDocsBanner/DataStoreDocsBanner';

const SUMO_LOGIC_ENDPOINTS_DOCS_URL =
'https://help.sumologic.com/docs/api/getting-started/#sumo-logic-endpoints-by-deployment-and-firewall-security';

const SumoLogic = () => {
const baseName = ['dataStore', SupportedDataStores.SumoLogic];

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

<Row gutter={[16, 16]}>
<Col span={12}>
<Form.Item label="URL" name={[...baseName, 'url']} rules={[{required: true, message: 'URL is required'}]}>
<Input placeholder="Enter a URL" />
<Form.Item
label="Sumo Logic API endpoint"
name={[...baseName, 'url']}
rules={[{required: true, message: 'URL is required'}]}
help={
<>
<Typography.Text type="secondary">
This URL will be different based on your location. Use the Sumo Logic API endpoint as documented on
</Typography.Text>
&nbsp;
<Typography.Link href={SUMO_LOGIC_ENDPOINTS_DOCS_URL} target="_blank">
&quot;Which endpoint should I use&quot;
</Typography.Link>
</>
}
>
<Input placeholder="https://api.sumologic.com/api/" />
</Form.Item>
</Col>
</Row>
Expand Down

0 comments on commit b26109b

Please sign in to comment.