(batch []*controller.PrometheusTarget)
| 167 | } |
| 168 | |
| 169 | func (t *target) Add(batch []*controller.PrometheusTarget) { |
| 170 | for _, item := range batch { |
| 171 | t.keyToTargetID.Store(NewTargetKey(item.GetInstance(), item.GetJob(), int(item.GetEpcId()), int(item.GetPodClusterId())), int(item.GetId())) |
| 172 | } |
| 173 | } |
| 174 | |
| 175 | func (t *target) GetTargetIDToLabelNames() map[int]mapset.Set[string] { |
| 176 | return t.targetIDToLabelNames.Get() |
nothing calls this directly
no test coverage detected