public class StashDiagnostics extends Object
Modifier and Type | Class and Description |
---|---|
static class |
StashDiagnostics.LastReceivedEventInfo
A simple POJO containing information about an event and the date it was received.
|
Constructor and Description |
---|
StashDiagnostics() |
Modifier and Type | Method and Description |
---|---|
static Optional<StashDiagnostics.LastReceivedEventInfo> |
getLastReceivedEventInfo(com.atlassian.applinks.api.ApplicationId applicationId)
Returns information about last received Stash event for the specified application link.
|
static void |
recordEvent(com.atlassian.event.remote.RemoteEvent event)
Records an event received from Stash - stores it as the last received for the application it was sent by.
|
public static void recordEvent(@NotNull com.atlassian.event.remote.RemoteEvent event)
event
- Stash event@NotNull public static Optional<StashDiagnostics.LastReceivedEventInfo> getLastReceivedEventInfo(@NotNull com.atlassian.applinks.api.ApplicationId applicationId)
Optional.empty()
will be returned.applicationId
- Stash application link idCopyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.