mirror of
https://github.com/ProtonMail/go-proton-api.git
synced 2025-12-23 15:47:52 -05:00
14 lines
317 B
Go
14 lines
317 B
Go
package proton
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/go-resty/resty/v2"
|
|
)
|
|
|
|
func (c *Client) SendObservabilityBatch(ctx context.Context, req ObservabilityBatch) error {
|
|
return c.do(ctx, func(r *resty.Request) (*resty.Response, error) {
|
|
return r.SetHeader("Priority", "u=6").SetBody(req).Post("/data/v1/metrics")
|
|
})
|
|
}
|