| All Verbs | /qry//metrics/e2e/slips/responses |
|---|
package dtos
type PaginatedQuery struct {
CurrentPage int `json:"currentPage,omitempty"`
PageSize int `json:"pageSize,omitempty"`
}
type ResponseMetrics struct {
Id int64 `json:"id,omitempty"`
Rqc int `json:"rqc,omitempty"`
Oc int `json:"oc,omitempty"`
Sc int `json:"sc,omitempty"`
Tc int `json:"tc,omitempty"`
Adr int `json:"adr,omitempty"`
}
type TimeResolution int
const (
TimeResolutionSecond TimeResolution = 1
TimeResolutionMinute TimeResolution = 2
TimeResolutionHour TimeResolution = 5
TimeResolutionDay TimeResolution = 10
)
type FindResponseMetrics struct {
PaginatedQuery
Resolution TimeResolution `json:"resolution,omitempty"`
TimepointFrom int64 `json:"timepointFrom,omitempty"`
TimepointTo int64 `json:"timepointTo,omitempty"`
}
type PaginatedResult[T any] struct {
Data []ResponseMetrics `json:"data"`
CurrentPage int64 `json:"currentPage,omitempty"`
PageSize int64 `json:"pageSize,omitempty"`
TotalItems int64 `json:"totalItems,omitempty"`
TotalPages int64 `json:"totalPages,omitempty"`
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /qry//metrics/e2e/slips/responses HTTP/1.1
Host: api.bettor.webhop.biz
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
resolution: 1,
timepointFrom: 0,
timepointTo: 0,
currentPage: 0,
pageSize: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
data:
[
{
id: 0,
rqc: 0,
oc: 0,
sc: 0,
tc: 0,
adr: 0
}
],
currentPage: 0,
pageSize: 0,
totalItems: 0,
totalPages: 0
}