Skip to main content

UpdateAlertRuleInput

UpdateAlertRuleInput is used for update AlertRule object. Input was generated by ent.

input UpdateAlertRuleInput {
name: String
alertType: AlertRuleAlertType
severity: AlertRuleAlertSeverity
enabled: Boolean
resourceType: AlertRuleAlertResourceType
resourceID: String
clearResourceID: Boolean
conditions: Map
clearConditions: Boolean
deliveryMode: AlertRuleAlertDeliveryMode
batchIntervalMinutes: Int
recipients: [AlertRecipientInput!]
appendRecipients: [AlertRecipientInput!]
botModeFilter: AlertRuleAlertBotModeFilter
cooldownMinutes: Int
lastTriggeredAt: Time
clearLastTriggeredAt: Boolean
ownerID: String
updatedAt: Time
addEventIDs: [ID!]
removeEventIDs: [ID!]
clearEvents: Boolean
}

Fields​

UpdateAlertRuleInput.name ● String scalar​

Human-readable rule name (e.g., 'Bot Error Alert')

UpdateAlertRuleInput.alertType ● AlertRuleAlertType enum​

Type of alert: status_change, trade_opened, trade_closed, etc.

UpdateAlertRuleInput.severity ● AlertRuleAlertSeverity enum​

Alert severity: critical, warning, info

UpdateAlertRuleInput.enabled ● Boolean scalar​

Whether this rule is active

UpdateAlertRuleInput.resourceType ● AlertRuleAlertResourceType enum​

Type of resource: organization, bot, strategy, runner

UpdateAlertRuleInput.resourceID ● String scalar​

Resource ID - UUID for bot/strategy/runner, or organization alias for org-level rules

UpdateAlertRuleInput.clearResourceID ● Boolean scalar​

UpdateAlertRuleInput.conditions ● Map scalar​

Condition parameters: thresholds, status values, etc.

UpdateAlertRuleInput.clearConditions ● Boolean scalar​

UpdateAlertRuleInput.deliveryMode ● AlertRuleAlertDeliveryMode enum​

Delivery mode: immediate or batched

UpdateAlertRuleInput.batchIntervalMinutes ● Int scalar​

Batch window in minutes (only used if delivery_mode=batched)

UpdateAlertRuleInput.recipients ● [AlertRecipientInput!] list input​

List of recipients (email, user, or role)

UpdateAlertRuleInput.appendRecipients ● [AlertRecipientInput!] list input​

UpdateAlertRuleInput.botModeFilter ● AlertRuleAlertBotModeFilter enum​

Filter by bot trading mode: all, live, dry_run

UpdateAlertRuleInput.cooldownMinutes ● Int scalar​

Minimum minutes between alerts of same type for same resource

UpdateAlertRuleInput.lastTriggeredAt ● Time scalar​

When this rule last triggered (for cooldown calculation)

UpdateAlertRuleInput.clearLastTriggeredAt ● Boolean scalar​

UpdateAlertRuleInput.ownerID ● String scalar​

Organization ID that owns this rule

UpdateAlertRuleInput.updatedAt ● Time scalar​

UpdateAlertRuleInput.addEventIDs ● [ID!] list scalar​

UpdateAlertRuleInput.removeEventIDs ● [ID!] list scalar​

UpdateAlertRuleInput.clearEvents ● Boolean scalar​

Member Of​

updateAlertRule mutation