Skip to content

Renter metrics

Luke Champine requested to merge renter-api into master

Adds spending metrics to the renter, including storage, upload, download, and total paid into contracts. (From these, you can calculate how much will be returned to the renter when its contracts end.)

For now, only historical totals are given. So you can't view how much you spent within, e.g. the last renewal period. I don't think contracts are ever cleared from the contractor (even after they expire). We should address these issues when we implement renewal.

I don't like threading calls through the renter to the contractor. I'm eager to make the contractor a "first-class citizen" with its own API routes. This would allow you to easily inspect individual contracts. It's also a necessity for low-level renter integrations.

Merge request reports