短期データ照会
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 | プロジェクトコード |
time | number | 検索時間 |
dbc_total | array | 検索結果 |
oid | number | エージェントID |
oname | string | エージェント名 |
databaseUrl | string | データベースURL |
active | number | 活性化状態のDB connection数 |
idle | number | 非活性化状態のDB connection数 |
total | number | DB connectionの総数(「active」+「idle」) |