-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into ingest-node/grok/new-patterns-component-us…
…e-array
- Loading branch information
Showing
77 changed files
with
2,839 additions
and
1,077 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
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
24 changes: 24 additions & 0 deletions
24
...rity_solution/common/search_strategy/security_solution/hosts/kpi/authentications/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,24 @@ | ||
/* | ||
* 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 { IEsSearchResponse } from '../../../../../../../../../src/plugins/data/common'; | ||
import { Inspect, Maybe } from '../../../../common'; | ||
import { RequestBasicOptions } from '../../..'; | ||
import { HostsKpiHistogramData } from '../common'; | ||
|
||
export interface HostsKpiAuthenticationsHistogramCount { | ||
doc_count: number; | ||
} | ||
|
||
export type HostsKpiAuthenticationsRequestOptions = RequestBasicOptions; | ||
|
||
export interface HostsKpiAuthenticationsStrategyResponse extends IEsSearchResponse { | ||
authenticationsSuccess: Maybe<number>; | ||
authenticationsSuccessHistogram: Maybe<HostsKpiHistogramData[]>; | ||
authenticationsFailure: Maybe<number>; | ||
authenticationsFailureHistogram: Maybe<HostsKpiHistogramData[]>; | ||
inspect?: Maybe<Inspect>; | ||
} |
29 changes: 29 additions & 0 deletions
29
...gins/security_solution/common/search_strategy/security_solution/hosts/kpi/common/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,29 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
/* | ||
* 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 { Maybe } from '../../../../common'; | ||
|
||
export interface HostsKpiHistogramData { | ||
x?: Maybe<number>; | ||
y?: Maybe<number>; | ||
} | ||
|
||
export interface HostsKpiHistogram<T> { | ||
key_as_string: string; | ||
key: number; | ||
doc_count: number; | ||
count: T; | ||
} | ||
|
||
export interface HostsKpiGeneralHistogramCount { | ||
value: number; | ||
} |
18 changes: 18 additions & 0 deletions
18
...ugins/security_solution/common/search_strategy/security_solution/hosts/kpi/hosts/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,18 @@ | ||
/* | ||
* 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 { IEsSearchResponse } from '../../../../../../../../../src/plugins/data/common'; | ||
import { Inspect, Maybe } from '../../../../common'; | ||
import { RequestBasicOptions } from '../../..'; | ||
import { HostsKpiHistogramData } from '../common'; | ||
|
||
export type HostsKpiHostsRequestOptions = RequestBasicOptions; | ||
|
||
export interface HostsKpiHostsStrategyResponse extends IEsSearchResponse { | ||
hosts: Maybe<number>; | ||
hostsHistogram: Maybe<HostsKpiHistogramData[]>; | ||
inspect?: Maybe<Inspect>; | ||
} |
25 changes: 25 additions & 0 deletions
25
x-pack/plugins/security_solution/common/search_strategy/security_solution/hosts/kpi/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,25 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
export * from './authentications'; | ||
export * from './common'; | ||
export * from './hosts'; | ||
export * from './unique_ips'; | ||
|
||
import { HostsKpiAuthenticationsStrategyResponse } from './authentications'; | ||
import { HostsKpiHostsStrategyResponse } from './hosts'; | ||
import { HostsKpiUniqueIpsStrategyResponse } from './unique_ips'; | ||
|
||
export enum HostsKpiQueries { | ||
kpiAuthentications = 'hostsKpiAuthentications', | ||
kpiHosts = 'hostsKpiHosts', | ||
kpiUniqueIps = 'hostsKpiUniqueIps', | ||
} | ||
|
||
export type HostsKpiStrategyResponse = | ||
| Omit<HostsKpiAuthenticationsStrategyResponse, 'rawResponse'> | ||
| Omit<HostsKpiHostsStrategyResponse, 'rawResponse'> | ||
| Omit<HostsKpiUniqueIpsStrategyResponse, 'rawResponse'>; |
20 changes: 20 additions & 0 deletions
20
.../security_solution/common/search_strategy/security_solution/hosts/kpi/unique_ips/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,20 @@ | ||
/* | ||
* 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 { IEsSearchResponse } from '../../../../../../../../../src/plugins/data/common'; | ||
import { Inspect, Maybe } from '../../../../common'; | ||
import { RequestBasicOptions } from '../../..'; | ||
import { HostsKpiHistogramData } from '../common'; | ||
|
||
export type HostsKpiUniqueIpsRequestOptions = RequestBasicOptions; | ||
|
||
export interface HostsKpiUniqueIpsStrategyResponse extends IEsSearchResponse { | ||
uniqueSourceIps: Maybe<number>; | ||
uniqueSourceIpsHistogram: Maybe<HostsKpiHistogramData[]>; | ||
uniqueDestinationIps: Maybe<number>; | ||
uniqueDestinationIpsHistogram: Maybe<HostsKpiHistogramData[]>; | ||
inspect?: Maybe<Inspect>; | ||
} |
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.