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

Ccmessage migration #119

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open

Ccmessage migration #119

wants to merge 15 commits into from

Conversation

TomTheBear
Copy link
Member

CCMessage is the second version of CCMetric. It now supports:

  • CCMetric (like before)
  • CCEvent (strings as payload)
  • CCLog (strings as payload)
  • CCControl (strings as payload with an additional tag for the methods GET and PUT)

The cc-metric-collector currently uses only CCMetrics but other components in the ClusterCockpit ecosystem use the other types.

$ cd cc-metric-collector
$ export OLDURL="github.com/ClusterCockpit/cc-metric-collector/pkg/ccMetric"
$ export NEWURL="github.com/ClusterCockpit/cc-energy-manager/pkg/cc-message"
$ find . -name "*.go" -exec \
   sed -i -e "s+${OLDURL}+${NEWURL}+g"\
            -e 's+lp.CCMetric+lp.CCMessage+g' \
            -e 's+lp.New+lp.NewMessage+g' {} \;

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