GithubHelp home page GithubHelp logo

Format of Callback subscriptions about argus HOT 3 OPEN

sgarg7 avatar sgarg7 commented on June 11, 2024
Format of Callback subscriptions

from argus.

Comments (3)

amitkumar912 avatar amitkumar912 commented on June 11, 2024

I too am running into an error posting Alert data. Is there a specific input required here?
TIA.

from argus.

bsura avatar bsura commented on June 11, 2024

This is the templating engine used:
https://github.com/antlr/stringtemplate4

Here's the PR for this feature. There's some info in there as well:
#358

Let us know if it works out. We have not enabled this feature in our production environment and would like to get some feedback on it.

from argus.

sgarg7 avatar sgarg7 commented on June 11, 2024

I started with the following in the "Subscriptions" field, following the format specified in the PR
{"uri": "http://requestbin.commpany.com/abcdefg", "method": "POST", "header": {}, "body": "Hello world", "template": null }

But upon saving and refresh, it changed to :
"body": "Hello world", "template": null }, "method": "POST", "header": {}, {"uri": "http://requestbin.commpany.com/abcdefg"

The JSON is being split based on the commas. So it looks like the subscription field is not the right place for the callback JSON. I added it to the "Custom Text" field of a notification. Will report back what I find.

from argus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.