8.Управление логами платформы

POST Просмотр деталей доступа к шаблонам#

Статус интерфейса: Опубликован

URL интерфейса: POST {{API_PATH_V3}}/report/visit/log

Content-Type: application/json

Способ аутентификации: Аутентификация не требуется

Параметры body запроса.

json
{
    "page" : 1 ,
    "perPage" : 10 ,
    "startTime" : "2025-02-04 00:00:00" ,
    "endTime" : "2025-02-05 23:59:59" ,
    "usernameList" : [],
    "ipList" : [],
    "typeList" : [],
    "resourceList" : [],
    "templateNameList" : []
}

json
{
    "status": 200,
    "data": {
        "list": [
            {
                "uuid": "54a04570-4002-482c-b74f-a1482496790a",
                "time": 1738740950531,
                "id": "7c174972-ee19-4638-a3dd-4e2f0f0ddd65",
                "template": "Анализ admin/Функция/Примеры диаграмм/Примеры диаграмм",
                "forkId": null,
                "displayName": "Примеры диаграмм",
                "type": 101,
                "parameters": null,
                "ip": "109.252.154.7",
                "username": "admin(admin)",
                "userrole": "superusers",
                "consume": 35,
                "sql": null,
                "sqlTime": 0,
                "browser": "{\"browser\":\"CHROME/132.0\",\"OSInfo\":\"Windows\",\"terminal\":\"PC\"}",
                "memory": 0,
                "reportId": "26f391c21d134110812867268b53a19a",
                "userId": "21232f297a57a5a743894a0e4a801fc3",
                "complete": 0,
                "source": null,
                "sessionID": null,
                "node": null,
                "error": null,
                "webInfo": null,
                "lastMod": 0,
                "detail": null,
                "estimate": 0,
                "fineMarkId": null,
                "frFullVersion": null,
                "biFullVersion": null,
                "cloudVersion": null
            },
            {
                "uuid": "ddc1963e-138d-4188-a4c0-2957deecaf28",
                "time": 1738740945601,
                "id": "22a4e941-f793-476a-bc66-ce87e098b50b",
                "template": "Анализ admin/Бизнес-тема/Управление продажами/Панель продаж/Sales Director Real-time Dashboard",
                "forkId": null,
                "displayName": "Sales Director Real-time Dashboard",
                "type": 101,
                "parameters": null,
                "ip": "109.252.154.7",
                "username": "admin(admin)",
                "userrole": "superusers",
                "consume": 14,
                "sql": null,
                "sqlTime": 0,
                "browser": "{\"browser\":\"CHROME/132.0\",\"OSInfo\":\"Windows\",\"terminal\":\"PC\"}",
                "memory": 0,
                "reportId": "dcd1bfd1aba14f7488b6e1670e8272cb",
                "userId": "21232f297a57a5a743894a0e4a801fc3",
                "complete": 0,
                "source": null,
                "sessionID": null,
                "node": null,
                "error": null,
                "webInfo": null,
                "lastMod": 0,
                "detail": null,
                "estimate": 0,
                "fineMarkId": null,
                "frFullVersion": null,
                "biFullVersion": null,
                "cloudVersion": null
            },
            {
                "uuid": "8f4de7c9-eec5-490c-b859-6770c75d2357",
                "time": 1738740931360,
                "id": "4c87066a-798e-4db6-9e33-5d1e5f9f2bed",
                "template": "Песочница/Промышленное применение/Данные",
                "forkId": null,
                "displayName": "Данные",
                "type": 502,
                "parameters": null,
                "ip": "109.252.154.7",
                "username": "admin(admin)",
                "userrole": null,
                "consume": 0,
                "sql": null,
                "sqlTime": 0,
                "browser": "{\"browser\":\"CHROME/132.0\",\"OSInfo\":\"Windows\",\"terminal\":\"PC\"}",
                "memory": 0,
                "reportId": "63091c385a2142668a97e11012295f79",
                "userId": "21232f297a57a5a743894a0e4a801fc3",
                "complete": 0,
                "source": null,
                "sessionID": null,
                "node": null,
                "error": null,
                "webInfo": null,
                "lastMod": 0,
                "detail": null,
                "estimate": 0,
                "fineMarkId": null,
                "frFullVersion": null,
                "biFullVersion": null,
                "cloudVersion": null
            },
            {
                "uuid": "8e9189a6-dbd1-47a9-8d37-dfc4c4dc4f5a",
                "time": 1738665946175,
                "id": "7b03405d-368f-46df-bb87-2f709a8b0264",
                "template": "Анализ admin/Функция/Примеры диаграмм/Примеры диаграмм",
                "forkId": null,
                "displayName": "Функция/Примеры диаграмм",
                "type": 101,
                "parameters": "pubId:b506dec7ef7d4585a24ae172b019230f",
                "ip": "109.252.154.7",
                "username": "admin(admin)",
                "userrole": "superusers",
                "consume": 67,
                "sql": null,
                "sqlTime": 0,
                "browser": "{\"browser\":\"CHROME/132.0\",\"OSInfo\":\"Windows\",\"terminal\":\"PC\"}",
                "memory": 0,
                "reportId": "26f391c21d134110812867268b53a19a",
                "userId": "21232f297a57a5a743894a0e4a801fc3",
                "complete": 0,
                "source": null,
                "sessionID": null,
                "node": null,
                "error": null,
                "webInfo": null,
                "lastMod": 0,
                "detail": null,
                "estimate": 0,
                "fineMarkId": null,
                "frFullVersion": null,
                "biFullVersion": null,
                "cloudVersion": null
            }
        ],
        "totalCount": 4,
        "empty": false
    }
}

