Skip to main content

Spot information API

Viewing all information

GET https://api.whatap.io/open/api/json/spot

command
curl -L -w "\n" -H "x-whatap-token: {{PROJECT API TOKEN}}" -H "x-whatap-pcode: {{projectCode}}" "https://api.whatap.io/open/api/json/spot"
response
{
"pcode": 8,
"act_agent": "6",
"inact_agent": "6",
"host": "1",
"cpucore": "2",
"txcount": "459",
"tps": "93.07",
"user": "1007",
"actx": "149",
"rtime": "1873",
"cpu": "29.35",
"threadpool_active": "0",
"threadpool_queue": "0",
"dbconn_total": "600.0",
"dbconn_act": "239.0",
"dbconn_idle": "361.0",
"act_method": "51",
"act_sql": "24",
"act_httpc": "64",
"act_dbc": "10",
"act_socket": "0",
"apdex": "0.9871"
}
Response FieldField TypeDescription
pcodenumberQueried projected code
act_agentstringActive agent count
inact_agentstringInactive agent count
hoststringHost count
cpucorestringSum of CPU cores of the host
txcountstringTransaction count
tpsstringTPS
userstringActive users (5 minutes)
actxstringActive transactions
rtimestringAverage response time
cpustringAverage CPU utilization
threadpool_activestringActive thread count of the thread pool
threadpool_queuestringQueuing thread count of the thread pool
dbconn_totalstringTotal DB connection count
dbconn_actstringActive DB connection count
dbconn_idlestringInactive (Idle) DB connection count
act_methodstringActive method count
act_sqlstringActive SQL count
act_httpcstringActive HTTP call count
act_dbcstringActive DB connection count
act_socketstringActive socket count
apdexstringApdex(Application Performance Index, user satisfaction with the application)

Active agent count

GET https://api.whatap.io/open/api/act_agent

command
$ curl -L -w "\n" -H "x-whatap-token: {{PROJECT API TOKEN}}" -H "x-whatap-pcode: {{projectCode}}" "https://api.whatap.io/open/api/act_agent"
response
5 // Active agent count

Inactive agent count

GET https://api.whatap.io/open/api/inact_agent

command
$ curl -L -w "\n" -H "x-whatap-token: {{PROJECT API TOKEN}}" -H "x-whatap-pcode: {{projectCode}}" "https://api.whatap.io/open/api/inact_agent"
response
1 // Inactive agent count

Host count

GET https://api.whatap.io/open/api/host

command
$ curl -L -w "\n" -H "x-whatap-token: {{PROJECT API TOKEN}}" -H "x-whatap-pcode: {{projectCode}}" "https://api.whatap.io/open/api/host"
response
2 // Host count

Sum of CPU cores of the host

GET https://api.whatap.io/open/api/cpucore

command
$ curl -L -w "\n" -H "x-whatap-token: {{PROJECT API TOKEN}}" -H "x-whatap-pcode: {{projectCode}}" "https://api.whatap.io/open/api/cpucore"
response
16 // CPU core count

Transaction count

GET https://api.whatap.io/open/api/txcount

command
$ curl -L -w "\n" -H "x-whatap-token: {{PROJECT API TOKEN}}" -H "x-whatap-pcode: {{projectCode}}" "https://api.whatap.io/open/api/txcount"
response
469 // Transaction count

TPS

GET https://api.whatap.io/open/api/tps

command
$ curl -L -w "\n" -H "x-whatap-token: {{PROJECT API TOKEN}}" -H "x-whatap-pcode: {{projectCode}}" "https://api.whatap.io/open/api/tps"
response
92.03 // Number of transactions processed per second (Transaction per second, TPS)

Active users (5 minutes)

GET https://api.whatap.io/open/api/user

command
$ curl -L -w "\n" -H "x-whatap-token: {{PROJECT API TOKEN}}" -H "x-whatap-pcode: {{projectCode}}" "https://api.whatap.io/open/api/user"
response
1007 // Real-time user count for 5 minutes
Note

WhaTap measures concurrent users by counting them who issued transactions within the last 5 minutes.

Active transactions

GET https://api.whatap.io/open/api/actx

command
$ curl -L -w "\n" -H "x-whatap-token: {{PROJECT API TOKEN}}" -H "x-whatap-pcode: {{projectCode}}" "https://api.whatap.io/open/api/actx"
response
171 // Active transaction count

Average response time

GET https://api.whatap.io/open/api/rtime

command
$ curl -L -w "\n" -H "x-whatap-token: {{PROJECT API TOKEN}}" -H "x-whatap-pcode: {{projectCode}}" "https://api.whatap.io/open/api/rtime"
response
1644 // Average response time

Average CPU utilization

GET https://api.whatap.io/open/api/cpu

command
$ curl -L -w "\n" -H "x-whatap-token: {{PROJECT API TOKEN}}" -H "x-whatap-pcode: {{projectCode}}" "https://api.whatap.io/open/api/cpu"
response
9.26 // Average CPU utilization

Apdex

GET https://api.whatap.io/open/api/apdex

command
$ curl -L -w "\n" -H "x-whatap-token: {{PROJECT API TOKEN}}" -H "x-whatap-pcode: {{projectCode}}" "https://api.whatap.io/open/api/apdex"
response
0.9871

Active/inactive agent information

GET https://api.whatap.io/open/json/agents

command
$ curl -L -w "\n" -H "x-whatap-token: {{PROJECT API TOKEN}}" -H "x-whatap-pcode: {{projectCode}}" "https://api.whatap.io/open/json/agents"
response
{
"data": [
{
"host_ip": "127.0.0.1",
"oname": "TC-0-1-8087",
"active": true
},
{
"host_ip": "127.0.0.1",
"oname": "TC-0-1-8086",
"active": true
}
]
}
Response FieldField TypeDescription
host_ipstringIP address of the host where the agent is located
onamestringAgent name
activebooleanWhether the agent is active (Active: true, Inactive: false)