Package com.sendly.models
Class Webhook
java.lang.Object
com.sendly.models.Webhook
- Direct Known Subclasses:
WebhookCreatedResponse
Represents a configured webhook endpoint.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
CIRCUIT_CLOSED
- See Also:
-
CIRCUIT_OPEN
- See Also:
-
CIRCUIT_HALF_OPEN
- See Also:
-
MODE_ALL
- See Also:
-
MODE_TEST
- See Also:
-
MODE_LIVE
- See Also:
-
-
Constructor Details
-
Webhook
public Webhook(com.google.gson.JsonObject json)
-
-
Method Details
-
getId
-
getUrl
-
getEvents
-
getDescription
-
getMode
-
isActive
public boolean isActive() -
getFailureCount
public int getFailureCount() -
getLastFailureAt
-
getCircuitState
-
getCircuitOpenedAt
-
getApiVersion
-
getMetadata
-
getCreatedAt
-
getUpdatedAt
-
getTotalDeliveries
public int getTotalDeliveries() -
getSuccessfulDeliveries
public int getSuccessfulDeliveries() -
getSuccessRate
public double getSuccessRate() -
getLastDeliveryAt
-
isCircuitOpen
public boolean isCircuitOpen() -
toString
-