Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from
May 18, 2023

Conversation

dxsup
Copy link
Member

@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 KindlingProject: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