Skip to content

Instantly share code, notes, and snippets.

@kylebrandt
Created March 3, 2021 20:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kylebrandt/c8f0811ec5ea36e4e81153a80327bccc to your computer and use it in GitHub Desktop.
Save kylebrandt/c8f0811ec5ea36e4e81153a80327bccc to your computer and use it in GitHub Desktop.
evalOld using copy of settings column (jq/curl)
xclip -o -selection clipboard | jq '.conditions | { "conditions": . }' | curl -H 'Content-Type: application/json' -X POST --data-binary @- http://admin:admin@localhost:3000/api/alert-definitions/evalOld | jq -r '.instances[0]' | base64 -d > ~/tmp/af && arrow-cat ~/tmp/af
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment