slackline | tiny bridge for customising Prometheus AlertManager alerts | Monitoring library
kandi X-RAY | slackline Summary
kandi X-RAY | slackline Summary
Slackline is a tiny bridge for customising Prometheus AlertManager alerts for Slack.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of slackline
slackline Key Features
slackline Examples and Code Snippets
Community Discussions
Trending Discussions on slackline
QUESTION
I am trying to build a simple chatbot with DialogFlow
.
My aim is to give information from user question, like : where can I slackline above water in croatia ? I have two parameters (croatia
, waterline
) and a list of slackline places.
So I need a data base to retrieve information from parameters. DialogFlow allows fulfillment with Firebase
. I build a database with places (name, country, type of slack) and enable webhook
call for my intent.
I use Inline Editor and index.js
...ANSWER
Answered 2018-Aug-23 at 12:52The "right" solution is option 2 that you suggest: since you're doing an asynchronous call, you need to handle this correctly when working with the dialogflow-fulfillment library.
Basically, if your handler makes an asynchronous call, it needs to be asynchronous as well. To indicate to the handleRequest()
method that your handler is async, you need to return a Promise object.
Firebase's once()
method returns a Promise if you don't pass it a callback function. You can take advantage of this, return that Promise, and also handle what you want it to do as part of a .then()
clause. It might look something like this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install slackline
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page