|
|
|
@ -5,24 +5,24 @@ import debounce from 'lodash/debounce'; |
|
|
|
|
import unionBy from 'lodash/unionBy'; |
|
|
|
|
|
|
|
|
|
import { |
|
|
|
|
BracesPlugin, |
|
|
|
|
LegacyForms, |
|
|
|
|
MultiSelect, |
|
|
|
|
QueryField, |
|
|
|
|
Select, |
|
|
|
|
SlatePrism, |
|
|
|
|
LegacyForms, |
|
|
|
|
TypeaheadInput, |
|
|
|
|
TypeaheadOutput, |
|
|
|
|
BracesPlugin, |
|
|
|
|
Select, |
|
|
|
|
MultiSelect, |
|
|
|
|
} from '@grafana/ui'; |
|
|
|
|
|
|
|
|
|
// Utils & Services
|
|
|
|
|
// dom also includes Element polyfills
|
|
|
|
|
import { Plugin, Node, Editor } from 'slate'; |
|
|
|
|
import { Editor, Node, Plugin } from 'slate'; |
|
|
|
|
import syntax from '../syntax'; |
|
|
|
|
|
|
|
|
|
// Types
|
|
|
|
|
import { ExploreQueryFieldProps, AbsoluteTimeRange, SelectableValue, AppEvents } from '@grafana/data'; |
|
|
|
|
import { CloudWatchQuery, CloudWatchLogsQuery } from '../types'; |
|
|
|
|
import { AbsoluteTimeRange, AppEvents, ExploreQueryFieldProps, SelectableValue } from '@grafana/data'; |
|
|
|
|
import { CloudWatchLogsQuery, CloudWatchQuery } from '../types'; |
|
|
|
|
import { CloudWatchDatasource } from '../datasource'; |
|
|
|
|
import { LanguageMap, languages as prismLanguages } from 'prismjs'; |
|
|
|
|
import { CloudWatchLanguageProvider } from '../language_provider'; |
|
|
|
@ -321,7 +321,6 @@ export class CloudWatchLogsQueryField extends React.PureComponent<CloudWatchLogs |
|
|
|
|
onChange={v => this.setSelectedRegion(v)} |
|
|
|
|
width={18} |
|
|
|
|
placeholder="Choose Region" |
|
|
|
|
menuPlacement="bottom" |
|
|
|
|
maxMenuHeight={500} |
|
|
|
|
/> |
|
|
|
|
} |
|
|
|
@ -349,7 +348,6 @@ export class CloudWatchLogsQueryField extends React.PureComponent<CloudWatchLogs |
|
|
|
|
isOptionDisabled={() => selectedLogGroups.length >= MAX_LOG_GROUPS} |
|
|
|
|
placeholder="Choose Log Groups" |
|
|
|
|
maxVisibleValues={4} |
|
|
|
|
menuPlacement="bottom" |
|
|
|
|
noOptionsMessage="No log groups available" |
|
|
|
|
isLoading={loadingLogGroups} |
|
|
|
|
onOpenMenu={this.onOpenLogGroupMenu} |
|
|
|
|