Skip to content

Refactor the data format of on/off CPU events to array#520

Merged
dxsup merged 4 commits intoharmonycloud:mainfrom
dxsup:refact-cpu-event-array
May 18, 2023
Merged

Refactor the data format of on/off CPU events to array#520
dxsup merged 4 commits intoharmonycloud:mainfrom
dxsup:refact-cpu-event-array

Conversation

@dxsup
Copy link
Copy Markdown
Collaborator

@dxsup dxsup commented May 18, 2023

Description

Refactor the data format of on/off CPU events from "string" to "array".

Related Issue

This change on the agent is accompanied by PR #512, which includes corresponding changes on the front end.

Motivation and Context

At present, the on/off CPU events are stored as a "string" type in the "cpuEvent" field, despite being inherently arrays. This PR aims to refactor the data format to use the "array" type instead, to simplify the processing code. However, it's crucial to note that this is a breaking change, meaning that the new data cannot be parsed using previous versions of the front-end, and conversely, the old data format cannot be parsed using the new version of the front-end.

Daxin Wang and others added 3 commits May 18, 2023 10:41
Signed-off-by: Daxin Wang <daxinwang@harmonycloud.cn>
Co-authored-by: sangyangji <songyujie@zju.edu.cn>
Signed-off-by: Daxin Wang <daxinwang@harmonycloud.cn>
Signed-off-by: Daxin Wang <daxinwang@harmonycloud.cn>
@dxsup dxsup requested a review from hocktea214 May 18, 2023 04:00
Signed-off-by: Daxin Wang <daxinwang@harmonycloud.cn>
@dxsup dxsup merged commit 91e7239 into harmonycloud:main May 18, 2023
@dxsup dxsup deleted the refact-cpu-event-array branch May 18, 2023 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants