public interface

InvocationHistory

com.atlassian.bitbucket.webhook.history.InvocationHistory

Class Overview

Provides a historical, summarising view on past invocations of a WebhookInvocation.

Summary

Public Methods
@Nonnull InvocationCounts getCounts()
@Nonnull Optional<HistoricalInvocation> getLastError()
@Nonnull Optional<HistoricalInvocation> getLastFailure()
@Nonnull Optional<HistoricalInvocation> getLastSuccess()

Public Methods

@Nonnull public InvocationCounts getCounts ()

Returns

@Nonnull public Optional<HistoricalInvocation> getLastError ()

Returns
  • the last webhook invocation that encountered an error while sending a HTTP request or an empty result if there has been no such invocation

@Nonnull public Optional<HistoricalInvocation> getLastFailure ()

Returns
  • the last webhook invocation to receive a HTTP response in the 500 range or an empty result if there has been no such invocation

@Nonnull public Optional<HistoricalInvocation> getLastSuccess ()

Returns
  • the last webhook invocation to complete successfully or an empty result if there has been no such invocation