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

API: Stats endpoint #23

Closed
ashleyvega opened this issue Apr 3, 2020 · 19 comments
Closed

API: Stats endpoint #23

ashleyvega opened this issue Apr 3, 2020 · 19 comments
Assignees

Comments

@ashleyvega
Copy link
Contributor

In GitLab by @cdm on May 31, 2018, 15:53

Update stats.vegaprotocol.io to use the following info:

gRPC/REST only, GQL to follow in subsequent ticket(?) -- /statistics

  • Block height
  • TX Backlog length
  • Number of peers
  • Genesis time (on node)
  • Current time (on node)
  • Status
    1. Chain_Not_Found
    2. Replaying
    3. Connected
    4. Disconnected
    5. Critical_Error
  • TX avg size (bytes)
  • Orders avg per block
  • Trades per second
  • Orders per second
  • Last trade (on any market, for now)
  • Last order (on any market, for now)
  • Last candle (on any market, for now) Defer until later, not too easy here
  • markets

  • parties

  • App version hash e.g. ca82a6dff817ec66f44342007202690a93763949
  • App version number e.g. 0.1.0.532 (?)
@ashleyvega
Copy link
Contributor Author

In GitLab by @edd on May 31, 2018, 15:56

marked this issue as related to vega-stats#5

@ashleyvega
Copy link
Contributor Author

In GitLab by @asktav on May 31, 2018, 16:20

marked this issue as related to #22

@ashleyvega
Copy link
Contributor Author

In GitLab by @cdm on Jul 2, 2018, 12:03

changed title from {-Support VEGA stats dashboard by adding additional trading-core REST api-} endpoints to {+API: Support VEGA stats dashboard by adding additional trading-core REST+} endpoints

@ashleyvega
Copy link
Contributor Author

In GitLab by @edd on Jul 5, 2018, 17:41

changed weight to 1

@ashleyvega
Copy link
Contributor Author

In GitLab by @edd on Aug 13, 2018, 14:17

changed title from API: S{-upport VEGA stats dashboard by adding additional trading-core REST endpoints-} to API: S{+tats endpoint+}

@ashleyvega
Copy link
Contributor Author

In GitLab by @edd on Aug 13, 2018, 14:17

changed the description

@ashleyvega
Copy link
Contributor Author

In GitLab by @edd on Aug 13, 2018, 14:18

changed the description

@ashleyvega
Copy link
Contributor Author

In GitLab by @edd on Aug 13, 2018, 14:21

changed the description

@ashleyvega
Copy link
Contributor Author

In GitLab by @cdm on Aug 13, 2018, 14:24

changed the description

@ashleyvega
Copy link
Contributor Author

In GitLab by @cdm on Aug 13, 2018, 14:27

return some sub-sections -> Blockchain, Trading ?

@ashleyvega
Copy link
Contributor Author

In GitLab by @edd on Aug 13, 2018, 15:00

changed the description

@ashleyvega
Copy link
Contributor Author

In GitLab by @cdm on Aug 14, 2018, 13:54

changed the description

@ashleyvega
Copy link
Contributor Author

In GitLab by @cdm on Aug 14, 2018, 16:14

changed the description

@ashleyvega
Copy link
Contributor Author

In GitLab by @cdm on Aug 14, 2018, 16:25


message Statistics {
    uint64 blockHeight = 1;
    uint64 backlogLength = 2;
    uint64 totalPeers = 3;
    string genesisTime = 4;
    string currentTime = 5;
    AppStatus status = 6;
    uint64 averageTxBytes = 7;
    uint64 averageOrdersPerBlock = 8;
    uint64 tradesPerSecond = 9;
    uint64 ordersPerSecond = 10;
    Trade  lastTrade = 11;
    Order  lastOrder = 12;
    Candle lastCandle = 13;
    uint64 totalMarkets = 14;
    uint64 totalParties = 15;
    string AppVersionHash = 16;
    string AppVersion = 17;
}

enum AppStatus {
    CHAIN_NOT_FOUND = 0;
    CHAIN_ERROR = 1;
    CHAIN_REPLAYING = 2;
    APP_CONNECTED = 3;
    APP_ERROR = 4;
    APP_DISCONNECTED = 5;
}


@ashleyvega
Copy link
Contributor Author

In GitLab by @cdm on Aug 14, 2018, 18:35

assigned to @cdm

@ashleyvega
Copy link
Contributor Author

In GitLab by @cdm on Aug 14, 2018, 21:33

changed the description

@ashleyvega
Copy link
Contributor Author

In GitLab by @cdm on Aug 14, 2018, 21:34

changed the description

@ashleyvega
Copy link
Contributor Author

In GitLab by @cdm on Aug 15, 2018, 14:47

mentioned in merge request !48

@ashleyvega
Copy link
Contributor Author

In GitLab by @cdm on Aug 15, 2018, 15:27

closed

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