Class HealthCheckAnalyticsEvent
- java.lang.Object
-
- com.atlassian.confluence.internal.health.analytics.HealthCheckAnalyticsEvent
-
@ParametersAreNonnullByDefault public class HealthCheckAnalyticsEvent extends Object
A server-side analytics event raised after executing a health check. If you add attributes to this event, make sure to also add them to the whitelist (confluence_whitelist.json). See The Developer's Guide to Atlassian Analytics.- Since:
- 6.6.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCause()
String
getCheckId()
String
getEventId()
String
getEventLevel()
@Nullable String
getKbURL()
String
getProductRunId()
String
getStartupMode()
static @NonNull String
sanitise(String text)
Converts the given arbitrary text into a sanitised analytics attribute value.
-
-
-
Constructor Detail
-
HealthCheckAnalyticsEvent
public HealthCheckAnalyticsEvent(String checkId, String startupMode, String eventId, String eventLevel, String cause, @Nullable URL kbURL)
Constructor.- Parameters:
checkId
- the unique ID of the check that raised this eventstartupMode
- the mode in which Confluence started upeventId
- the unique ID of this analytics eventeventLevel
- the event levelcause
- the cause of the eventkbURL
- the URL clicked by the user; ifnull
, this is not a KB clicked event
-
-
Method Detail
-
sanitise
public static @NonNull String sanitise(String text)
Converts the given arbitrary text into a sanitised analytics attribute value. Anyone querying the analytics database will need to decode the sanitised value using a lookup table provided by Confluence developers.- Parameters:
text
- the text to sanitise- Returns:
- a value that does not require whitelistung
-
getProductRunId
public String getProductRunId()
-
getCheckId
public String getCheckId()
-
getCause
public String getCause()
-
getEventId
public String getEventId()
-
getEventLevel
public String getEventLevel()
-
getStartupMode
public String getStartupMode()
-
getKbURL
public @Nullable String getKbURL()
-
-