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.
This commit is contained in:
1 parent
f9c6c1d826
commit
2d73661dd1
127 files changed
+8117
-2876
No files matched your search
@@ -0,0 +1,27 @@
|
||||
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"`
|
||||
}
|
||||
@@ -5,9 +5,11 @@ type CreateDeploymentRequest struct {
|
||||
Name string `json:"name" binding:"required"`
|
||||
Description string `json:"description"`
|
||||
Version string `json:"version"`
|
||||
Mode string `json:"mode" binding:"required,oneof=k8s-helm k8s-yaml host-binary"`
|
||||
Mode string `json:"mode" binding:"required,oneof=k8s-yaml host-binary host-docker"`
|
||||
ClusterID *uint `json:"clusterID"`
|
||||
HostID *uint `json:"hostID"`
|
||||
ListenIP string `json:"listenIP"`
|
||||
ListenPort int `json:"listenPort"`
|
||||
Namespace string `json:"namespace"`
|
||||
StorageConfigID uint `json:"storageConfigID"`
|
||||
AuthEnabled bool `json:"authEnabled"`
|
||||
@@ -19,3 +21,9 @@ type CreateDeploymentRequest struct {
|
||||
GrafanaEnabled bool `json:"grafanaEnabled"`
|
||||
GrafanaVersion string `json:"grafanaVersion"`
|
||||
}
|
||||
|
||||
// UpdateRetentionRequest 编辑 Loki limits_config 中的保留策略片段。
|
||||
type UpdateRetentionRequest struct {
|
||||
YAML string `json:"yaml" binding:"required"`
|
||||
Apply bool `json:"apply"`
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package dto
|
||||
|
||||
type ImageRegistryRequest struct {
|
||||
Mode string `json:"mode" binding:"required,oneof=overseas cn custom"`
|
||||
CustomHost string `json:"customHost"`
|
||||
}
|
||||
Reference in new issue
Block a user