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

template creation #3

Open
rismoney opened this issue Sep 8, 2022 · 0 comments
Open

template creation #3

rismoney opened this issue Sep 8, 2022 · 0 comments

Comments

@rismoney
Copy link

rismoney commented Sep 8, 2022

I have an easy webservice that just takes 2 pieces of info in json format:
(@{"NotificationType"="ChannelName";"Message"="Destroy all humans"}

How can I craft the template, to put all the information from the alert into Message, and leave NotificationType a static name?
I always seem to get this error: json: cannot unmarshal string into Go struct field Alert.alerts.labels of type template.KV

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

No branches or pull requests

1 participant