OAuth2 Token Metrics REST API
The OAuth2 token-based API is used to fetch the metrics for OAuth2 token across all APIs.
Method: GET
URL: /v4/abs/oauthtokens?later_date=<yy-mm-dd>T<hh:mm>&earlier_date==<yy-mm-dd>T<hh:mm>
Header | Value | |
---|---|---|
Access Key |
|
|
Secret Key |
|
|
Sample response
{
"company": "ping identity",
"name": "oauth_token_metrics",
"description": "This report contains a summary and detailed oauth token
metrics across all APIs",
"earlier_date": "Tue Feb 13 18:00:00:000 2018",
"later_date": "Sun Feb 18 18:00:00:000 2018",
"summary": {
"tokens": 30,
"total_requests": 163250
},
"details": [
{
"token": "token_highresptime",
"total_requests": 2,
"ip_list": [
{
"ip": "127.0.0.1",
"total_requests": 2,
"devices": {
"UNKNOWN": 2
},
"methods": {
"GET": 2
},
"urls": {
"/2_atm_app_oauth/longresponse": 1,
"/atm_app_oauth/longresponse": 1
},
"apis": {
"atm_app_oauth": 1,
"2_atm_app_oauth": 1
}
}
]
},
{
"token": "token10",
"total_requests": 4596,
"ip_list": [
{
"ip": "127.0.0.1",
"total_requests": 4596,
"devices": {
"UNKNOWN": 4596
},
"methods": {
"DELETE": 148,
"POST": 1036,
"GET": 1796,
"PUT": 1616
},
"urls": {
"/2_atm_app_oauth/put200": 656,
"/atm_app_oauth/delete200": 68,
"/2_atm_app_oauth/put400": 152,
"/atm_app_oauth/delete400": 6
},
"apis": {
"atm_app_oauth": 2298,
"2_atm_app_oauth": 2298
}
}
]
},
{
"token": "token14",
"total_requests": 7604,
"ip_list": [
{
"ip": "127.0.0.1",
"total_requests": 7604,
"devices": {
"UNKNOWN": 7604
},
"methods": {
"DELETE": 1596,
"POST": 160,
"GET": 4000,
"PUT": 1848
},
"urls": {
"/2_atm_app_oauth/put200": 846,
"/atm_app_oauth/delete200": 742,
"/2_atm_app_oauth/put400": 78,
"/2_atm_app_oauth/get400": 264
},
"apis": {
"atm_app_oauth": 3802,
"2_atm_app_oauth": 3802
}
}
]
},
{
"token": "token_type2memory",
"total_requests": 2,
"ip_list": [
{
"ip": "127.0.0.1",
"total_requests": 2,
"devices": {
"UNKNOWN": 2
},
"methods": {
"POST": 2
},
"urls": {
"/2_atm_app_oauth/post200": 1,
"/atm_app_oauth/post200": 1
},
"apis": {
"atm_app_oauth": 1,
"2_atm_app_oauth": 1
}
}
]
},
{
"token": "token_method",
"total_requests": 2,
"ip_list": [
{
"ip": "127.0.0.1",
"total_requests": 2,
"devices": {
"UNKNOWN": 2
},
"methods": {
"HEAD": 2
},
"urls": {
"/2_atm_app_oauth/get400": 1,
"/atm_app_oauth/get400": 1
},
"apis": {
"atm_app_oauth": 1,
"2_atm_app_oauth": 1
}
}
]
}
]
}