Files
logan 2d73661dd1 feat: complete Loki query, insights, settings and deployment workflows
Add the Loki query UI, access policies, ingress insights, alert and registry settings, and their backend APIs. Include the related Kubernetes deployment and collector updates required by the integrated application.

Validated with go test ./..., npm run build, and npm run lint.
2026-10-25 21:28:32 +08:00

28 lines
867 B
Go

package dto
// 通知与告警域
type NotifyConfigRequest struct {
Enabled bool `json:"enabled"`
Webhook string `json:"webhook" binding:"omitempty,url"`
SigningSecret string `json:"signingSecret"`
}
type AlertRuleRequest struct {
Name string `json:"name" binding:"required"`
SourceID uint `json:"sourceId" binding:"required"`
ChannelIDs []uint `json:"channelIds"`
Query string `json:"query" binding:"required"`
WindowMin int `json:"windowMin"`
Threshold int `json:"threshold"`
Enabled bool `json:"enabled"`
CooldownMin int `json:"cooldownMin"`
}
type NotifyChannelRequest struct {
ID uint `json:"id"`
Name string `json:"name"`
Webhook string `json:"webhook" binding:"omitempty,url"`
SigningSecret string `json:"signingSecret"`
Enabled bool `json:"enabled"`
}