feat: build wahrwelt A/D toolkit

This commit is contained in:
TakuyaYagam1 committed 2026-10-14 11:30:41 +03:00
1 parent 303438d206
commit 653924d8c6
564 files changed
+36310 -49998

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
package models
import (
"fmt"
"github.com/prometheus/client_golang/prometheus"
)
type Target struct {
ID string
IP string
}
func NewTarget(teamID, teamIP string) *Target {
return &Target{
ID: teamID,
IP: teamIP,
}
}
func (i *Target) String() string {
return fmt.Sprintf("Target(id=%s, ip=%s)", i.ID, i.IP)
}
func (i *Target) MetricLabels() prometheus.Labels {
return prometheus.Labels{"target_id": i.ID, "target_ip": i.IP}
}