Class StashDiagnostics


  • public class StashDiagnostics
    extends Object
    A helper class for Stash application links diagnostics.
    • Constructor Detail

      • StashDiagnostics

        public StashDiagnostics()
    • Method Detail

      • recordEvent

        public static void recordEvent​(@NotNull
                                       @NotNull 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.
        Parameters:
        event - Stash event
      • getLastReceivedEventInfo

        @NotNull
        public static @NotNull Optional<StashDiagnostics.LastReceivedEventInfo> getLastReceivedEventInfo​(@NotNull
                                                                                                         @NotNull com.atlassian.applinks.api.ApplicationId applicationId)
        Returns information about last received Stash event for the specified application link. If there was no event recorded for the application, Optional.empty() will be returned.
        Parameters:
        applicationId - Stash application link id
        Returns:
        Information about last received Stash event