POST Просмотр логов действий пользователей#

Статус интерфейса: Опубликован

URL интерфейса: POST {{API_PATH_V3}}/user/behavior/log

Content-Type: application/json

Способ аутентификации: Аутентификация не требуется

Параметры body запроса.

json
{
    "page" : 1 , //page number
    "perPage" : 10 , //Data volume per page
    "startTime" : "2023-06-04 00:00:00" , // start time
    "endTime" : "2023-06-05 23:59:59" , //end time
    "usernameList": [
        "root(root)"
    ] //Operation user list
}

json
{
    "status" : 200 , //status
    "data": {
        "hasNext": false,
        "list": [
            {
                "viewNum" : 10 , //View count
                "printNum" : 0 , //print times
                "totalNum" : 10 , //Total number of operations
                "username" : "root(root)" , //user
                "exportNum" : 0 //Export times
            }
        ]
    } //Return data
}

POST Просмотр логов популярности шаблонов#

Статус интерфейса: Опубликован

URL интерфейса: POST {{API_PATH_V3}}/report/frequency/log

Content-Type: application/json

Способ аутентификации: Аутентификация не требуется

Параметры body запроса.

json
{
    "page" : 1 , //page number
    "perPage" : 10 , //Data volume per page
    "startTime" : "2023-06-04 00:00:00" , // start time
    "endTime" : "2023-06-05 23:59:59" , //end time
    "resourceList": [
        "WorkBook69.cpt"
    ] //Template name list
}

json
{
    "status" : 200 , //status
    "data": {
        "hasNext": false,
        "list": []
    } //Return data
}

POST Просмотр логов мониторинга производительности#

Статус интерфейса: Опубликован

URL интерфейса: POST {{API_PATH_V3}}/performance/log

Content-Type: application/json

Способ аутентификации: Аутентификация не требуется

Параметры body запроса.

json
{
    "page" : 1 , //page number
    "perPage" : 10 , //Data volume per page
    "startTime" : "2023-06-04 00:00:00" , // start time
    "endTime" : "2023-06-05 23:59:59" , //end time
    "typeList": [
        3
    ] // Operation type list
}

json
{
    "status" : 200 , //status
    "data": {
        "hasNext": false,
        "list": []
    } //Return data
}

POST Просмотр логов управления#

Статус интерфейса: Опубликован

URL интерфейса: POST {{API_PATH_V3}}/operate/log

Content-Type: application/json

Способ аутентификации: Аутентификация не требуется

Параметры body запроса.

json
{
    "page" : 1 , //page number
    "perPage" : 10 , //Data volume per page
    "startTime" : "2023-06-04 00:00:00" , // start time
    "endTime" : "2023-06-05 23:59:59" , //end time
    "usernameList" : [], //operate user list
    "ipList" : [], //operate IP list
    "typeList" : [], //module list
    "itemList" : [], //Set item list
    "operateList" : [] // Operation type list
}

