| All Verbs | /qry//metrics/e2e/slips/responses |
|---|
const std = @import("std");
pub const PaginatedQuery = struct {
currentPage: i32 = 0,
pageSize: i32 = 0,
};
pub const ResponseMetrics = struct {
id: i64 = 0,
rqc: i32 = 0,
oc: i32 = 0,
sc: i32 = 0,
tc: i32 = 0,
adr: i32 = 0,
};
pub const TimeResolution = enum(i32) {
Second = 1,
Minute = 2,
Hour = 5,
Day = 10,
};
pub const FindResponseMetrics = struct {
currentPage: i32 = 0,
pageSize: i32 = 0,
resolution: ?TimeResolution = null,
timepointFrom: i64 = 0,
timepointTo: i64 = 0,
};
pub fn PaginatedResult(comptime T: type) type {
return struct {
data: []ResponseMetrics = &.{},
currentPage: i64 = 0,
pageSize: i64 = 0,
totalItems: i64 = 0,
totalPages: i64 = 0,
};
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
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/jsonl
Content-Type: text/jsonl
Content-Length: length
{"resolution":1,"timepointFrom":0,"timepointTo":0,"currentPage":0,"pageSize":0}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"data":[{"id":0,"rqc":0,"oc":0,"sc":0,"tc":0,"adr":0}],"currentPage":0,"pageSize":0,"totalItems":0,"totalPages":0}