Enum AppInsightHelper
- java.lang.Object
-
- java.lang.Enum<AppInsightHelper>
-
- com.microsoft.azure.maven.telemetry.AppInsightHelper
-
- All Implemented Interfaces:
TelemetryProxy,Serializable,Comparable<AppInsightHelper>
public enum AppInsightHelper extends Enum<AppInsightHelper> implements TelemetryProxy
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description privateAppInsightHelper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDefaultProperty(String key, String value)voiddisable()voidenable()Map<String,String>getDefaultProperties()StringgetInstallationId()StringgetSessionId()voidinitTelemetryHttpClient()protected Map<String,String>mergeProperties(Map<String,String> customProperties, boolean overrideDefaultProperties)voidtrackEvent(String eventName)voidtrackEvent(String eventName, Map<String,String> customProperties)voidtrackEvent(String eventName, Map<String,String> customProperties, boolean overrideDefaultProperties)static AppInsightHelpervalueOf(String name)Returns the enum constant of this type with the specified name.static AppInsightHelper[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final AppInsightHelper INSTANCE
-
-
Method Detail
-
values
public static AppInsightHelper[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AppInsightHelper c : AppInsightHelper.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AppInsightHelper valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
enable
public void enable()
- Specified by:
enablein interfaceTelemetryProxy
-
disable
public void disable()
- Specified by:
disablein interfaceTelemetryProxy
-
trackEvent
public void trackEvent(String eventName)
- Specified by:
trackEventin interfaceTelemetryProxy
-
trackEvent
public void trackEvent(String eventName, Map<String,String> customProperties)
- Specified by:
trackEventin interfaceTelemetryProxy
-
trackEvent
public void trackEvent(String eventName, Map<String,String> customProperties, boolean overrideDefaultProperties)
- Specified by:
trackEventin interfaceTelemetryProxy
-
initTelemetryHttpClient
public void initTelemetryHttpClient()
-
getSessionId
public String getSessionId()
-
getInstallationId
public String getInstallationId()
-
addDefaultProperty
public void addDefaultProperty(String key, String value)
- Specified by:
addDefaultPropertyin interfaceTelemetryProxy
-
mergeProperties
protected Map<String,String> mergeProperties(Map<String,String> customProperties, boolean overrideDefaultProperties)
-
getDefaultProperties
public Map<String,String> getDefaultProperties()
- Specified by:
getDefaultPropertiesin interfaceTelemetryProxy
-
-