@ParametersAreNonnullByDefault public class EventPublishingHealthCheckAnalyticsSender extends Object implements HealthCheckAnalyticsSender
HealthCheck
analytics events via the EventPublisher
.Constructor and Description |
---|
EventPublishingHealthCheckAnalyticsSender(HealthCheckAnalyticsEventFactory analyticsEventFactory,
com.atlassian.event.api.EventPublisher eventPublisher,
JohnsonProvider johnsonProvider) |
Modifier and Type | Method and Description |
---|---|
void |
sendHealthCheckResult(com.atlassian.johnson.event.Event johnsonEvent)
If analytics are available, sends an analytics event relating to the given Johnson event.
|
void |
sendHelpLinkClicked(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.
|
void |
sendHelpLinkClickedForEventHiddenPage() |
public EventPublishingHealthCheckAnalyticsSender(HealthCheckAnalyticsEventFactory analyticsEventFactory, com.atlassian.event.api.EventPublisher eventPublisher, JohnsonProvider johnsonProvider)
public void sendHealthCheckResult(com.atlassian.johnson.event.Event johnsonEvent)
HealthCheckAnalyticsSender
sendHealthCheckResult
in interface HealthCheckAnalyticsSender
johnsonEvent
- the Johnson eventpublic void sendHelpLinkClicked(String eventId)
HealthCheckAnalyticsSender
sendHelpLinkClicked
in interface HealthCheckAnalyticsSender
eventId
- the unique ID of the Johnson event for which the user clicked the help linkpublic void sendHelpLinkClickedForEventHiddenPage()
sendHelpLinkClickedForEventHiddenPage
in interface HealthCheckAnalyticsSender
Copyright © 2002-2019 Atlassian. All Rights Reserved.