Skip to main content

Viewing the project statistics

TPS in the project

GET https://api.whatap.io/open/api/raw/tag/app_counter/tps?stitme=[stime]&etime=[etime]&timeMerge=[timeMerge]

command
$ curl -L -w "\n" -H "x-whatap-token: {{PROJECT API TOKEN}}" -H "x-whatap-pcode: {{projectCode}}" "https://api.whatap.io/open/api/raw/tag/app_counter/tps?stime=1554163200000&etime=1554422400000&timeMerge=avg"
response
66.0

Average response time in the project

GET https://api.whatap.io/open/api/raw/tag/app_counter/resp_time?stitme=[stime]&etime=[etime]&timeMerge=[timeMerge]

command
$ curl -L -w "\n" -H "x-whatap-token: {{PROJECT API TOKEN}}" -H "x-whatap-pcode: {{projectCode}}" "https://api.whatap.io/open/api/raw/tag/app_counter/resp_time?stime=1554163200000&etime=1554422400000&timeMerge=avg"
response
1640

Average CPU utilization in the project

GET https://api.whatap.io/open/api/raw/tag/app_host_resource/cpu?stitme=[stime]&etime=[etime]&timeMerge=[timeMerge]

command
$ curl -L -w "\n" -H "x-whatap-token: {{PROJECT API TOKEN}}" -H "x-whatap-pcode: {{projectCode}}" "https://api.whatap.io/open/api/raw/tag/app_host_resource/cpu?stime=1554163200000&etime=1554422400000&timeMerge=avg"
response
11.05

DB connection counts for each data source in the project

GET https://api.whatap.io/open/api/tag/db_pool_detail/dbconn?stitme=[stime]&etime=[etime]&timeMerge=[timeMerge]

command
$ curl -L -w "\n" -H "x-whatap-token: {{PROJECT API TOKEN}}" -H "x-whatap-pcode: {{projectCode}}" "https://api.whatap.io/open/api/tag/db_pool_detail/dbconn?stime=1554163200000&etime=1554422400000&timeMerge=avg"
response
{
"pcode":35,
"time":1554163200000,
"dbc_total":[
{
"oid":-963710734,
"oname":"TC-29-96-8082",
"jdbc:db:virtual":"jdbc:db:virtual",
"active":49,
"idle":51,
"total":100
},
]
}

For one hour from the user-specified start time (stime), transactions requested by a specific IP are sorted in descending order of the call count and up to 100 URLs are delivered.

POST https://api.whatap.io/open/api/v2/yard/flush

command
curl --location 'https://api.whatap.io/open/api/v2/yard/flush' \
--header 'x-whatap-token: {{PROJECT API TOKEN}}' \
--header 'x-whatap-pcode: {{projectCode}}' \
--header 'Content-Type: application/json' \
--data '{
"type": "profiles",
"path": "/filter/search",
"pcode": "{{projectCode}}",
"params": {
"stime": {{stime}},
"filter": {
"ip": "{{ip}}"
}
}
}'
Response FieldField TypeDescription
elapsednumberElapsed time from the start time (stime)
countnumberHTTP Call Count
urlstringName of the transaction requested by the client