@@ -296,40 +296,40 @@ type CollectResponse struct {
296296// QANConfig holds configuration for the QAN data path.
297297type QANConfig struct {
298298 // Enabled controls whether the QAN path is active.
299- Enabled bool `json:"enabled" yaml:"enabled"`
299+ Enabled bool `json:"enabled" yaml:"enabled" mapstructure:"enabled" `
300300
301301 // Interval is how often to collect QAN data (default: 60s).
302- Interval time.Duration `json:"interval" yaml:"interval"`
302+ Interval time.Duration `json:"interval" yaml:"interval" mapstructure:"interval" `
303303
304304 // Endpoint is the TFO Platform QAN API URL.
305305 // Example: "https://api.telemetryflow.id"
306- Endpoint string `json:"endpoint" yaml:"endpoint"`
306+ Endpoint string `json:"endpoint" yaml:"endpoint" mapstructure:"endpoint" `
307307
308308 // APIKeyID and APIKeySecret for authentication.
309- APIKeyID string `json:"api_key_id" yaml:"api_key_id"`
310- APIKeySecret string `json:"-" yaml:"api_key_secret"`
309+ APIKeyID string `json:"api_key_id" yaml:"api_key_id" mapstructure:"api_key_id" `
310+ APIKeySecret string `json:"-" yaml:"api_key_secret" mapstructure:"api_key_secret" `
311311
312312 // BatchSize is the maximum number of buckets per push (default: 100).
313- BatchSize int `json:"batch_size" yaml:"batch_size"`
313+ BatchSize int `json:"batch_size" yaml:"batch_size" mapstructure:"batch_size" `
314314
315315 // FlushInterval is how long to buffer before flushing (default: 10s).
316- FlushInterval time.Duration `json:"flush_interval" yaml:"flush_interval"`
316+ FlushInterval time.Duration `json:"flush_interval" yaml:"flush_interval" mapstructure:"flush_interval" `
317317
318318 // Timeout for HTTP push requests (default: 30s).
319- Timeout time.Duration `json:"timeout" yaml:"timeout"`
319+ Timeout time.Duration `json:"timeout" yaml:"timeout" mapstructure:"timeout" `
320320
321321 // MaxRetryAttempts for push requests (default: 3).
322- MaxRetryAttempts int `json:"max_retry_attempts" yaml:"max_retry_attempts"`
322+ MaxRetryAttempts int `json:"max_retry_attempts" yaml:"max_retry_attempts" mapstructure:"max_retry_attempts" `
323323
324324 // TopQueriesLimit is the max number of query fingerprints to track per
325325 // database instance per cycle (default: 200).
326- TopQueriesLimit int `json:"top_queries_limit" yaml:"top_queries_limit"`
326+ TopQueriesLimit int `json:"top_queries_limit" yaml:"top_queries_limit" mapstructure:"top_queries_limit" `
327327
328328 // Collectors enables/disables individual QAN collector types.
329329 // All default to true when QAN.Enabled is true — set to false to disable
330330 // specific DB types. Collectors only activate when the corresponding
331331 // regular DB collector is enabled and has instances configured.
332- Collectors QANCollectorsConfig `json:"collectors" yaml:"collectors"`
332+ Collectors QANCollectorsConfig `json:"collectors" yaml:"collectors" mapstructure:"collectors" `
333333}
334334
335335// QANCollectorsConfig provides per-DB-type feature flags for QAN collection.
0 commit comments