@@ -38,7 +38,8 @@ public EndpointOut create(final String appId, final EndpointIn endpointIn) throw
38
38
return this .create (appId , endpointIn , new PostOptions ());
39
39
}
40
40
41
- public EndpointOut create (final String appId , final EndpointIn endpointIn , final PostOptions options ) throws ApiException {
41
+ public EndpointOut create (final String appId , final EndpointIn endpointIn , final PostOptions options )
42
+ throws ApiException {
42
43
try {
43
44
return api .v1EndpointCreate (appId , endpointIn , options .getIdempotencyKey ());
44
45
} catch (com .svix .internal .ApiException e ) {
@@ -54,7 +55,8 @@ public EndpointOut get(final String appId, final String endpointId) throws ApiEx
54
55
}
55
56
}
56
57
57
- public EndpointOut update (final String appId , final String endpointId , final EndpointUpdate endpointUpdate ) throws ApiException {
58
+ public EndpointOut update (final String appId , final String endpointId , final EndpointUpdate endpointUpdate )
59
+ throws ApiException {
58
60
try {
59
61
return api .v1EndpointUpdate (appId , endpointId , endpointUpdate );
60
62
} catch (com .svix .internal .ApiException e ) {
@@ -78,11 +80,13 @@ public EndpointSecretOut getSecret(final String appId, final String endpointId)
78
80
}
79
81
}
80
82
81
- public void rotateSecret (final String appId , final String endpointId , final EndpointSecretRotateIn endpointSecretRotateIn ) throws ApiException {
83
+ public void rotateSecret (final String appId , final String endpointId ,
84
+ final EndpointSecretRotateIn endpointSecretRotateIn ) throws ApiException {
82
85
this .rotateSecret (appId , endpointId , endpointSecretRotateIn , new PostOptions ());
83
86
}
84
87
85
- public void rotateSecret (final String appId , final String endpointId , final EndpointSecretRotateIn endpointSecretRotateIn , final PostOptions options ) throws ApiException {
88
+ public void rotateSecret (final String appId , final String endpointId ,
89
+ final EndpointSecretRotateIn endpointSecretRotateIn , final PostOptions options ) throws ApiException {
86
90
try {
87
91
api .v1EndpointRotateSecret (appId , endpointId , endpointSecretRotateIn , options .getIdempotencyKey ());
88
92
} catch (com .svix .internal .ApiException e ) {
@@ -94,7 +98,8 @@ public void recover(final String appId, final String endpointId, final RecoverIn
94
98
this .recover (appId , endpointId , recoverIn , new PostOptions ());
95
99
}
96
100
97
- public void recover (final String appId , final String endpointId , final RecoverIn recoverIn , final PostOptions options ) throws ApiException {
101
+ public void recover (final String appId , final String endpointId , final RecoverIn recoverIn ,
102
+ final PostOptions options ) throws ApiException {
98
103
try {
99
104
api .v1EndpointRecover (appId , endpointId , recoverIn , options .getIdempotencyKey ());
100
105
} catch (com .svix .internal .ApiException e ) {
@@ -110,15 +115,17 @@ public EndpointHeadersOut getHeaders(final String appId, final String endpointId
110
115
}
111
116
}
112
117
113
- public void updateHeaders (final String appId , final String endpointId , final EndpointHeadersIn endpointHeadersIn ) throws ApiException {
118
+ public void updateHeaders (final String appId , final String endpointId , final EndpointHeadersIn endpointHeadersIn )
119
+ throws ApiException {
114
120
try {
115
121
api .v1EndpointUpdateHeaders (appId , endpointId , endpointHeadersIn );
116
122
} catch (com .svix .internal .ApiException e ) {
117
123
throw Utils .wrapInternalApiException (e );
118
124
}
119
125
}
120
126
121
- public void patchHeaders (final String appId , final String endpointId , final EndpointHeadersPatchIn endpointHeadersIn ) throws ApiException {
127
+ public void patchHeaders (final String appId , final String endpointId ,
128
+ final EndpointHeadersPatchIn endpointHeadersIn ) throws ApiException {
122
129
try {
123
130
api .v1EndpointPatchHeaders (appId , endpointId , endpointHeadersIn );
124
131
} catch (com .svix .internal .ApiException e ) {
@@ -127,46 +134,57 @@ public void patchHeaders(final String appId, final String endpointId, final Endp
127
134
}
128
135
129
136
public EndpointStats getStats (final String appId , final String endpointId ) throws ApiException {
137
+ return getStats (appId , endpointId , new EndpointStatsOptions ());
138
+ }
139
+
140
+ public EndpointStats getStats (final String appId , final String endpointId , final EndpointStatsOptions options )
141
+ throws ApiException {
130
142
try {
131
- return api .v1EndpointGetStats (appId , endpointId , null , null );
143
+ return api .v1EndpointGetStats (appId , endpointId , options . getSince (), options . getUntil () );
132
144
} catch (com .svix .internal .ApiException e ) {
133
145
throw Utils .wrapInternalApiException (e );
134
146
}
135
147
}
136
148
137
- public void replayMissing (final String appId , final String endpointId , final ReplayIn replayIn ) throws ApiException {
149
+ public void replayMissing (final String appId , final String endpointId , final ReplayIn replayIn )
150
+ throws ApiException {
138
151
this .replayMissing (appId , endpointId , replayIn , new PostOptions ());
139
152
}
140
153
141
- public void replayMissing (final String appId , final String endpointId , final ReplayIn replayIn , final PostOptions options ) throws ApiException {
154
+ public void replayMissing (final String appId , final String endpointId , final ReplayIn replayIn ,
155
+ final PostOptions options ) throws ApiException {
142
156
try {
143
157
api .v1EndpointReplay (appId , endpointId , replayIn , options .getIdempotencyKey ());
144
158
} catch (com .svix .internal .ApiException e ) {
145
159
throw Utils .wrapInternalApiException (e );
146
160
}
147
161
}
148
162
149
- public EndpointTransformationOut transformationGet (final String appId , final String endpointId ) throws ApiException {
163
+ public EndpointTransformationOut transformationGet (final String appId , final String endpointId )
164
+ throws ApiException {
150
165
try {
151
166
return api .v1EndpointTransformationGet (appId , endpointId );
152
167
} catch (com .svix .internal .ApiException e ) {
153
168
throw Utils .wrapInternalApiException (e );
154
169
}
155
170
}
156
171
157
- public void transformationPartialUpdate (final String appId , final String endpointId , final EndpointTransformationIn transformationIn ) throws ApiException {
172
+ public void transformationPartialUpdate (final String appId , final String endpointId ,
173
+ final EndpointTransformationIn transformationIn ) throws ApiException {
158
174
try {
159
175
api .v1EndpointTransformationPartialUpdate (appId , endpointId , transformationIn );
160
176
} catch (com .svix .internal .ApiException e ) {
161
177
throw Utils .wrapInternalApiException (e );
162
178
}
163
179
}
164
180
165
- public MessageOut sendExample (final String appId , final String endpointId , final EventExampleIn eventExampleIn ) throws ApiException {
181
+ public MessageOut sendExample (final String appId , final String endpointId , final EventExampleIn eventExampleIn )
182
+ throws ApiException {
166
183
return this .sendExample (appId , endpointId , eventExampleIn , new PostOptions ());
167
184
}
168
185
169
- public MessageOut sendExample (final String appId , final String endpointId , final EventExampleIn eventExampleIn , final PostOptions options ) throws ApiException {
186
+ public MessageOut sendExample (final String appId , final String endpointId , final EventExampleIn eventExampleIn ,
187
+ final PostOptions options ) throws ApiException {
170
188
try {
171
189
return api .v1EndpointSendExample (appId , endpointId , eventExampleIn , options .getIdempotencyKey ());
172
190
} catch (com .svix .internal .ApiException e ) {
0 commit comments