// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // using Microsoft.SqlTools.Hosting.Protocol.Contracts; using Microsoft.SqlTools.ServiceLayer.Utility; using Microsoft.SqlTools.Utility; namespace Microsoft.SqlTools.ServiceLayer.Profiler.Contracts { /// /// Start Profiling request parameters /// public class StartProfilingParams : GeneralRequestDetails { public string OwnerUri { get; set; } public string TemplateName { get { return GetOptionValue("templateName"); } set { SetOptionValue("templateName", value); } } } public class StartProfilingResult { /// /// Session ID that was started /// public string SessionId { get; set; } public bool Succeeded { get; set; } public string ErrorMessage { get; set; } } /// /// Start Profile request type /// public class StartProfilingRequest { /// /// Request definition /// public static readonly RequestType Type = RequestType.Create("profiler/start"); } }