Jump to content
mitch

Publish system

Recommended Posts

Hello,

It is maybe a silly question but I can't figure it out.
I want to publish an online webconsole in my dashboard.

But I don't know how to publish a system. where do i put the code? pulseway manager? pulseway webapp? I have no idea..

could somebody tell me how this works this is the code:

curl https://my.pulseway.com/api/v2/notifications \

    -u username:password \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"instance_id":"my_cloud_agent","title":"Runtime error","message":"Cannot connect to the database.","priority":"critical"}'

Share this post


Link to post
Share on other sites

Hey Mitch,

Curl is an application that can make HTTP requests. You can download it from here: https://curl.haxx.se/windows. The Publish method of the REST API allows you to register applications as Pulseway instances based on the JSON content you're sending. So if you'd like your web console statistics and status information to be pushed to Pulseway then you'd have to talk to the developers of that application and ask them to make these requests every now and then adding in the required information.

For instance you could write a script that runs backup jobs every day and you can use this API to let Pulseway know what's the status of the backup job and send notifications when the backup fails.

-Paul

Share this post


Link to post
Share on other sites

Hi Paul,

I already used CURL to get the information I needed out of the webconsole. that worked but if I want to push the information into Pulseway I need to publish a Pulseway instance.
One of your colleagues told me to do this with the curl code in the first post. Thats where I'm confused right now.

But if I want to publish something where do I have to put the code. in the curl application from https://www.curl.haxx.se/windows ?

-Mitch

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...