| All Verbs | /qry//metrics/e2e/slips/responses |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
import com.google.gson.annotations.*
import com.google.gson.reflect.*
open class FindResponseMetrics : PaginatedQuery()
{
open var resolution:TimeResolution? = null
open var timepointFrom:Long? = null
open var timepointTo:Long? = null
}
open class PaginatedQuery
{
open var currentPage:Int? = null
open var pageSize:Int? = null
}
enum class TimeResolution(val value:Int)
{
@SerializedName("1") Second(1),
@SerializedName("2") Minute(2),
@SerializedName("5") Hour(5),
@SerializedName("10") Day(10),
}
open class PaginatedResult<T> : IPaginatedResult
{
@SerializedName("data") open var Data:ArrayList<ResponseMetrics> = ArrayList<ResponseMetrics>()
override var currentPage:Long? = null
override var pageSize:Long? = null
override var totalItems:Long? = null
override var totalPages:Long? = null
}
open class ResponseMetrics
{
open var id:Long? = null
open var rqc:Int? = null
open var oc:Int? = null
open var sc:Int? = null
open var tc:Int? = null
open var adr:Int? = null
}
Kotlin FindResponseMetrics DTOs
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.sbbet.ath.cx
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
}