com.atlassian.bitbucket.webhook.history.InvocationHistory |
Class Overview
Provides a historical, summarising view on past invocations of a WebhookInvocation.
Public Methods
@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