Show collapsible IP check cycles in the registry
This commit is contained in:
1 parent
94124747ce
commit
b58d5f5b82
16 files changed
+332
-36
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user