Class AlertWebhook

java.lang.Object
dev.dokimos.server.entity.AlertWebhook

@Entity public class AlertWebhook extends Object
A configured HTTP endpoint that receives a JSON alert when a completed run of one of its project's experiments shows a significant pass-rate regression against its baseline. An optional secret is used to sign the request body with HMAC-SHA256; the entity never exposes the secret in its public view. A disabled webhook is skipped during dispatch.
  • Constructor Details

    • AlertWebhook

      public AlertWebhook(Project project, String url, String secret, boolean enabled)
  • Method Details

    • getId

      public UUID getId()
    • getProject

      public Project getProject()
    • getUrl

      public String getUrl()
    • setUrl

      public void setUrl(String url)
    • getSecret

      public String getSecret()
    • setSecret

      public void setSecret(String secret)
    • hasSecret

      public boolean hasSecret()
      Returns true when a signing secret is configured.
    • isEnabled

      public boolean isEnabled()
    • setEnabled

      public void setEnabled(boolean enabled)
    • getTenantId

      public String getTenantId()
    • setTenantId

      public void setTenantId(String tenantId)
    • touchUpdatedAt

      public void touchUpdatedAt()
      Stamps the webhook as just modified.
    • getCreatedAt

      public Instant getCreatedAt()
    • getUpdatedAt

      public Instant getUpdatedAt()