forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Security Solution] Options to select index patterns (elastic#77192)
* init commit * lots of cleanup * starting on tests... problems * Ready for review * remove sample data * remove comment and fix type * pr changes * fix type * scratchy * sourcerer in timeline * sourcerer in timeline * wip * moving to redux * working on types * fixed * more adjustments, tests fixed * FF off * pr ready * renaming * url state working, hoc not working * url state working for timeline and default scope * script to build fields for beat doc * refactor sourcerer * refactor host to useSourcerer * refactor network to useSourcerer * refactor overview to useSourcerer * refactor detections to useSourcerer * wip for timelines to remove all useSource * wip indexes timeline * do component tests * start container tests * start container tests * update selection widget of index patterns + remove last useWithSource * add indexeNames in network kpi * fix type errors * fix type * missing merge master * get existing index from config file * fixing broken tests * add saving button to avoid to many queries to be aborted * reducer timeline tests broke * need to rewind * much better * timeline saving index names + clean up url state to only manage default * more test fixing * more test changes * remove all the useWithSource + deprecated the graphql until we delete it in a new PR + delete all the beat doc * default timeline to all index when creation + filter index patterns to make sure you do not add one who we do not know * fix types * test for stateful timeline render * we should not have change that * no chnages + snapshot * fix test + bugs from review * fix uncommon processes indexNames * review III * change design for main page of the sourcerer from design * bug fixes when opening old timeline + implementation of new design * fix circular deps * remove unused attributes for event details * design cleanup * fix api integration test with the new search strategy * add reset + manage accordion state * fix bugs + types issues * cleanup * update docs * review -> remove tooltip when popover is open * cypress fixing * fix for ml_condition_links and url_state cypress tests * add cy wait for race condition in pagination tests * missing plumbing kpi host Co-authored-by: Steph Milovic <[email protected]> Co-authored-by: Patryk Kopycinski <[email protected]>
- Loading branch information
1 parent
0d01637
commit 02ce3f3
Showing
272 changed files
with
41,559 additions
and
52,569 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
...ublic/kibana-plugin-plugins-data-public.indexpatternsservice.getidswithtitle.md
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,16 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [IndexPatternsService](./kibana-plugin-plugins-data-public.indexpatternsservice.md) > [getIdsWithTitle](./kibana-plugin-plugins-data-public.indexpatternsservice.getidswithtitle.md) | ||
|
||
## IndexPatternsService.getIdsWithTitle property | ||
|
||
Get list of index pattern ids with titles | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
getIdsWithTitle: (refresh?: boolean) => Promise<Array<{ | ||
id: string; | ||
title: string; | ||
}>>; | ||
``` |
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
81 changes: 81 additions & 0 deletions
81
x-pack/plugins/security_solution/common/search_strategy/index_fields/index.ts
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,81 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
import { IIndexPattern } from 'src/plugins/data/public'; | ||
import { | ||
IEsSearchRequest, | ||
IEsSearchResponse, | ||
IFieldSubType, | ||
} from '../../../../../../src/plugins/data/common'; | ||
import { DocValueFields, Maybe } from '../common'; | ||
|
||
export type BeatFieldsFactoryQueryType = 'beatFields'; | ||
|
||
interface FieldInfo { | ||
category: string; | ||
description?: string; | ||
example?: string | number; | ||
format?: string; | ||
name: string; | ||
type?: string; | ||
} | ||
|
||
export interface IndexField { | ||
/** Where the field belong */ | ||
category: string; | ||
/** Example of field's value */ | ||
example?: Maybe<string | number>; | ||
/** whether the field's belong to an alias index */ | ||
indexes: Array<Maybe<string>>; | ||
/** The name of the field */ | ||
name: string; | ||
/** The type of the field's values as recognized by Kibana */ | ||
type: string; | ||
/** Whether the field's values can be efficiently searched for */ | ||
searchable: boolean; | ||
/** Whether the field's values can be aggregated */ | ||
aggregatable: boolean; | ||
/** Description of the field */ | ||
description?: Maybe<string>; | ||
format?: Maybe<string>; | ||
/** the elastic type as mapped in the index */ | ||
esTypes?: string[]; | ||
subType?: IFieldSubType; | ||
readFromDocValues: boolean; | ||
} | ||
|
||
export type BeatFields = Record<string, FieldInfo>; | ||
|
||
export interface IndexFieldsStrategyRequest extends IEsSearchRequest { | ||
indices: string[]; | ||
onlyCheckIfIndicesExist: boolean; | ||
} | ||
|
||
export interface IndexFieldsStrategyResponse extends IEsSearchResponse { | ||
indexFields: IndexField[]; | ||
indicesExist: string[]; | ||
} | ||
|
||
export interface BrowserField { | ||
aggregatable: boolean; | ||
category: string; | ||
description: string | null; | ||
example: string | number | null; | ||
fields: Readonly<Record<string, Partial<BrowserField>>>; | ||
format: string; | ||
indexes: string[]; | ||
name: string; | ||
searchable: boolean; | ||
type: string; | ||
} | ||
|
||
export type BrowserFields = Readonly<Record<string, Partial<BrowserField>>>; | ||
|
||
export const EMPTY_BROWSER_FIELDS = {}; | ||
export const EMPTY_DOCVALUE_FIELD: DocValueFields[] = []; | ||
export const EMPTY_INDEX_PATTERN: IIndexPattern = { | ||
fields: [], | ||
title: '', | ||
}; |
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
Oops, something went wrong.