调研:收集当前 smartpanel / page 的资源使用情况 #85

Open
opened 2025-02-10 14:10:44 +08:00 by liangyuanpeng · 4 comments

例如 内存占用

  1. smartpanel
  2. smartpanel 打开的 page, 例如 simplepage,fbpage

服务器会开放一个接口用来接收该信息: https://smartoilets.net/openapi/api/api/v1/app/info/collect

提醒:接口添加token

该issue提到两个内容, 1. smartpanel app 使用的内存 2. simplepage/fbpage 页面使用到的内存

例如 内存占用 1. smartpanel 2. smartpanel 打开的 page, 例如 simplepage,fbpage 服务器会开放一个接口用来接收该信息: https://smartoilets.net/openapi/api/api/v1/app/info/collect 提醒:接口添加token 该issue提到两个内容, 1. smartpanel app 使用的内存 2. simplepage/fbpage 页面使用到的内存
liangyuanpeng added the
kind/feature
label 2025-02-10 14:10:44 +08:00
jeff was assigned by liangyuanpeng 2025-02-25 10:37:27 +08:00
Author
Owner

image

![image](/attachments/f0d704b3-7a35-4f70-ad9f-d24399839c5b)
Owner

curl --request POST
--url https://smartoilets.net/openapi/api/api/v1/app/info/collect
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJzbWFydG9pbGV0cy11c2VycyIsInN1YiI6InNtYXJ0b2lsZXRzLXVzZXJzIiwiaXNzIjoic21hcnRvaWxldHMiLCJ1c2VyTmFtZSI6Imt3aGRldiIsInR5cGUiOiJ1c2VyIiwidXNlcklkIjo0MSwiZXhwIjoxNzQwOTg4NTM4fQ.ZRof0kRdYHPO68bF4WeIK-BXGR1Me1aIRzqHVlDunYU'
--header 'Content-Type: application/json'
--header 'User-Agent: insomnia/10.3.1'
--data '{
"data":{
"memory": "123",
"other": "test"
}
}'

提交后报 400

curl --request POST \ --url https://smartoilets.net/openapi/api/api/v1/app/info/collect \ --header 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJzbWFydG9pbGV0cy11c2VycyIsInN1YiI6InNtYXJ0b2lsZXRzLXVzZXJzIiwiaXNzIjoic21hcnRvaWxldHMiLCJ1c2VyTmFtZSI6Imt3aGRldiIsInR5cGUiOiJ1c2VyIiwidXNlcklkIjo0MSwiZXhwIjoxNzQwOTg4NTM4fQ.ZRof0kRdYHPO68bF4WeIK-BXGR1Me1aIRzqHVlDunYU' \ --header 'Content-Type: application/json' \ --header 'User-Agent: insomnia/10.3.1' \ --data '{ "data":{ "memory": "123", "other": "test" } }' 提交后报 400
Owner

image

![image](/attachments/3fa13739-d070-4f3c-b3da-f1f4d542d2a8)
105 KiB
liangyuanpeng was assigned by jeff 2025-03-02 16:32:48 +08:00
jeff removed their assignment 2025-03-02 16:32:50 +08:00
Author
Owner

需要添加deviceId参数

{
  "data":{
     "memory":"1"
   },
  "deviceId":"123"
}
需要添加deviceId参数 ``` { "data":{ "memory":"1" }, "deviceId":"123" } ```
liangyuanpeng removed their assignment 2025-03-04 09:51:43 +08:00
jeff was assigned by liangyuanpeng 2025-03-04 09:51:43 +08:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: smartoilets-front/projects#85
No description provided.