Enum Class Webhook.Health
- All Implemented Interfaces:
Serializable
,Comparable<Webhook.Health>
,Constable
- Enclosing interface:
Webhook
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Webhook.Health
Returns the enum constant of this class with the specified name.static Webhook.Health[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACTIVE
From the ClickUp API:If your webhook is sending us healthy http status codes, we will keep sending your subscribed changes to the endpoint.
-
FAILING
From the ClickUp API docs:If an unsuccessful http status code is received or if a request takes longer than 15 seconds to complete, we will consider the webhook as failing. We understand though that flukes can happen, so we will retry your webhook five times for each event. If on the fifth retry the endpoint is still failing, we will increment a
fail_count
which you can see in the webhookhealth
object. This count will be incremented for each event that we fail to send you.
If at any time while your webhook is marked asfailing
the issues with your endpoint are resolved and success status codes are received, we will automatically mark your webhook back to theactive
status and clear thefail_count
. -
SUSPENDED
From the ClickUp API docs:If your webhook is set as failing and the fail count reaches 100, we will mark the webhook as suspended. We will no longer attempt to send events to this webhook.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-