Re: [openwisp] Sending API request : reg

2023-05-24 Thread Federico Capoano
I would write a receiver function listening to this signal:
https://github.com/openwisp/openwisp-monitoring/#threshold_crossed

Find more about Django signals:
https://docs.djangoproject.com/en/4.2/topics/signals/

You need to put the code in the python path. A good place to store it is in
the same directory where the settings.py is located.
You can then import it in the settings or create a new simple django app
dir which you load in INSTALLED_APPS.

Federico


On Tue, 23 May 2023 at 00:18, Logunath K  wrote:

> Greetings...
>Hii  team,
>   I am planning to generate ticket
> system for routers notifications. If I want to send an API request from
> openwisp2 hosted server to ticket raising server. How and where can I edit
> notifications code in the openwisp2? Is it possible ?  If the device is not
> reachable for 10/15 mins I am planning to send notification through API for
> creating a ticket tracking system.  Do I have to write a new API or else we
> can use an already existing API for this.
>
>  Thanks in advance
>
> --
> You received this message because you are subscribed to the Google Groups
> "OpenWISP" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to openwisp+unsubscr...@googlegroups.com.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/openwisp/CAJy2ivoWpUbswYme%3DtByb%3DCwSNXTvYZOOVA7EtWULPO-bx5rKw%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to openwisp+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/openwisp/CAAGgX6LDWZEnB1iMDaOw2gWEchveUX8_wH8R0NuW%2Bce4M_XPwQ%40mail.gmail.com.


[openwisp] Sending API request : reg

2023-05-22 Thread Logunath K
Greetings...
   Hii  team,
  I am planning to generate ticket
system for routers notifications. If I want to send an API request from
openwisp2 hosted server to ticket raising server. How and where can I edit
notifications code in the openwisp2? Is it possible ?  If the device is not
reachable for 10/15 mins I am planning to send notification through API for
creating a ticket tracking system.  Do I have to write a new API or else we
can use an already existing API for this.

 Thanks in advance

-- 
You received this message because you are subscribed to the Google Groups 
"OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to openwisp+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/openwisp/CAJy2ivoWpUbswYme%3DtByb%3DCwSNXTvYZOOVA7EtWULPO-bx5rKw%40mail.gmail.com.