mirror of
https://github.com/ProtonMail/go-proton-api.git
synced 2025-12-23 15:47:52 -05:00
15 lines
426 B
Go
15 lines
426 B
Go
package proton
|
|
|
|
type ObservabilityBatch struct {
|
|
Metrics []ObservabilityMetric `json:"Metrics"`
|
|
}
|
|
|
|
type ObservabilityMetric struct {
|
|
Name string `json:"Name"`
|
|
Version int `json:"Version"`
|
|
Timestamp int64 `json:"Timestamp"` // Unix timestamp
|
|
Data interface{} `json:"Data"`
|
|
|
|
ShouldCache bool `json:"-"` // Internal field, indicating whether we should cache the given observability metric.
|
|
}
|