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 Field | Field Type | Description |
---|---|---|
pcode | number | Queried projected code |
act_agent | string | Active agent count |
inact_agent | string | Inactive agent count |
host | string | Host count |
cpucore | string | Sum of CPU cores of the host |
txcount | string | Transaction count |
tps | string | TPS |
user | string | Active users (5 minutes) |
actx | string | Active transactions |
rtime | string | Average response time |
cpu | string | Average CPU utilization |
threadpool_active | string | Active thread count of the thread pool |
threadpool_queue | string | Queuing thread count of the thread pool |
dbconn_total | string | Total DB connection count |
dbconn_act | string | Active DB connection count |
dbconn_idle | string | Inactive (Idle) DB connection count |
act_method | string | Active method count |
act_sql | string | Active SQL count |
act_httpc | string | Active HTTP call count |
act_dbc | string | Active DB connection count |
act_socket | string | Active socket count |
apdex | string | Apdex(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 Field | Field Type | Description |
---|---|---|
host_ip | string | IP address of the host where the agent is located |
oname | string | Agent name |
active | boolean | Whether the agent is active (Active: true , Inactive: false ) |