Alanren/profiler filter (#3760)

* profiler filter

* add test cases

* perf improvement with bulk insert

* update dependency version and address comments
This commit is contained in:
Alan Ren
2019-01-18 16:25:18 -08:00
committed by GitHub
parent 637dc9b9b2
commit 3e7a09c1e3
21 changed files with 926 additions and 22 deletions

View File

@@ -125,6 +125,11 @@ export interface IProfilerService {
* @param input input object that contains the necessary information which will be modified based on used input
*/
launchCreateSessionDialog(input: ProfilerInput): Thenable<void>;
/**
* Launches the dialog for collecting the filter object
* @param input input object
*/
launchFilterSessionDialog(input: ProfilerInput): void;
}
export interface IProfilerSettings {
@@ -146,4 +151,29 @@ export interface IProfilerSessionTemplate {
name: string;
defaultView: string;
createStatement: string;
}
export interface ProfilerFilter {
clauses: ProfilerFilterClause[];
}
export interface ProfilerFilterClause {
field: string;
operator: ProfilerFilterClauseOperator;
value: string;
}
export enum ProfilerFilterClauseOperator {
Equals,
NotEquals,
LessThan,
LessThanOrEquals,
GreaterThan,
GreaterThanOrEquals,
IsNull,
IsNotNull,
Contains,
NotContains,
StartsWith,
NotStartsWith
}