-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query non-signers between start and stop times. #464
Conversation
@@ -645,12 +660,16 @@ const docTemplate = `{ | |||
}, | |||
"total_stake": { | |||
"description": "deprecated: use TotalStakePerQuorum instead. Remove when the frontend is updated.", | |||
"type": "integer" | |||
"allOf": [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure what happened here. Perhaps I'm using a different version of swaggo?
@@ -465,7 +465,9 @@ func (s *server) FetchNonSigners(c *gin.Context) { | |||
// @Summary Fetch operators non signing percentage | |||
// @Tags Metrics | |||
// @Produce json | |||
// @Param interval query int false "Interval to query for operators nonsigning percentage [default: 3600]" | |||
// @Param interval query int false "Interval to query for operators nonsigning percentage [default: 3600]" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It may be simpler to just have 2 params: endtime and interval. When endtime is missing, set it to time.Now(). Then it'll be also be backward compatible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That seems like a good suggestion. I'll go ahead and update.
Why are these changes needed?
Allows for investigation of non-signer statistics over arbitrary intervals.
Checks