public interface

HistoricalInvocation

com.atlassian.bitbucket.webhook.history.HistoricalInvocation
Known Indirect Subclasses

Class Overview

A historical record of a WebhookInvocation webhook invocation

Summary

Public Methods
@Nonnull Duration getDuration()
@Nonnull WebhookEvent getEvent()
@Nonnull Instant getFinish()
@Nonnull String getId()
@Nonnull InvocationRequest getRequest()
@Nonnull InvocationResult getResult()
@Nonnull Instant getStart()

Public Methods

@Nonnull public Duration getDuration ()

Returns
  • the total duration of the invocation from the start of the HTTP request to the end of the HTTP response or processing of the error if one is encountered

@Nonnull public WebhookEvent getEvent ()

Returns
  • the WebhookEvent event that generated the invocation

@Nonnull public Instant getFinish ()

Returns
  • when the invocation finished. Straight after the response is received from the webhook or an error is encountered

@Nonnull public String getId ()

Returns
  • the invocation ID that uniquely identifies the original invocation

@Nonnull public InvocationRequest getRequest ()

Returns
  • the details of the invocation's HTTP request

@Nonnull public InvocationResult getResult ()

Returns
  • the result of the invocation's request

@Nonnull public Instant getStart ()

Returns
  • when the invocation began. Just prior to when the HTTP request was made