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

sourceSecondsDuration endpoint #78

Closed
wohlner opened this issue Sep 8, 2020 · 1 comment · Fixed by #90
Closed

sourceSecondsDuration endpoint #78

wohlner opened this issue Sep 8, 2020 · 1 comment · Fixed by #90
Assignees
Labels

Comments

@wohlner
Copy link
Contributor

wohlner commented Sep 8, 2020

For any given account, we need an endpoint to query the sourceSecondsDuration for all streams created thus far in an active billing cycle and at the end of the billing cycle.

sourceSecondsDuration for the active billing cycle will be displayed on the usage tracking page in the livepeer.com admin and must be updated at least daily. sourceSecondsDuration will also be used at the end of the billing cycle for billing via our Stripe integration. To get an accurate count, we will need to query for streams with a parent id for a given account.

The billing cycle is not the first of the calendar month to the end of the calendar month. The billing cycle should be able to be set arbitrarily.

@wohlner wohlner changed the title Billing cycle source minutes transcoded sourceSecondsDuration endpoint Sep 9, 2020
@adamsoffer adamsoffer transferred this issue from livepeer/livepeer-monorepo Sep 9, 2020
@adamsoffer
Copy link
Collaborator

adamsoffer commented Sep 9, 2020

@wohlner heads up I just transferred this issue to the livepeer/livepeer-com repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants