Collector is the collector type.
| 12 | |
| 13 | // Collector is the collector type. |
| 14 | type Collector struct { |
| 15 | framework.Collector |
| 16 | Config `yaml:",inline" json:",inline"` // Embed config to receive YAML unmarshal |
| 17 | client *pcf.Client |
| 18 | |
| 19 | queueIncludeMatcher matcher.Matcher |
| 20 | queueExcludeMatcher matcher.Matcher |
| 21 | |
| 22 | // Resolved effective intervals (auto-detected or user-configured) |
| 23 | effectiveStatisticsInterval int |
| 24 | effectiveSysTopicInterval int |
| 25 | |
| 26 | // Warning throttling |
| 27 | warnMu sync.Mutex |
| 28 | warns map[string]time.Time |
| 29 | } |
| 30 | |
| 31 | const warnThrottleInterval = 10 * time.Minute |
| 32 |
nothing calls this directly
no outgoing calls
no test coverage detected