mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-30 09:35:38 -05:00
Add ability to create sessions from templates, and list existing sessions (#671)
* Initial changes to connect to existing sessions * Creating new profiler sessions * Some session template changes * Fixing errors * Cleaning up comments, string constants, and formatting * Removing commented code
This commit is contained in:
committed by
GitHub
parent
e8360ef68e
commit
4b9807f0cf
@@ -4559,9 +4559,9 @@ namespace Microsoft.SqlTools.ServiceLayer
|
||||
return Keys.GetString(Keys.EditDataIncorrectTable, tableName);
|
||||
}
|
||||
|
||||
public static string StopSessionFailed(String error)
|
||||
public static string CreateSessionFailed(String error)
|
||||
{
|
||||
return Keys.GetString(Keys.StopSessionFailed, error);
|
||||
return Keys.GetString(Keys.CreateSessionFailed, error);
|
||||
}
|
||||
|
||||
public static string StartSessionFailed(String error)
|
||||
@@ -4569,6 +4569,21 @@ namespace Microsoft.SqlTools.ServiceLayer
|
||||
return Keys.GetString(Keys.StartSessionFailed, error);
|
||||
}
|
||||
|
||||
public static string PauseSessionFailed(String error)
|
||||
{
|
||||
return Keys.GetString(Keys.PauseSessionFailed, error);
|
||||
}
|
||||
|
||||
public static string StopSessionFailed(String error)
|
||||
{
|
||||
return Keys.GetString(Keys.StopSessionFailed, error);
|
||||
}
|
||||
|
||||
public static string SessionAlreadyExists(String sessionName)
|
||||
{
|
||||
return Keys.GetString(Keys.SessionAlreadyExists, sessionName);
|
||||
}
|
||||
|
||||
public static string EnableAlertsTitle(String serverName)
|
||||
{
|
||||
return Keys.GetString(Keys.EnableAlertsTitle, serverName);
|
||||
@@ -6176,15 +6191,24 @@ namespace Microsoft.SqlTools.ServiceLayer
|
||||
public const string AzureSystemDbProfilingError = "AzureSystemDbProfilingError";
|
||||
|
||||
|
||||
public const string StopSessionFailed = "StopSessionFailed";
|
||||
public const string CreateSessionFailed = "CreateSessionFailed";
|
||||
|
||||
|
||||
public const string StartSessionFailed = "StartSessionFailed";
|
||||
|
||||
|
||||
public const string PauseSessionFailed = "PauseSessionFailed";
|
||||
|
||||
|
||||
public const string StopSessionFailed = "StopSessionFailed";
|
||||
|
||||
|
||||
public const string SessionNotFound = "SessionNotFound";
|
||||
|
||||
|
||||
public const string SessionAlreadyExists = "SessionAlreadyExists";
|
||||
|
||||
|
||||
public const string EnableAlertsTitle = "EnableAlertsTitle";
|
||||
|
||||
|
||||
|
||||
@@ -2027,20 +2027,35 @@
|
||||
<value>Cannot profile Azure system databases</value>
|
||||
<comment></comment>
|
||||
</data>
|
||||
<data name="StopSessionFailed" xml:space="preserve">
|
||||
<value>Failed to stop session: {0}</value>
|
||||
<data name="CreateSessionFailed" xml:space="preserve">
|
||||
<value>Failed to create session: {0}</value>
|
||||
<comment>.
|
||||
Parameters: 0 - error (String) </comment>
|
||||
</data>
|
||||
<data name="StartSessionFailed" xml:space="preserve">
|
||||
<value>Failed to start session: {0}</value>
|
||||
<comment>.
|
||||
Parameters: 0 - error (String) </comment>
|
||||
</data>
|
||||
<data name="PauseSessionFailed" xml:space="preserve">
|
||||
<value>Failed to pause session: {0}</value>
|
||||
<comment>.
|
||||
Parameters: 0 - error (String) </comment>
|
||||
</data>
|
||||
<data name="StopSessionFailed" xml:space="preserve">
|
||||
<value>Failed to stop session: {0}</value>
|
||||
<comment>.
|
||||
Parameters: 0 - error (String) </comment>
|
||||
</data>
|
||||
<data name="SessionNotFound" xml:space="preserve">
|
||||
<value>Cannot find requested XEvent session</value>
|
||||
<comment></comment>
|
||||
</data>
|
||||
<data name="SessionAlreadyExists" xml:space="preserve">
|
||||
<value>An XEvent session named {0} already exists</value>
|
||||
<comment>.
|
||||
Parameters: 0 - sessionName (String) </comment>
|
||||
</data>
|
||||
<data name="EnableAlertsTitle" xml:space="preserve">
|
||||
<value>Enable Alerts - {0}</value>
|
||||
<comment>.
|
||||
|
||||
@@ -888,9 +888,12 @@ InvalidPathError = Cannot access the specified path on the server: {0}
|
||||
# Profiler
|
||||
ProfilerConnectionNotFound = Connection not found
|
||||
AzureSystemDbProfilingError = Cannot profile Azure system databases
|
||||
StopSessionFailed(String error) = Failed to stop session: {0}
|
||||
CreateSessionFailed(String error) = Failed to create session: {0}
|
||||
StartSessionFailed(String error) = Failed to start session: {0}
|
||||
PauseSessionFailed(String error) = Failed to pause session: {0}
|
||||
StopSessionFailed(String error) = Failed to stop session: {0}
|
||||
SessionNotFound = Cannot find requested XEvent session
|
||||
SessionAlreadyExists(String sessionName) = An XEvent session named {0} already exists
|
||||
|
||||
#############################################################################
|
||||
# SQL Agent
|
||||
|
||||
@@ -3112,6 +3112,24 @@
|
||||
<note>.
|
||||
Parameters: 0 - error (String) </note>
|
||||
</trans-unit>
|
||||
<trans-unit id="CreateSessionFailed">
|
||||
<source>Failed to create session: {0}</source>
|
||||
<target state="new">Failed to create session: {0}</target>
|
||||
<note>.
|
||||
Parameters: 0 - error (String) </note>
|
||||
</trans-unit>
|
||||
<trans-unit id="PauseSessionFailed">
|
||||
<source>Failed to pause session: {0}</source>
|
||||
<target state="new">Failed to pause session: {0}</target>
|
||||
<note>.
|
||||
Parameters: 0 - error (String) </note>
|
||||
</trans-unit>
|
||||
<trans-unit id="SessionAlreadyExists">
|
||||
<source>An XEvent session named {0} already exists</source>
|
||||
<target state="new">An XEvent session named {0} already exists</target>
|
||||
<note>.
|
||||
Parameters: 0 - sessionName (String) </note>
|
||||
</trans-unit>
|
||||
</body>
|
||||
</file>
|
||||
</xliff>
|
||||
Reference in New Issue
Block a user