-
Notifications
You must be signed in to change notification settings - Fork 12
Add possibility to show REST call result #17
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
Comments
I think the explorer from Grafana is better suited to debug queries than the toaster notification |
Hello, Bye, |
Hi @ftasso . Can you give me an example on how you are using Infinity Datasource with this plugin? Thanks for your help. Regards! |
Hello,
forget Infinity Datasource, I made a mistake. Please take a look to this piece of code, you must specify this in your
button:
{
"source": "url",
"type": "json",
"url": "${commandREST}",
"url_options": {
"body_content_type": "text/plain",
"body_type": "x-www-form-urlencoded",
"method": "POST"
}
}
Bye,
Fabrizio
Il 05/04/2023 04:28, canob ha scritto:
…
Hi @ftasso <https://github.com/ftasso> . Can you give me an example on
how you are using Infinity Datasource with this plugin?
For example, are you been able to pass a variable value to the http
request?
I need to pass a host_id in the URL, and for example, in the same
dashboard that I'm using Infinity Datasource to show information in a
table, I'm using a variable to get the correct host_id.
Are you completing the "query" part of this plugin with any information?
Thanks for your help.
Regards!
—
Reply to this email directly, view it on GitHub
<#17 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APDBB3G5TGXOMHHKRPW5R2LW7TKD7ANCNFSM6AAAAAATG5FOGI>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hi @ftasso , thanks for your response. To understand your answer and "translate" to what I need, suppose that the URL that I want to access is https://api.edr.com/device?action=block, with POST method, and the JSON Body Content is:
Is not clear for me where I need to put the "accept:application/json" header and the JSON body content in your example. The CURL that I'm using and is working is: Can you tell me if my example translated from your example is ok? Thanks in advance. Regards, |
{ Bye, |
Thanks @ftasso , I'm going to try with your example and let you know. Regards, |
Hi @ftasso, Finally It worked, after review your example, and viewed in the plugin homepage that what you need to put on Query is the same that you see on "query" on Query Inspector on Grafana. This is the JSON I finally used:
Really thanks for all your help. Regards, |
I'm happy you solved the problem. Nice job Alejandro. Bye, |
Hi @canob , I was following the conversation and tried implementing the same but I am having trouble getting it to work. I am getting a Bad request response instead. May you please assist me. |
This is what i submitted. |
Hi @Akuzike8, It's not clear by your description what http://127.0.0.1:8882 is expecting (for example, no headers, no params?), but if it is a GET, the first question for you is if it is working (you are getting an answer) if you put http://127.0.0.1:8882/ in your web browser for example? |
Hi @canob , I have made adjustments and have fixed the problem. I am now using a POST request instead with all the required set. Thanks for your help. |
Hello,
I'm trying to use your plugin with Infinity datasource.
It works fine but I have only a notify popup with the text "200 (OK)" as feedback.
Could you please add an optional text box to show results from datasource or (could be better) a javascript method to override?
Thank you for your plugin!
Fabrizio
The text was updated successfully, but these errors were encountered: