mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Security Solution][SIEM migrations] Add token disclaimer to the upload flyout (#208595)
## Summary Disclaimer added when uploading rules: _Note: To avoid exceeding your LLM API rate limit when translating a large number of queries, consider exporting rules in batches, for example by adding `| head` to the query above._ ### Screenshot 
This commit is contained in:
parent
9942790b87
commit
50c6cc0bbe
1 changed files with 16 additions and 3 deletions
|
@ -7,11 +7,19 @@
|
|||
|
||||
import React, { useCallback, useMemo, useRef, useState } from 'react';
|
||||
import { isPlainObject } from 'lodash';
|
||||
import { EuiFilePicker, EuiFlexGroup, EuiFlexItem, EuiFormRow, EuiText } from '@elastic/eui';
|
||||
import {
|
||||
EuiCode,
|
||||
EuiFilePicker,
|
||||
EuiFlexGroup,
|
||||
EuiFlexItem,
|
||||
EuiFormRow,
|
||||
EuiText,
|
||||
} from '@elastic/eui';
|
||||
import type {
|
||||
EuiFilePickerClass,
|
||||
EuiFilePickerProps,
|
||||
} from '@elastic/eui/src/components/form/file_picker/file_picker';
|
||||
import { FormattedMessage } from '@kbn/i18n-react';
|
||||
import type { CreateRuleMigrationRequestBody } from '../../../../../../../../../common/siem_migrations/model/api/rules/rule_migration.gen';
|
||||
import type { OriginalRule } from '../../../../../../../../../common/siem_migrations/model/rule_migration.gen';
|
||||
import type { CreateMigration } from '../../../../../../service/hooks/use_create_migration';
|
||||
|
@ -70,12 +78,17 @@ export const RulesFileUpload = React.memo<RulesFileUploadProps>(
|
|||
<EuiFlexItem>
|
||||
<EuiFormRow
|
||||
helpText={
|
||||
<EuiText color="danger" size="xs">
|
||||
{error}
|
||||
<EuiText color="subdued" size="xs">
|
||||
<FormattedMessage
|
||||
id="xpack.securitySolution.siemMigrations.rulesFileUpload.disclaimer"
|
||||
defaultMessage="Note: To avoid exceeding your LLM API rate limit when translating a large number of queries, consider exporting rules in batches, for example by adding {operator} to the query above"
|
||||
values={{ operator: <EuiCode>{'| head'}</EuiCode> }}
|
||||
/>
|
||||
</EuiText>
|
||||
}
|
||||
isInvalid={error != null}
|
||||
fullWidth
|
||||
error={error}
|
||||
>
|
||||
<EuiFilePicker
|
||||
id="rulesFilePicker"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue