1
- import { Col , Form , Input , Row } from 'antd' ;
1
+ import { Col , Form , Input , Row , Typography } from 'antd' ;
2
2
import { SupportedDataStoresToName } from 'constants/DataStore.constants' ;
3
3
import { SupportedDataStores } from 'types/DataStore.types' ;
4
4
import * as S from '../../DataStorePluginForm.styled' ;
5
5
import DataStoreDocsBanner from '../../../DataStoreDocsBanner/DataStoreDocsBanner' ;
6
6
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
+
7
10
const SumoLogic = ( ) => {
8
11
const baseName = [ 'dataStore' , SupportedDataStores . SumoLogic ] ;
9
12
@@ -14,8 +17,23 @@ const SumoLogic = () => {
14
17
15
18
< Row gutter = { [ 16 , 16 ] } >
16
19
< 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
+
30
+ < Typography . Link href = { SUMO_LOGIC_ENDPOINTS_DOCS_URL } target = "_blank" >
31
+ "Which endpoint should I use"
32
+ </ Typography . Link >
33
+ </ >
34
+ }
35
+ >
36
+ < Input placeholder = "https://api.sumologic.com/api/" />
19
37
</ Form . Item >
20
38
</ Col >
21
39
</ Row >
0 commit comments