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

feat: update statistics [SDK-23] #63

Merged
merged 3 commits into from
Mar 25, 2022
Merged

Conversation

klausborges
Copy link
Contributor

No description provided.

*
* Not all of the services will be present for every statistic, only if for the usage period the service was used.
*/
type UsageStatistic = Partial<Record<BillingService, number>> & {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Statistics are now cumulative, so the services in the object are now Partial.

* { "time": "2022-01-01T00:00:00.000Z", "input": 5, "output": 10 },
* { "time": "2022-01-01T00:00:00.000Z", "input": 10, "output": 15 },
* ]
* ```
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only made changes to the documentation to describe the new system and added an example to make it clear how the cumulative system works.

@felipefdl felipefdl merged commit 5b42626 into master Mar 25, 2022
@felipefdl felipefdl deleted the SDK-23-update-statistics branch March 25, 2022 14:07
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

Successfully merging this pull request may close these issues.

2 participants