aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard/dashapi/dashapi.go
diff options
context:
space:
mode:
Diffstat (limited to 'dashboard/dashapi/dashapi.go')
-rw-r--r--dashboard/dashapi/dashapi.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/dashboard/dashapi/dashapi.go b/dashboard/dashapi/dashapi.go
index 8ebea29ac..4ba797f32 100644
--- a/dashboard/dashapi/dashapi.go
+++ b/dashboard/dashapi/dashapi.go
@@ -16,6 +16,7 @@ import (
"net/url"
"reflect"
"strings"
+ "time"
)
type Dashboard struct {
@@ -249,6 +250,23 @@ type PollResponse struct {
Reports []*BugReport
}
+type ManagerStatsReq struct {
+ Name string
+ // Current level:
+ UpTime time.Duration
+ Corpus uint64
+ Cover uint64
+
+ // Delta since last sync:
+ FuzzingTime time.Duration
+ Crashes uint64
+ Execs uint64
+}
+
+func (dash *Dashboard) UploadManagerStats(req *ManagerStatsReq) error {
+ return dash.query("manager_stats", req, nil)
+}
+
type (
BugStatus int
ReproLevel int