Hi,
I am trying to integrate Grafana and Appian.I created a Web API object for POST so that it can write into the database table.
Now whenever the alert is triggered from Grafana it is creating a new row in the DB but the row is empty.
How do I find what all details or JSON is being sent to that Web API whenever Grafana triggers?
Many thanks,
Khaiser
Discussion posts and replies are publicly visible
You can try the tomcat-stdOut and see if you see anything there.
But the easiest way to troubleshoot IMO is to have an API that uses startProcess with a Write Records node. You'll be able to see what data is being passed that way.
Depending on the number of messages, this could lead to a performance issue. Make sure to go back to a more direct write to DB after debugging.
Another option is, to just write the whole JSON to one field in DB.
Or use a tool like postman to build a mock API first.
Hi Mathieu Drouin
Let me just write what I understood.I can also use Write to record Web API but it also is doing the same thing.Do you mean I must use a process model? If so how to connect web api to Write to Record or Datastore smart service
Yes, I was trying that but rows updating null value
The process would have a WriteRecords node in it.
Can you share the code of that API?
I got the answer, this was because the body was huge but the Text length with 255, when I increased it to more than one field captured the entire body, but I just want a part of that, not the entire body, any suggestions on how can I filter that out from DB just the last entered value and than I would like to add few more columns and connect it with record type for using it on a site.
Yes tomcat-stdOut was the right suggestion, many thanks