Package 

Enum ApplicationInsights

  • All Implemented Interfaces:
    java.io.Serializable , java.lang.Comparable

    
    public enum ApplicationInsights
    
                        
    • Method Detail

      • setup

         static void setup(Context context, Application application)

        Configure Application InsightsNote: This should be called before start

        Parameters:
        application - the application context the application needed for auto collecting telemetry data
      • setup

         static void setup(Context context, Application application, String instrumentationKey)

        Configure Application InsightsNote: This should be called before start

        Parameters:
        context - the application context associated with Application Insights
        application - the application needed for auto collecting telemetry data
        instrumentationKey - the instrumentation key associated with the app
      • start

         static void start()

        Start ApplicationInsightsNote: This should be called after isConfigured

      • sendPendingData

         static void sendPendingData()

        Triggers persisting and if applicable sending of queued datanote: this will be called maxBatchIntervalMs aftertracking any telemetry so it is not necessary to call this in most cases.

      • enableAutoCollection

         static void enableAutoCollection()

        Enables all auto-collection features. Call this before start or when ApplicationInsights is already running to changeAutoCollection settings at runtime.Requires ApplicationInsights to be setup with an Application object

      • enableAutoPageViewTracking

         static void enableAutoPageViewTracking()

        Enable auto page view tracking before calling start orat runtime. This feature only works if ApplicationInsights has been setupwith an application.

      • disableAutoPageViewTracking

         static void disableAutoPageViewTracking()

        Disable auto page view tracking before calling start orat runtime. This feature only works if ApplicationInsights has been setupwith an application.

      • enableAutoSessionManagement

         static void enableAutoSessionManagement()

        Enable auto session management tracking before calling start orat runtime. This feature only works if ApplicationInsights has been setupwith an application.

      • disableAutoSessionManagement

         static void disableAutoSessionManagement()

        Disable auto session management tracking before calling start orat runtime. This feature only works if ApplicationInsights has been setupwith an application.

      • enableAutoAppearanceTracking

         static void enableAutoAppearanceTracking()

        Enable auto appearance management tracking before calling start orat runtime. This feature only works if ApplicationInsights has been setupwith an application.

      • disableAutoAppearanceTracking

         static void disableAutoAppearanceTracking()

        Disable auto appearance management tracking before calling start orat runtime. This feature only works if ApplicationInsights has been setupwith an application.

      • setDeveloperMode

         static void setDeveloperMode(boolean developerMode)

        Activates the developer mode which. It enables extensive logging as well as use differentsettings for batching. Batch Size in debug mode is 5 and sending interval is 3s.

        Parameters:
        developerMode - if true, developer mode will be activated
      • isDeveloperMode

         static boolean isDeveloperMode()

        Check if developerMode is activated

      • renewSession

         static void renewSession(String sessionId)

        Force Application Insights to create a new session with a custom sessionID.

        Parameters:
        sessionId - a custom session ID used of the session to create
      • setTelemetryDisabled

         static void setTelemetryDisabled(boolean disabled)

        Enable / disable tracking of telemetry data.

        Parameters:
        disabled - if set to true, the telemetry feature will be disabled
      • setCommonProperties

         static void setCommonProperties(Map<String, String> commonProperties)

        Sets properties which are common to all telemetry sent form this client.

        Parameters:
        commonProperties - a dictionary of properties to log with all telemetry.
      • setChannelType

         static void setChannelType(ChannelType channelType)

        Sets the channel type to be used for logging

        Parameters:
        channelType - The channel type to use