DynamoVisualProgramming.DynamoServices by Autodesk

<PackageReference Include="DynamoVisualProgramming.DynamoServices" Version="2.18.0-beta4670" />

 Analytics

public static class Analytics
Utility class to support analytics tracking.
public static bool DisableAnalytics

Disables all analytics collection (Google, ADP, etc.) for the lifetime of the process. To ensure that no analytics get through, please set set this flag to false before the DynamoModel is constructed.

public static bool ReportingAnalytics { get; }

Returns if any analytics reporting is ON (Google, ADP etc.)

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 LogPiiInfo(string tag, string data)

Logs usage data

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 void TrackTimedEvent(Categories category, string variable, TimeSpan time, string description = "")

Tracks a timed event, when it has completed.