本文へスキップ

プロジェクト統計照会

プロジェクト内のTPS

GET https://api.whatap.io/open/api/raw/tag/app_counter/tps?stitme=[stime]&etime=[etime]&timeMerge=[timeMerge]

command
$ curl -L -w "\n" -H "x-whatap-token: {{PROJECT API TOKEN}}" -H "x-whatap-pcode: {{projectCode}}" "https://api.whatap.io/open/api/raw/tag/app_counter/tps?stime=1554163200000&etime=1554422400000&timeMerge=avg"
response
66.0

プロジェクト内の平均応答時間

GET https://api.whatap.io/open/api/raw/tag/app_counter/resp_time?stitme=[stime]&etime=[etime]&timeMerge=[timeMerge]

command
$ curl -L -w "\n" -H "x-whatap-token: {{PROJECT API TOKEN}}" -H "x-whatap-pcode: {{projectCode}}" "https://api.whatap.io/open/api/raw/tag/app_counter/resp_time?stime=1554163200000&etime=1554422400000&timeMerge=avg"
response
1640

プロジェクトの平均CPU使用率

GET https://api.whatap.io/open/api/raw/tag/app_host_resource/cpu?stitme=[stime]&etime=[etime]&timeMerge=[timeMerge]

command
$ curl -L -w "\n" -H "x-whatap-token: {{PROJECT API TOKEN}}" -H "x-whatap-pcode: {{projectCode}}" "https://api.whatap.io/open/api/raw/tag/app_host_resource/cpu?stime=1554163200000&etime=1554422400000&timeMerge=avg"
response
11.05

プロジェクト内のデータソースあたりのDB Connection数

GET https://api.whatap.io/open/api/tag/db_pool_detail/dbconn?stitme=[stime]&etime=[etime]&timeMerge=[timeMerge]

command
$ curl -L -w "\n" -H "x-whatap-token: {{PROJECT API TOKEN}}" -H "x-whatap-pcode: {{projectCode}}" "https://api.whatap.io/open/api/tag/db_pool_detail/dbconn?stime=1554163200000&etime=1554422400000&timeMerge=avg"
response
{
"pcode":35,
"time":1554163200000,
"dbc_total":[
{
"oid":-963710734,
"oname":"TC-29-96-8082",
"jdbc:db:virtual":"jdbc:db:virtual",
"active":49,
"idle":51,
"total":100
},
]
}

IPベースのトランザクション検索

ユーザーが指定した開始時間(stime)から1時間、特定IPがリクエストしたトランザクションに対して呼び出し件数の多い順にソートして最大100件のURLリストを送信します。

POST https://api.whatap.io/open/api/v2/yard/flush

command
curl --location 'https://api.whatap.io/open/api/v2/yard/flush' \
--header 'x-whatap-token: {{PROJECT API TOKEN}}' \
--header 'x-whatap-pcode: {{projectCode}}' \
--header 'Content-Type: application/json' \
--data '{
"type": "profiles",
"path": "/filter/search",
"pcode": "{{projectCode}}",
"params": {
"stime": {{stime}},
"filter": {
"ip": "{{ip}}"
}
}
}'
Response FieldField Type説明
elapsednumber開始時間(stime) 基準からの経過時間
countnumberHTTPコール件数
urlstringクライアントがリクエストしたトランザクション名