Remove historical analytics from the registry page

This commit is contained in:
ayurishchev committed 2026-11-23 12:11:03 +03:00
1 parent b58d5f5b82
commit 7eeb8c4ae9
16 files changed
+16 -794

No files matched your search

-39
View File
@@ -167,45 +167,6 @@ type breakdownRow struct {
OK int `json:"ok"`
}
// registryTrend is GET /admin/registry/trend: the checks of one direction (and
// protocol) per target or site in each finalized run, oldest run first.
type registryTrend struct {
Group string `json:"group"`
Truncated bool `json:"truncated"`
Runs []trendRun `json:"runs"`
Series []trendSeries `json:"series"`
}
// registryAlwaysPass is GET /admin/registry/always-pass: of Addresses with
// checks in the Runs of the period, AlwaysPass never failed one.
type registryAlwaysPass struct {
Truncated bool `json:"truncated"`
Runs int `json:"runs"`
FirstRunAt *time.Time `json:"first_run_at"`
LastRunAt *time.Time `json:"last_run_at"`
Addresses int `json:"addresses"`
AlwaysPass int `json:"always_pass"`
}
type trendRun struct {
ID int64 `json:"id"`
StartedAt time.Time `json:"started_at"`
FinalizedAt *time.Time `json:"finalized_at"`
Addresses int `json:"addresses"`
}
type trendSeries struct {
Key string `json:"key"`
Label string `json:"label"`
Points []trendPoint `json:"points"`
}
type trendPoint struct {
RunID int64 `json:"run_id"`
Total int `json:"total"`
OK int `json:"ok"`
}
// scanStatusDTO is the state of control-api's background floating-IP scan job
// (POST/GET /api/v1/admin/ips/scan).
type scanStatusDTO struct {