프로젝트 통계 조회
프로젝트 내 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 Field | Field Type | 설명 |
---|---|---|
elapsed | number | 시작 시간(stime ) 기준으로부터 경과 시간 |
count | number | HTTP 호출 건수 |
url | string | 클라이언트가 요청한 트랜잭션 이름 |