mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-09 01:32:34 -05:00
Filter templates by supported engine type (#6133)
* Filter templates by supported engine type * fix the azure sql db name
This commit is contained in:
@@ -12,7 +12,7 @@ import * as nls from 'vs/nls';
|
||||
|
||||
import { ProfilerInput } from 'sql/workbench/parts/profiler/browser/profilerInput';
|
||||
import { ProfilerEditor } from 'sql/workbench/parts/profiler/browser/profilerEditor';
|
||||
import { PROFILER_VIEW_TEMPLATE_SETTINGS, PROFILER_SESSION_TEMPLATE_SETTINGS, IProfilerViewTemplate, IProfilerSessionTemplate } from 'sql/workbench/services/profiler/common/interfaces';
|
||||
import { PROFILER_VIEW_TEMPLATE_SETTINGS, PROFILER_SESSION_TEMPLATE_SETTINGS, IProfilerViewTemplate, IProfilerSessionTemplate, EngineType } from 'sql/workbench/services/profiler/common/interfaces';
|
||||
|
||||
const profilerDescriptor = new EditorDescriptor(
|
||||
ProfilerEditor,
|
||||
@@ -271,6 +271,7 @@ const profilerSessionTemplateSchema: IJSONSchema = {
|
||||
{
|
||||
name: 'Standard_OnPrem',
|
||||
defaultView: 'Standard View',
|
||||
engineTypes: [EngineType.Standalone],
|
||||
createStatement:
|
||||
`CREATE EVENT SESSION [{sessionName}] ON SERVER
|
||||
ADD EVENT sqlserver.attention(
|
||||
@@ -296,6 +297,7 @@ const profilerSessionTemplateSchema: IJSONSchema = {
|
||||
},
|
||||
{
|
||||
name: 'Standard_Azure',
|
||||
engineTypes: [EngineType.AzureSQLDB],
|
||||
defaultView: 'Standard View',
|
||||
createStatement:
|
||||
`CREATE EVENT SESSION [{sessionName}] ON DATABASE
|
||||
@@ -322,6 +324,7 @@ const profilerSessionTemplateSchema: IJSONSchema = {
|
||||
},
|
||||
{
|
||||
name: 'TSQL_OnPrem',
|
||||
engineTypes: [EngineType.Standalone],
|
||||
defaultView: 'TSQL View',
|
||||
createStatement:
|
||||
`CREATE EVENT SESSION [{sessionName}] ON SERVER
|
||||
|
||||
Reference in New Issue
Block a user