Constructor and Description |
---|
WebhookTemplate(Application application,
String endpointUrl,
String token) |
WebhookTemplate(Webhook webhook) |
Modifier and Type | Method and Description |
---|---|
Application |
getApplication() |
String |
getEndpointUrl() |
long |
getFailuresSinceLastSuccess() |
Long |
getId() |
Date |
getOldestFailureDate() |
String |
getToken() |
void |
resetFailuresSinceLastSuccess() |
void |
resetOldestFailureDate() |
void |
setFailuresSinceLastSuccess(long failuresSinceLastSuccess) |
void |
setOldestFailureDate(Date oldestFailureDate) |
String |
toString() |
public WebhookTemplate(Application application, String endpointUrl, @Nullable String token)
public WebhookTemplate(Webhook webhook)
public String getEndpointUrl()
getEndpointUrl
in interface Webhook
public Application getApplication()
getApplication
in interface Webhook
@Nullable public Date getOldestFailureDate()
getOldestFailureDate
in interface Webhook
public long getFailuresSinceLastSuccess()
getFailuresSinceLastSuccess
in interface Webhook
public void setOldestFailureDate(Date oldestFailureDate)
public void resetOldestFailureDate()
public void setFailuresSinceLastSuccess(long failuresSinceLastSuccess)
public void resetFailuresSinceLastSuccess()
Copyright © 2019 Atlassian. All rights reserved.