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"` // TargetNamespaces 仅 k8s-daemonset 使用:只采集这些命名空间的 Pod 日志。 // 空/不传 = 采集全集群(默认,保持旧行为)。 TargetNamespaces []string `json:"targetNamespaces"` }