-
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.
- Loading branch information
1 parent
04da5a0
commit b2101f5
Showing
4 changed files
with
86 additions
and
95 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
75 changes: 75 additions & 0 deletions
75
x-pack/plugins/security_solution/common/search_strategy/security_solution/network/tls.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,75 @@ | ||
/* | ||
* 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 { CursorType, Inspect, Maybe, PageInfoPaginated, RequestOptionsPaginated } from '..'; | ||
|
||
export interface TlsBuckets { | ||
key: string; | ||
timestamp?: { | ||
value: number; | ||
value_as_string: string; | ||
}; | ||
subjects: { | ||
buckets: Readonly<Array<{ key: string; doc_count: number }>>; | ||
}; | ||
ja3: { | ||
buckets: Readonly<Array<{ key: string; doc_count: number }>>; | ||
}; | ||
issuers: { | ||
buckets: Readonly<Array<{ key: string; doc_count: number }>>; | ||
}; | ||
not_after: { | ||
buckets: Readonly<Array<{ key: number; key_as_string: string; doc_count: number }>>; | ||
}; | ||
} | ||
|
||
export interface TlsNode { | ||
_id?: Maybe<string>; | ||
timestamp?: Maybe<string>; | ||
notAfter?: Maybe<string[]>; | ||
subjects?: Maybe<string[]>; | ||
ja3?: Maybe<string[]>; | ||
issuers?: Maybe<string[]>; | ||
} | ||
|
||
export enum FlowTargetSourceDest { | ||
destination = 'destination', | ||
source = 'source', | ||
} | ||
|
||
export enum TlsFields { | ||
_id = '_id', | ||
} | ||
|
||
export interface TlsEdges { | ||
node: TlsNode; | ||
cursor: CursorType; | ||
} | ||
|
||
export enum Direction { | ||
asc = 'asc', | ||
desc = 'desc', | ||
} | ||
|
||
export interface TlsSortField { | ||
field: TlsFields; | ||
direction: Direction; | ||
} | ||
|
||
export interface NetworkTlsRequestOptions extends RequestOptionsPaginated { | ||
ip: string; | ||
flowTarget: FlowTargetSourceDest; | ||
sort: TlsSortField; | ||
defaultIndex: string[]; | ||
} | ||
|
||
export interface NetworkTlsStrategyResponse extends IEsSearchResponse { | ||
edges: TlsEdges[]; | ||
totalCount: number; | ||
pageInfo: PageInfoPaginated; | ||
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