webhook templates
This commit is contained in:
@@ -361,6 +361,9 @@ class Webhook(Base):
|
||||
severity_filter = Column(Text, nullable=True, comment="JSON array of severities to trigger on")
|
||||
timeout = Column(Integer, nullable=True, default=10, comment="Request timeout in seconds")
|
||||
retry_count = Column(Integer, nullable=True, default=3, comment="Number of retry attempts")
|
||||
template = Column(Text, nullable=True, comment="Jinja2 template for webhook payload")
|
||||
template_format = Column(String(20), nullable=True, default='json', comment="Template output format: json, text")
|
||||
content_type_override = Column(String(100), nullable=True, comment="Optional custom Content-Type header")
|
||||
created_at = Column(DateTime, nullable=False, default=datetime.utcnow, comment="Creation time")
|
||||
updated_at = Column(DateTime, nullable=False, default=datetime.utcnow, comment="Last update time")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user