package dto import "lokistack/models" type CreateCollectorRequest struct { Name string `json:"name" binding:"required"` Type string `json:"type" binding:"required"` LokiDeploymentID uint `json:"lokiDeploymentID" binding:"required"` HostID *uint `json:"hostID"` ClusterID *uint `json:"clusterID"` TargetDeployment string `json:"targetDeployment"` Namespace string `json:"namespace"` LogPath string `json:"logPath"` Labels string `json:"labels"` // ScrapeJobs 主机模式的结构化采集项(可选;留空按 LogPath 生成 app + system 两个默认项) ScrapeJobs []models.ScrapeJob `json:"scrapeJobs"` }