/ src / modules / launcher / PowerLauncher.Telemetry / Events / LauncherQueryEvent.cs
LauncherQueryEvent.cs
 1  // Copyright (c) Microsoft Corporation
 2  // The Microsoft Corporation licenses this file to you under the MIT license.
 3  // See the LICENSE file in the project root for more information.
 4  
 5  using System.Diagnostics.CodeAnalysis;
 6  using System.Diagnostics.Tracing;
 7  using Microsoft.PowerToys.Telemetry;
 8  using Microsoft.PowerToys.Telemetry.Events;
 9  
10  namespace Microsoft.PowerLauncher.Telemetry
11  {
12      /// <summary>
13      /// ETW Event for when the user initiates a query
14      /// </summary>
15      [EventData]
16      [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties)]
17      public class LauncherQueryEvent : EventBase, IEvent
18      {
19          public double QueryTimeMs { get; set; }
20  
21          public int QueryLength { get; set; }
22  
23          public int NumResults { get; set; }
24  
25          public PartA_PrivTags PartA_PrivTags => PartA_PrivTags.ProductAndServicePerformance;
26      }
27  }