Skip to main content

Viewing the short-term information

GET https://api.whatap.io/open/json/tag/db_pool_detail/dbconn

command
$ curl -L -w "\n" -H "x-whatap-token: {{PROJECT API TOKEN}}" -H "x-whatap-pcode: {{projectCode}}" "https://dev.whatap.io/open/api/json/tag/db_pool_detail/dbconn?etime=1667520000000"
response
{
"pcode": 17,
"time": 1667467012037,
"dbc_total": [
{
"oid": -959062357,
"oname": "TC-0-1-8087",
"databaseUrl": "jdbc:db:virtual",
"active": 63,
"idle": 37,
"total": 100
},
{
"oid": -1311576515,
"oname": "TC-0-1-8086",
"databaseUrl": "jdbc:db:virtual",
"active": 10,
"idle": 90,
"total": 100
}
]
}
Response FieldField TypeDescription
pcodenumberpcode
timenumberLookup time
dbc_totalarrayLookup result
oidnumberAgent ID
onamestringAgent name
databaseUrlstringDatabase URL
activenumberActive DB connection count
idlenumberInactive DB connection count
totalnumberTotal DB connection count (active + idle)