RemoveLabel removes all labels associated with the specified key for all samples in the profile.
(key string)
| 728 | // RemoveLabel removes all labels associated with the specified key for all |
| 729 | // samples in the profile. |
| 730 | func (p *Profile) RemoveLabel(key string) { |
| 731 | for _, sample := range p.Sample { |
| 732 | delete(sample.Label, key) |
| 733 | } |
| 734 | } |
| 735 | |
| 736 | // HasLabel returns true if a sample has a label with indicated key and value. |
| 737 | func (s *Sample) HasLabel(key, value string) bool { |
no outgoing calls