filecoin-station / spark-stats

API exposing public statistics about Spark
Other
0 stars 1 forks source link

feat: API for deals tracked per miner/client #194

Closed bajtos closed 1 month ago

bajtos commented 1 month ago

Links:

Out of the scope of this pull request:

Example request:

GET /miner/f0814049/deals/eligible/summary

Example response:

{
  "minerId": "f0814049",
  "dealCount": 10006,
  "clients": [
    { "clientId": "f02516933", "dealCount": 6880 },
    { "clientId": "f02833886", "dealCount": 3126 }
  ]
}

Example request:

GET /clients/f0215074/deals/eligible/summary

Example response:

{
  "clientId": "f0215074",
  "dealCount": 5350,
  "providers": [
    { "minerId": "f0406478", "dealCount": 4592 },
    { "minerId": "f0814049", "dealCount": 758 }
  ]
}
bajtos commented 1 month ago

@juliangruber hindsight please 🙏🏻

sentry-io[bot] commented 1 month ago

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

Did you find this useful? React with a 👍 or 👎