-
Notifications
You must be signed in to change notification settings - Fork 429
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(datadog): add source type name to datadog (#3342)
Co-authored-by: Kyle Johnson <[email protected]>
- Loading branch information
1 parent
f1ebdf5
commit a89410c
Showing
13 changed files
with
177 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
api/integrations/datadog/migrations/0004_add_use_custom_source.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 3.2.23 on 2024-01-29 15:54 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('datadog', '0003_datadogconfiguration_deleted_at'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='datadogconfiguration', | ||
name='use_custom_source', | ||
field=models.BooleanField(default=False), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import React, { useRef } from 'react' | ||
import ReactMarkdown from 'react-markdown' | ||
import Icon from 'components/Icon' | ||
import Utils from 'common/utils/utils' | ||
|
||
interface CheckboxProps { | ||
label: string | ||
onChange: (value: boolean) => void | ||
checked: boolean | ||
id?: string | ||
} | ||
|
||
const Checkbox: React.FC<CheckboxProps> = ({ | ||
checked, | ||
id, | ||
label, | ||
onChange, | ||
}) => { | ||
const idRef = useRef(id || Utils.GUID()) | ||
const handleChange = () => { | ||
onChange(!checked) | ||
} | ||
|
||
return ( | ||
<> | ||
<input id={idRef.current} type='checkbox' /> | ||
<label | ||
onClick={handleChange} | ||
className='mb-0' | ||
htmlFor={idRef.current} | ||
style={{ display: 'inline' }} | ||
> | ||
<span className='checkbox mr-2'> | ||
{checked && <Icon name='checkmark-square' />} | ||
</span> | ||
{label} | ||
</label> | ||
</> | ||
) | ||
} | ||
|
||
export default Checkbox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters