EditEvent.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 WorkspacesEditor.Telemetry
11  {
12      [EventData]
13      [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties)]
14      public class EditEvent : EventBase, IEvent
15      {
16          public EditEvent()
17          {
18              EventName = "Workspaces_EditEvent";
19          }
20  
21          // True if operation successfully completely. False if failed.
22          public bool Successful { get; set; }
23  
24          // Change in number of screens in project
25          public int ScreenCountDelta { get; set; }
26  
27          // Number of apps added to project through editing
28          public int AppsAdded { get; set; }
29  
30          // Number of apps removed from project through editing
31          public int AppsRemoved { get; set; }
32  
33          // Number of apps with CLI args added
34          public int CliAdded { get; set; }
35  
36          // Number of apps with CLI args removed
37          public int CliRemoved { get; set; }
38  
39          // Number of apps with admin added
40          public int AdminAdded { get; set; }
41  
42          // Number of apps with admin removed
43          public int AdminRemoved { get; set; }
44  
45          // True if used window pixel sizing boxes to adjust size
46          public bool PixelAdjustmentsUsed { get; set; }
47  
48          public PartA_PrivTags PartA_PrivTags => PartA_PrivTags.ProductAndServiceUsage;
49      }
50  }