Skip to content

Commit

Permalink
go: Replace statistics.go with generated file
Browse files Browse the repository at this point in the history
  • Loading branch information
svix-jplatte committed Jan 10, 2025
1 parent 641534c commit 14de3cf
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* Libs/Rust **(Breaking)**: Add optional `EventTypeDeleteOptions` parameter to `EventType::delete`
* Libs/Rust **(Breaking)**: Add optional `PostOptions` parameter to `Endpoint::recover`,
`Endpoint::rotate_secret`, `Integration::rotate_key` and `MessageAttempt::resend`
* Libs/Go **(Breaking)**: Rename `Statistics.AggregateAppStats` to `AggregateAppStatsWithOptions`;
the old name is used for a version of the method without the `PostOptions`, like elsewhere
* Libs/Go: Add `Authentication.ExpireAll` (and `ExpireAllWithOptions`)

## Version 1.56.0
Expand Down
16 changes: 16 additions & 0 deletions go/statistics.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// this file is @generated
package svix

import (
Expand All @@ -17,6 +18,21 @@ type Statistics struct {
func (statistics *Statistics) AggregateAppStats(
ctx context.Context,
appUsageStatsIn *AppUsageStatsIn,
) (*AppUsageStatsOut, error) {
return statistics.AggregateAppStatsWithOptions(
ctx,
appUsageStatsIn,
nil,
)
}

// Creates a background task to calculate the message destinations for all applications in the environment.
//
// Note that this endpoint is asynchronous. You will need to poll the `Get Background Task` endpoint to
// retrieve the results of the operation.
func (statistics *Statistics) AggregateAppStatsWithOptions(
ctx context.Context,
appUsageStatsIn *AppUsageStatsIn,
options *PostOptions,
) (*AppUsageStatsOut, error) {
req := statistics.api.StatisticsAPI.V1StatisticsAggregateAppStats(
Expand Down

0 comments on commit 14de3cf

Please sign in to comment.