本文へスキップ

Spot情報照会

すべての情報照会

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 FieldField Type説明
pcodenumber取得したプロジェクトコード
act_agentstringアクティベーション状態のエージェント数
inact_agentstring非アクティブ状態のエージェント数
hoststringホスト(HOST) 数
cpucorestringホストCPUコアの合計数
txcountstringトランザクション数
tpsstringTPS
ユーザーstringアクティブユーザー(5分)
actxstringアクティブトランザクション
rtimestring平均応答時間
cpustring平均CPU使用率
threadpool_activestringスレッドプールのアクティブスレッド数
threadpool_queuestringスレッドプールのキューイングスレッド数
dbconn_totalstring全体DB Connection数
dbconn_actstringアクティブ(Active) DB 接続の数
dbconn_idlestring非アクティブな (idle) DB 接続の数
act_methodstringアクティブMethod数
act_sqlstringアクティブSQL数
act_httpcstringアクティブHTTP Call数
act_dbcstringアクティブDB Connection数
act_socketstringアクティブSocket数
apdexstringApdex(Application Performance Index, アプリケーションのユーザー満足度)

アクティブ状態のエージェント数

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//アクティブエージェント数

非アクティブ状態のエージェント数

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//非アクティブなエージェント数

ホスト(HOST) 数

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//ホスト数

ホストCPUコアの合計

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コア数

トランザクション数

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//トランザクション数

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//毎秒処理されたトランザクション数(TPS)

アクティブユーザ(5分)

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//5分間のリアルタイムユーザー数
ノート

WhaTapは、直前5分以内にトランザクションを行ったユーザをカウントし、同時ユーザを測定します。

アクティブトランザクション

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//アクティブトランザクション数

平均応答時間

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//平均応答時間

CPUの平均使用率

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//CPUの平均使用率

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

アクティブ/非アクティブ状態のエージェント情報

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 FieldField Type説明
host_ipstringエージェントが配置されているホストのIPアドレス
onamestringエージェント名
activebooleanエージェントのアクティブ化の有無 (アクティブ:true、非アクティブ:false)