public class HeartBeatModule extends java.lang.Object implements TelemetryModule
This module is the core module which is is configured by default with default settings when ApplicationInsights SDK boots up. It is used to transmit diagnostic heartbeats to Application Insights backend.
Constructor and Description |
---|
HeartBeatModule()
Default constructor to initialize the default heartbeat configuration.
|
HeartBeatModule(java.util.Map<java.lang.String,java.lang.String> properties)
Initializes the heartbeat configuration based on connfiguration properties specified in
ApplicationInsights.xml file.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getExcludedHeartBeatProperties()
Returns list of excluded heartbeat properties from payload
|
java.util.List<java.lang.String> |
getExcludedHeartBeatPropertiesProvider()
Gets list of excluded heartbeat properties provider.
|
long |
getHeartBeatInterval()
Returns the heartbeat interval in seconds.
|
void |
initialize(TelemetryConfiguration configuration)
Initializes the telemetry module.
|
boolean |
isHeartBeatEnabled()
Gets the current state of heartbeat
|
void |
setExcludedHeartBeatProperties(java.util.List<java.lang.String> excludedHeartBeatProperties)
Sets the list of excluded heartbeat properties
|
void |
setExcludedHeartBeatPropertiesProvider(java.util.List<java.lang.String> excludedHeartBeatPropertiesProvider)
Sets list of excluded heartbeat properties provider.
|
void |
setHeartBeatEnabled(boolean heartBeatEnabled)
Sets the state of heartbeat module
|
void |
setHeartBeatInterval(long heartBeatInterval)
Sets the heartbeat interval in seconds.
|
public HeartBeatModule()
public HeartBeatModule(java.util.Map<java.lang.String,java.lang.String> properties)
properties
- Map of propertiespublic long getHeartBeatInterval()
public void setHeartBeatInterval(long heartBeatInterval)
heartBeatInterval
- Heartbeat interval to set in seconds.public java.util.List<java.lang.String> getExcludedHeartBeatProperties()
public void setExcludedHeartBeatProperties(java.util.List<java.lang.String> excludedHeartBeatProperties)
excludedHeartBeatProperties
- List of heartbeat properties to excludepublic java.util.List<java.lang.String> getExcludedHeartBeatPropertiesProvider()
public void setExcludedHeartBeatPropertiesProvider(java.util.List<java.lang.String> excludedHeartBeatPropertiesProvider)
excludedHeartBeatPropertiesProvider
- list of excluded heartbeat properties provider to be excluded.public boolean isHeartBeatEnabled()
public void setHeartBeatEnabled(boolean heartBeatEnabled)
heartBeatEnabled
- boolean true / falsepublic void initialize(TelemetryConfiguration configuration)
TelemetryModule
initialize
in interface TelemetryModule
configuration
- The configuration to used to initialize the module.