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

Parse stats from dcp output #189

Merged
merged 3 commits into from
Jul 29, 2024
Merged

Parse stats from dcp output #189

merged 3 commits into from
Jul 29, 2024

Conversation

bdevcich
Copy link
Contributor

Grab the end stats from dcp output and store it in the command status.

Signed-off-by: Blake Devcich blake.devcich@hpe.com

Grab the end stats from dcp output and store it in the command status.

Signed-off-by: Blake Devcich <blake.devcich@hpe.com>
}

// Go through the list of dcp stat regexes, parse them, and put them in their appropriate place in cmdStatus
func parseDcpStats(line string, cmdStatus *nnfv1alpha1.NnfDataMovementCommandStatus) error {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm all ears if there's a better way to do this

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You just need to add an option to dcp to output in json.

Signed-off-by: Blake Devcich <blake.devcich@hpe.com>
@bdevcich bdevcich merged commit 419cf16 into master Jul 29, 2024
4 checks passed
@bdevcich bdevcich deleted the dm-dcp-stats branch July 29, 2024 13:58
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.

3 participants