mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-15 09:35:37 -05:00
Add session templates to profiler (#2115)
* Initial support for handling available sessions * Displaying sessions in drop down, send session name in start profiling request * More support for starting existing sessions * New session dialog and session templates in user files * Create profiler dialog and session templates * Preliminary session template changes * Saving some changes * Send session templates when creating sessions * Saving changes * UI Fixes for dialog * Formatting fixes * removing comments * Fixing PR comments * bumping toolsservice and dataprotocolclient versions * Fixing starting existing sessions
This commit is contained in:
committed by
GitHub
parent
2a650d4d74
commit
79269cdfd5
31
src/sql/sqlops.d.ts
vendored
31
src/sql/sqlops.d.ts
vendored
@@ -1680,14 +1680,17 @@ declare module 'sqlops' {
|
||||
}
|
||||
|
||||
export interface ProfilerProvider extends DataProvider {
|
||||
startSession(sessionId: string): Thenable<boolean>;
|
||||
createSession(sessionId: string, sessionName: string, template: ProfilerSessionTemplate): Thenable<boolean>;
|
||||
startSession(sessionId: string, sessionName: string): Thenable<boolean>;
|
||||
stopSession(sessionId: string): Thenable<boolean>;
|
||||
pauseSession(sessionId: string): Thenable<boolean>;
|
||||
getXEventSessions(sessionId: string): Thenable<string[]>;
|
||||
connectSession(sessionId: string): Thenable<boolean>;
|
||||
disconnectSession(sessionId: string): Thenable<boolean>;
|
||||
|
||||
registerOnSessionEventsAvailable(handler: (response: ProfilerSessionEvents) => any): void;
|
||||
registerOnSessionStopped(handler: (response: ProfilerSessionStoppedParams) => any): void;
|
||||
registerOnProfilerSessionCreated(handler: (response: ProfilerSessionCreatedParams) => any): void;
|
||||
}
|
||||
|
||||
export interface IProfilerTableRow {
|
||||
@@ -1724,6 +1727,26 @@ declare module 'sqlops' {
|
||||
values: {};
|
||||
}
|
||||
|
||||
/**
|
||||
* Profiler Session Template
|
||||
*/
|
||||
export interface ProfilerSessionTemplate {
|
||||
/**
|
||||
* Template name
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* Default view for template
|
||||
*/
|
||||
defaultView: string;
|
||||
|
||||
/**
|
||||
* TSQL for creating a session
|
||||
*/
|
||||
createStatement: string;
|
||||
}
|
||||
|
||||
export interface ProfilerSessionEvents {
|
||||
sessionId: string;
|
||||
|
||||
@@ -1739,6 +1762,12 @@ declare module 'sqlops' {
|
||||
sessionId: number;
|
||||
}
|
||||
|
||||
export interface ProfilerSessionCreatedParams {
|
||||
ownerUri: string;
|
||||
sessionName: string;
|
||||
templateName: string;
|
||||
}
|
||||
|
||||
// File browser interfaces -----------------------------------------------------------------------
|
||||
|
||||
export interface FileBrowserProvider extends DataProvider {
|
||||
|
||||
Reference in New Issue
Block a user