Skip to main content

Statistics

Use this API to fetch the data for the provided statistics type in the request.

Resource Informations

NameValue
Requires authentication?Yes
Rate limited?No

Request

Request headers

KeyValue
AuthorizationBearer token
Content-Typeapplication/json

HTTP request URL for SSMS

POST https://{tenantId}.{hostname}/digitanium/v4/monitor/statistics/{statisticType}

HTTP request URL for SHIFT

POST https://{hostname}/auth/realms/{tenantId}/v3_monitor/statistics/{statisticType}
note

At this moment, this API is applicable only for SSMS based installations.

note

API requests must be made over https. Calls made over plain http will fail.

Parameters

No Parameter fields are required

Request body

Field NameTypeDescription
statisticParameterList(String)The parameters which are respective to statistics type must be given properly. Some types may or may not have parameters. For device risk type alone it will have two parameters in list.

Statistic type

statisticTypestatisticParameter
APP_CLIENT_TYPESno parameters
APP_CLIENT_VERSIONSone parameter - client type {ANDROID_ARM, WINDOWS, MAC_OS, ANDROID_x86, iOS_ARMv7s, iOS_ARM64,WindowsPhone_ARMV7, WindowsPhone_Emu, iOS_ARMv7}
FIRMWARE_VERSIONSone parameter - device type {MIDENTITY_MINI, MIDENTITY_AIR_PLUS, MIDENTITY_AIR}
DEVICE_TYPESno parameters
LOCKED_USERSno parameters
LOCKED_DEVICESno parameters
OS_VERSIONSone parameter - client type {ANDROID_ARM, iOS_ARMv7, WINDOWS, MAC_OS, ANDROID_x86, iOS_ARMv7s, iOS_ARM64, WindowsPhone_ARMV7, WindowsPhone_Emu}
DEVICE_RISKStwo parameters - start date (yyyy-MM-dd) and end date (yyyy-MM-dd)

Sample Request

{
"statisticParameters": [
"yyyy-MM-DD","yyyy-MM-DD"
]
}

Response

Field NameTypeDescription
messageStringMessage explains result of the API call. Refer Response status Information for details.
statusStringThe status of the API call. Refer Response status Information for details.
subSystemIntegersubSystem categorizes the type of API that has been called. Refer Subsystem details for details.
dataArrayList of all details for the given statisticType.

Sample Response

{
"subSystem": 4,
"status": "OK",
"message": "Statistic data fetched successfully",
"data": [
{
"Type": "ANDROID_ARM",
"Count": "0"
},
{
"Type": "ANDROID_x86",
"Count": "4"
}
]
}

Response Status Information

Status CodeStatusMessage
200OKStatistic data fetched successfully
400BAD_REQUESTFailed to convert value of type 'java.lang.String'
401UnauthorizedHTTP 401 Unauthorized