update deps
This commit is contained in:
12
vendor/gitlab.com/etke.cc/go/psd/target.go
generated
vendored
Normal file
12
vendor/gitlab.com/etke.cc/go/psd/target.go
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
package psd
|
||||
|
||||
// Target is a struct that represents a single set of targets in Prometheus Service Discovery
|
||||
type Target struct {
|
||||
Targets []string `json:"targets"`
|
||||
Labels map[string]string `json:"labels"`
|
||||
}
|
||||
|
||||
// GetDomain returns the domain of the target
|
||||
func (t *Target) GetDomain() string {
|
||||
return t.Labels["domain"]
|
||||
}
|
||||
Reference in New Issue
Block a user