DynamoVisualProgramming.DynamoServices by Autodesk

<PackageReference Include="DynamoVisualProgramming.DynamoServices" Version="3.1.0-beta4184" />

 Analytics

public static class Analytics
Utility class to support analytics tracking.
public static bool DisableAnalytics { get; }

Disables all analytics collection for the lifetime of the process.

public static bool ReportingAnalytics { get; }

Returns if any analytics reporting is ON

public static Task<IDisposable> CreateTaskTimedEvent(Categories category, string variable, string description = "", int? value = default)

Creates a new task timed event with start state and tracks its start. After the task is completed, disposing the returned event will record the event completion.

public static IDisposable CreateTimedEvent(Categories category, string variable, string description = "", int? value = default)

Creates a new timed event with start state and tracks its start. Disposing the returned event will record the event completion.

public static void EndTaskCommandEvent(Task<IDisposable> taskEvent)

public static void TrackActivityStatus(string activityType)

Tracks user/machine idle and active states while using the application.

public static IDisposable TrackCommandEvent(string name, string description = "", int? value = default)

Creates a new command event of the given name. Start of the command is tracked. When the event is disposed, it's completion is tracked.

public static void TrackEvent(Actions action, Categories category, string description = "", int? value = default)

Tracks an arbitrary event.

public static void TrackException(Exception ex, bool isFatal)

Tracks an exception. If the exception is fatal, its recorded as crash.

public static IDisposable TrackFileOperationEvent(string filepath, Actions operation, int size, string description = "")

Creates a new file operation event and tracks the start of the event. Disposing the returned event will record its completion.

public static void TrackPreference(string name, string stringValue, int? metricValue)

Tracks user preference setting and its value.

public static void TrackScreenView(string viewName)

Tracks screen view, such as Node view, Geometry view, Custom workspace etc.

public static void TrackStartupTime(string productName, TimeSpan time, string description = "")

Tracks application startup time

public static Task<IDisposable> TrackTaskCommandEvent(string name, string description = "", int? value = default, IDictionary<string, object> parameters = null)

Creates a new command event task of the given name. Start of the command is tracked. When the task is completed and the event is disposed, it's completion is tracked.

public static Task<IDisposable> TrackTaskFileOperationEvent(string filepath, Actions operation, int size, string description = "")

Creates a new task file operation event and tracks the start of the event. After the task is completed, disposing the returned event will record its completion.

public static void TrackTimedEvent(Categories category, string variable, TimeSpan time, string description = "")

Tracks a timed event, when it has completed.