Class ExceptionTelemetry
java.lang.Object
com.microsoft.applicationinsights.telemetry.BaseTelemetry
com.microsoft.applicationinsights.telemetry.ExceptionTelemetry
- All Implemented Interfaces:
Telemetry
Telemetry type used to track exceptions sent to Azure Application Insights.
-
Constructor Summary
ConstructorsConstructorDescriptionExceptionTelemetry(Throwable throwable) Creates a new instance.ExceptionTelemetry(Throwable throwable, int stackSize) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected ExceptionDatagetData()Gets a dictionary of custom defined metrics.voidsetException(Throwable throwable) voidsetException(Throwable throwable, int stackSize) voidsetSeverityLevel(SeverityLevel severityLevel) Methods inherited from class com.microsoft.applicationinsights.telemetry.BaseTelemetry
getContext, getProperties, getTimestamp, initialize, setTimestamp
-
Constructor Details
-
ExceptionTelemetry
public ExceptionTelemetry() -
ExceptionTelemetry
Creates a new instance.- Parameters:
stackSize- The max stack size to report.throwable- The exception to track.
-
ExceptionTelemetry
Creates a new instance.- Parameters:
throwable- The exception to track.
-
-
Method Details
-
getThrowable
-
getException
-
setException
-
setException
-
setSeverityLevel
-
getSeverityLevel
-
getMetrics
Gets a dictionary of custom defined metrics. -
getData
- Specified by:
getDatain classBaseTelemetry
-