json
{
    "status": 200,
    "data": {
        "list": [
            {
                "uuid": "5e288c77-26a1-4a48-8cac-ce118ca143ba",
                "time": 1685937418772,
                "type": "Dec-Management_Plugin",
                "item": "Dec-Management_Plugin",
                "resource": "com.tptj.plugin.hg.client.center.v10_2.3.48",
                "operate": "Dec-Log_Update",
                "username": "root(root)",
                "detail": null,
                "ip": "localhost",
                "requestParam": null,
                "status": 1,
                "platformDisplay": 1
            },
            {
                "uuid": "210b9204-e888-42e8-a441-489be7a459db",
                "time": 1685937409661,
                "type": "Dec-Management_Plugin",
                "item": "Dec-Management_Plugin",
                "resource": "com.tptj.plugin.hg.client.center.v10_2.3.48",
                "operate": "Dec-Log_Update",
                "username": "root(root)",
                "detail": null,
                "ip": "localhost",
                "requestParam": null,
                "status": 1,
                "platformDisplay": 1
            },
            {
                "uuid": "35baefc8-0230-49d0-9812-6338e909350c",
                "time": 1685936800233,
                "type": "Dec-Management_Plugin",
                "item": "Dec-Management_Plugin",
                "resource": "com.tptj.plugin.hg.client.center.v10_2.3.48",
                "operate": "Dec-Log_Update",
                "username": "root(root)",
                "detail": null,
                "ip": "localhost",
                "requestParam": null,
                "status": 1,
                "platformDisplay": 1
            },
            {
                "uuid": "6b10d63b-dfb6-4501-872e-1feaca8b1dc9",
                "time": 1685936794169,
                "type": "Dec-Management_Plugin",
                "item": "Dec-Management_Plugin",
                "resource": "com.tptj.plugin.hg.client.center.v10_2.3.48",
                "operate": "Dec-Log_Update",
                "username": "root(root)",
                "detail": null,
                "ip": "localhost",
                "requestParam": null,
                "status": 1,
                "platformDisplay": 1
            },
            {
                "uuid": "cea7d4ae-d538-40b1-bb25-05419ae4ce7c",
                "time": 1685935135964,
                "type": "Dec-Management_Plugin",
                "item": "Dec-Management_Plugin",
                "resource": "com.tptj.plugin.hg.client.center.v10_2.3.48",
                "operate": "Dec-Log_Update",
                "username": "root(root)",
                "detail": null,
                "ip": "localhost",
                "requestParam": null,
                "status": 1,
                "platformDisplay": 1
            },
            {
                "uuid": "89d162af-5027-4584-8335-1d72ce551fe5",
                "time": 1685935119138,
                "type": "Dec-Management_Plugin",
                "item": "Dec-Management_Plugin",
                "resource": "com.tptj.plugin.hg.client.center.v10_2.3.48",
                "operate": "Dec-Log_Update",
                "username": "root(root)",
                "detail": null,
                "ip": "localhost",
                "requestParam": null,
                "status": 1,
                "platformDisplay": 1
            },
            {
                "uuid": "c469fdf5-38b3-4a0c-8e6a-7370d776461d",
                "time": 1685934491412,
                "type": "Dec-Management_Plugin",
                "item": "Dec-Management_Plugin",
                "resource": "com.tptj.plugin.hg.client.center.v10_2.3.48",
                "operate": "Dec-Log_Update",
                "username": "root(root)",
                "detail": null,
                "ip": "localhost",
                "requestParam": null,
                "status": 1,
                "platformDisplay": 1
            },
            {
                "uuid": "71024eb1-a11f-4e1e-9055-a72ae9454473",
                "time": 1685934479670,
                "type": "Dec-Management_Plugin",
                "item": "Dec-Management_Plugin",
                "resource": "com.tptj.plugin.hg.client.center.v10_2.3.48",
                "operate": "Dec-Log_Update",
                "username": "root(root)",
                "detail": null,
                "ip": "localhost",
                "requestParam": null,
                "status": 1,
                "platformDisplay": 1
            },
            {
                "uuid": "c93c8351-09df-43e3-9b67-8c6d77181417",
                "time": 1685930530186,
                "type": "Dec-Management_Plugin",
                "item": "Dec-Management_Plugin",
                "resource": "com.fr.plugin.customsubmmit.v11_8.2.14",
                "operate": "Dec-Log_Add",
                "username": "root(root)",
                "detail": null,
                "ip": "localhost",
                "requestParam": null,
                "status": 1,
                "platformDisplay": 1
            },
            {
                "uuid": "0be1a603-3bf1-48f1-9d16-b40626b3eb2b",
                "time": 1685929701662,
                "type": "Dec-Management_Plugin",
                "item": "Dec-Management_Plugin",
                "resource": "com.fr.plugin.pdfpreview.v11_2.8.4",
                "operate": "Dec-Log_Add",
                "username": "root(root)",
                "detail": null,
                "ip": "localhost",
                "requestParam": null,
                "status": 1,
                "platformDisplay": 1
            }
        ],
        "totalCount": 60,
        "empty": false
    }
}

POST Просмотр логов ошибок шаблонов#

Статус интерфейса: Опубликован

URL интерфейса: POST {{API_PATH_V3}}/error/log

Content-Type: application/json

Способ аутентификации: Аутентификация не требуется

Параметры body запроса.

json
{
    "page" : 1 , //page number
    "perPage" : 10 , //Data volume per page
    "startTime" : "2023-06-04 00:00:00" , // start time
    "endTime" : "2023-06-05 23:59:59" , //end time
    "templateNameList" : [] //Template name list
}

json
{
    "status": 200,
    "data": {
        "pageSize": 100,
        "hasNext": false,
        "page": 1,
        "items": [
            {
                "msg": "文档处理报错:java.io.FileNotFoundException: \\114.224.207.144\\public\\历史需求归档\\新建 Microsoft Word 文档.docx (No such file or directory)\n\tat java.io.FileInputStream.open0(Native Method)\n\tat java.io.FileInputStream.open(FileInputStream.java:195)\n\tat java.io.FileInputStr",
                "code": "-1",
                "displayName": "",
                "count": 18,
                "visitNum": 10,
                "tname": "WorkBook3.cpt"
            }
        ]
    }
}