Change client metrics api path to client_perf (#26985)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
6c674c7331
Коммит
f0121d4f23
@@ -588,8 +588,8 @@ func (c *Client4) bookmarkRoute(channelId, bookmarkId string) string {
|
||||
return fmt.Sprintf(c.bookmarksRoute(channelId)+"/%v", bookmarkId)
|
||||
}
|
||||
|
||||
func (c *Client4) perfMetricsRoute() string {
|
||||
return "/perf"
|
||||
func (c *Client4) clientPerfMetricsRoute() string {
|
||||
return "/client_perf"
|
||||
}
|
||||
|
||||
func (c *Client4) DoAPIGet(ctx context.Context, url string, etag string) (*http.Response, error) {
|
||||
@@ -8858,7 +8858,7 @@ func (c *Client4) SubmitClientMetrics(ctx context.Context, report *PerformanceRe
|
||||
if err != nil {
|
||||
return nil, NewAppError("SubmitClientMetrics", "api.marshal_error", nil, "", http.StatusInternalServerError).Wrap(err)
|
||||
}
|
||||
res, err := c.DoAPIPostBytes(ctx, c.perfMetricsRoute(), buf)
|
||||
res, err := c.DoAPIPostBytes(ctx, c.clientPerfMetricsRoute(), buf)
|
||||
if err != nil {
|
||||
return BuildResponse(res), err
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user