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 Field | Field Type | Description |
---|---|---|
pcode | number | pcode |
time | number | Lookup time |
dbc_total | array | Lookup result |
oid | number | Agent ID |
oname | string | Agent name |
databaseUrl | string | Database URL |
active | number | Active DB connection count |
idle | number | Inactive DB connection count |
total | number | Total DB connection count (active + idle ) |