StatsApi


Get stat summary

Get stat summary results.

URL

http://apis.wso2.com/api/appm/publisher/v1.1/apps/{appType}/stats/{statType}

HTTP Method

GET

Scope

appm:read

CURL Example

curl -X GET -H "Authorization: Bearer ede4387e36fbf87c802026f1240b7e5d" "http://localhost:9763/api/appm/publisher/v1.1/apps/webapp/stats/getAppUsagePerPage"

Sample Response

{"result": [{"apiName": "TravelBooking_admin(v1.0.0)","referer": "/travel/1.0.0/booking-step2.jsp","userId": "subscriber_admin","version": "1.0.0","count": 15,"context": "/travel"},{"apiName": "TravelBooking_admin(v1.0.0)","referer": "/travel/1.0.0/booking-step1.jsp","userId": "subscriber_admin","version": "1.0.0","count": 20,"context": "/travel"},{"apiName": "PlanYourTrip_admin(v1.0.0)","referer": "/planYourTrip/1.0.0","userId": "subscriber_admin","version": "1.0.0", "count": 10, "context": "/planYourTrip"}]}

Parameters

Type Name Description Schema Default
Path

appType

required

The App type (either Webapp/Mobile app).

String

Path

statType

required

The stat type. Supported stat types are [**getAppUsagePerPage, getSubscriptionCountsPerApp, getSubscriptionsPerApp, getAppUsagePerUser, getAppResponseTime, getCacheHit**]

Accepted values:

getAppUsagePerPage getSubscriptionCountsPerApp getSubscriptionsPerApp getAppUsagePerUser getAppResponseTime getCacheHit
String

Query

startTimeStamp

optional

The start date and time of the stat analysis in the following format: 2016-04-19 10:32:00

String

Query

endTimeStamp

optional

The end date and time of the stat analysis in the following format: 2016-04-19 10:32:00

String

Query

limit

optional

The limit of the number of records.

Integer

Header

Accept

optional

Media types acceptable for the response. Default is JSON.

String

JSON

Header

If-None-Match

optional

Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource.

String

Responses

HTTP Code Description Schema

200

OK.

StatSummary

400

Bad Request. Invalid request or validation error.

Error

403

Forbidden. The request must be conditional but no condition has been specified.

Error

404

Not Found. The resource to be updated does not exist.

Error