- Documentation
- User and Organization
- Query Menu Access Logs
Query Menu Access Logs¶
Query the user events on menu access.
Request Parameters (Query)¶
Name | Mandatory/Optional | Data Type | Description |
---|---|---|---|
orgId | Mandatory | String | OU ID |
Request Parameters (Body)¶
Response Parameters¶
Name | Data Type | Description |
---|---|---|
data | Data Struct | Event information |
Data Struct¶
Name | Data Type | Description |
---|---|---|
pagination | Pagination Struct | Pagination information |
logs | EventLogDTO Struct | Event list |
EventLogDTO Struct¶
Name | Data Type | Description |
---|---|---|
subjectId | String | Event ID |
subjectType | String | Event type |
subjectName | String | Event name |
upstreamId | String | The parent object ID of the event |
upstreamType | String | The parent object type of the event |
upstreamName | String | The parent object name of the event |
organizationId | String | The OU ID to which the event belongs |
userId | String | The user ID that triggers the event |
eventTime | String | The time when the event occurs |
Error Codes¶
Error Code | Description |
---|---|
31400 | Application not purchased or invalid time |
31404 | OU does not exist |
Samples¶
Request Sample¶
url: https://{apigw-address}/app-portal-service/v2.3/event/log/query
method: POST
requestBody:
{
"pagination":{
"pageSize":2,
"pageNo":0
},
"startTime": 1660177000000,
"endTime": 1660177679000
}
Return Sample¶
{
"code": 0,
"message": "OK",
"data": {
"pagination":{
"totalElements":15000,
"pageSize":2,
"pageNo":0
},
"logs": [
{
"subjectId": "5244f6e8-522c-43f6-af4e-e85753075c69",
"subjectName": "{\"default\":\"uic\",\"en_US\":\"uic\",\"zh_CN\":\"uic\"}",
"subjectType": "app",
"organizationId": "o16256470964341135",
"userId": "u16297756000141974",
"eventTime": "2022-08-11 08:25:32.0"
},
{
"subjectId": "1e44f6c4-22ae-43d2-a512-72a6c3289870",
"subjectName": "{\"default\":\"5180\",\"en_US\":\"5180\",\"zh_CN\":\"8599\"}",
"subjectType": "menu",
"upstreamId": "5244f6e8-522c-43f6-af4e-e85753075c69",
"upstreamType": "app",
"upstreamName": "{\"default\":\"测试应用\",\"en_US\":\"uic\",\"zh_CN\":\"uic\"}",
"organizationId": "o16256470964341135",
"userId": "u16297756000141974",
"eventTime": "2022-08-11 08:27:57.0"
}
]
}
}