Class EventPublishingHealthCheckAnalyticsSender
- java.lang.Object
-
- com.atlassian.confluence.impl.health.analytics.EventPublishingHealthCheckAnalyticsSender
-
- All Implemented Interfaces:
HealthCheckAnalyticsSender
@ParametersAreNonnullByDefault public class EventPublishingHealthCheckAnalyticsSender extends Object implements HealthCheckAnalyticsSender
Sends health check analytics events via theEventPublisher
.- Since:
- 6.6.0
-
-
Constructor Summary
Constructors Constructor Description EventPublishingHealthCheckAnalyticsSender(HealthCheckAnalyticsEventFactory analyticsEventFactory, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.johnson.JohnsonEventContainer johnsonEventContainer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
sendGeneralHelpLinkClicked(String kbURL)
Sends an analytics event to indicate that the user clicked the given non-event-specific knowledge base link on the Johnson page.void
sendHealthCheckResult(com.atlassian.johnson.event.Event johnsonEvent)
If analytics are available, sends an analytics event relating to the given Johnson event.void
sendHelpLinkClickedForEvent(String eventId)
Sends an analytics event to indicate that the user (typically an admin) clicked a help link for a health check result on the Johnson page.
-
-
-
Constructor Detail
-
EventPublishingHealthCheckAnalyticsSender
public EventPublishingHealthCheckAnalyticsSender(HealthCheckAnalyticsEventFactory analyticsEventFactory, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.johnson.JohnsonEventContainer johnsonEventContainer)
-
-
Method Detail
-
sendHealthCheckResult
public void sendHealthCheckResult(com.atlassian.johnson.event.Event johnsonEvent)
Description copied from interface:HealthCheckAnalyticsSender
If analytics are available, sends an analytics event relating to the given Johnson event.- Specified by:
sendHealthCheckResult
in interfaceHealthCheckAnalyticsSender
- Parameters:
johnsonEvent
- the Johnson event
-
sendHelpLinkClickedForEvent
public void sendHelpLinkClickedForEvent(String eventId)
Description copied from interface:HealthCheckAnalyticsSender
Sends an analytics event to indicate that the user (typically an admin) clicked a help link for a health check result on the Johnson page.- Specified by:
sendHelpLinkClickedForEvent
in interfaceHealthCheckAnalyticsSender
- Parameters:
eventId
- the unique ID of the Johnson event for which the user clicked the help link
-
sendGeneralHelpLinkClicked
public void sendGeneralHelpLinkClicked(String kbURL)
Description copied from interface:HealthCheckAnalyticsSender
Sends an analytics event to indicate that the user clicked the given non-event-specific knowledge base link on the Johnson page.- Specified by:
sendGeneralHelpLinkClicked
in interfaceHealthCheckAnalyticsSender
-
-