Skip to content
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

Implement Query::nodeStatus #259

Open
limemloh opened this issue Sep 27, 2024 — with Linear · 0 comments
Open

Implement Query::nodeStatus #259

limemloh opened this issue Sep 27, 2024 — with Linear · 0 comments
Assignees

Comments

Copy link
Contributor

limemloh commented Sep 27, 2024

Implement Query::nodeStatus and ActiveBakerState::nodeStatus in the Rust GraphQL API and relevant types.

This is information is not available on chain, but require polling from the node collector

Note that the frontend only depends on the following data per node:

type NodeStatus {
  id: ID!
  nodeId: String!
  nodeName: String
  averagePing: Float
  uptime: UnsignedLong!
  clientVersion: String!
  averageBytesPerSecondIn: Float!
  averageBytesPerSecondOut: Float!
  packetsSent: UnsignedLong!
  packetsReceived: UnsignedLong!
  bakingCommitteeMember: String!
  bestBlock: String!
  bestBlockHeight: UnsignedLong!
  bestArrivedTime: DateTime
  blockReceivePeriodEma: Float
  blockReceivePeriodEmsd: Float
  peersCount: UnsignedLong!
  peersList: [PeerReference!]!
  finalizedBlock: String!
  finalizedBlockHeight: UnsignedLong!
  finalizedTime: DateTime
  finalizationPeriodEma: Float
  finalizationPeriodEmsd: Float
  consensusBakerId: UnsignedLong
  blocksReceivedCount: UnsignedLong
}

The remaining fields can be omitted.

For reference, the C# GraphQL schema can be found here.

@limemloh limemloh assigned lassemand and limemloh and unassigned lassemand Jan 20, 2025
@lassemand lassemand assigned lassemand and unassigned limemloh Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants