Package dev.dokimos.server.entity
Class AlertWebhook
java.lang.Object
dev.dokimos.server.entity.AlertWebhook
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()getUrl()booleanReturns true when a signing secret is configured.booleanvoidsetEnabled(boolean enabled) voidvoidsetTenantId(String tenantId) voidvoidStamps the webhook as just modified.
-
Constructor Details
-
AlertWebhook
-
-
Method Details
-
getId
-
getProject
-
getUrl
-
setUrl
-
getSecret
-
setSecret
-
hasSecret
public boolean hasSecret()Returns true when a signing secret is configured. -
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getTenantId
-
setTenantId
-
touchUpdatedAt
public void touchUpdatedAt()Stamps the webhook as just modified. -
getCreatedAt
-
getUpdatedAt
-