New external site management. New external prober heartbeat feature.
This commit is contained in:
1 parent
42f584dd3c
commit
ef24cc9858
38 files changed
+1058
-158
No files matched your search
@@ -89,6 +89,11 @@ type resultDTO struct {
|
||||
}
|
||||
|
||||
func (p *Prober) pollOnce(ctx context.Context) {
|
||||
if _, err := p.client.Do(ctx, "POST", "/api/v1/probers/"+p.cfg.SiteID+"/heartbeat", nil, nil); err != nil {
|
||||
p.log.Error("heartbeat", "err", err)
|
||||
return
|
||||
}
|
||||
|
||||
var assignments []assignment
|
||||
ok, err := p.client.Do(ctx, "GET", "/api/v1/probers/"+p.cfg.SiteID+"/assignments", nil, &assignments)
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user