Enum Class Webhook.Health

java.lang.Object
java.lang.Enum<Webhook.Health>
pw.chew.clickup4j.api.entities.Webhook.Health
All Implemented Interfaces:
Serializable, Comparable<Webhook.Health>, Constable
Enclosing interface:
Webhook

public static enum Webhook.Health extends Enum<Webhook.Health>
  • Enum Constant Details

    • ACTIVE

      public static final Webhook.Health 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

      public static final Webhook.Health 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 webhook health object. This count will be incremented for each event that we fail to send you.
      If at any time while your webhook is marked as failing the issues with your endpoint are resolved and success status codes are received, we will automatically mark your webhook back to the active status and clear the fail_count.

    • SUSPENDED

      public static final Webhook.Health 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

      public static Webhook.Health[] 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

      public static Webhook.Health valueOf(String name)
      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 name
      NullPointerException - if the argument is null