Show collapsible IP check cycles in the registry

This commit is contained in:
ayurishchev committed 2026-11-23 11:53:08 +03:00
1 parent 94124747ce
commit b58d5f5b82
16 files changed
+332 -36

No files matched your search

+14 -1
View File
@@ -62,6 +62,7 @@ type ipQueueItem struct {
FIPAssociatedAt *time.Time
AggregatedAt *time.Time
FIPReleasedAt *time.Time
CycleID int
CreatedAt time.Time
UpdatedAt time.Time
}
@@ -88,6 +89,7 @@ type event struct {
SourceType string
SourceID string
IPID *int64
CycleID int
EventType string
Payload string
OccurredAt time.Time
@@ -373,7 +375,18 @@ type registryHistoryResponse struct {
Checks []check `json:"checks"`
// SelfCheckFailedOn lists the validators whose self-check of this address
// failed, over every run.
SelfCheckFailedOn []string `json:"self_check_failed_on"`
SelfCheckFailedOn []string `json:"self_check_failed_on"`
Events []event `json:"events"`
Cycles []registryCycle `json:"cycles"`
CurrentIP *ipQueueItem `json:"current_ip"`
}
type registryCycle struct {
CycleID int `json:"cycle_id"`
RunID int64 `json:"run_id"`
Verdict string `json:"verdict"`
AggregatedAt *time.Time `json:"aggregated_at"`
SelfCheckFailedOn []string `json:"self_check_failed_on"`
}
type validatorDTO struct {