Skip to content

Commit 10fcdeb

Browse files
feat(tem): add support for DomainStatistics (#1471)
Co-authored-by: Rémy Léone <[email protected]>
1 parent 97cbfed commit 10fcdeb

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

api/tem/v1alpha1/tem_sdk.go

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,11 +222,21 @@ type Domain struct {
222222
// DkimConfig: dKIM public key, as should be recorded in the DNS zone
223223
DkimConfig string `json:"dkim_config"`
224224
// Statistics: domain's statistics
225-
Statistics *Statistics `json:"statistics"`
225+
Statistics *DomainStatistics `json:"statistics"`
226226

227227
Region scw.Region `json:"region"`
228228
}
229229

230+
type DomainStatistics struct {
231+
TotalCount uint32 `json:"total_count"`
232+
233+
SentCount uint32 `json:"sent_count"`
234+
235+
FailedCount uint32 `json:"failed_count"`
236+
237+
CanceledCount uint32 `json:"canceled_count"`
238+
}
239+
230240
// Email: email
231241
type Email struct {
232242
// ID: technical ID of the email

0 commit comments

Comments
 (0)