0
0
Fork 0
mirror of https://github.com/alerta/alerta.git synced 2025-03-12 20:46:49 +00:00
Commit graph

19 commits

Author SHA1 Message Date
Víctor M. García Muñoz
c794a04f00
Support custom backends defined as entry point ()
* Support custom backends defined as entry point

A custom backend may be needed to support a different database or
to extend or modify current backends functionality.
With this modification, a custom backend can be defined using an
entry point to provide its module location.

* Change entry point name for custom backends and include an example
2023-03-09 18:27:53 +01:00
Nick Satterly
1538a97717
Add forwarder plugin for federated Alerta ()
* Add alerts and action forwarder plugin for federated setups

* Add tests for forwarder plugin
2020-04-30 21:26:49 +02:00
Nick Satterly
49ec257e76
Add attributes field to heartbeat for use in hb alerts ()
* Add attributes field to heartbeat for use in hb alerts

* Whitespace fix for pre-commit hook to pass
2020-01-25 13:03:35 +01:00
Nick Satterly
69bebd3ded
Push app config to plugin methods for per-alert config ()
* Push app config to plugin methods for per-alert config

* Add get_config() helper method to plugins

* Explicitly pass kwargs to avoid race conditions using self

* Test config variable precedence
2019-04-23 22:58:14 +02:00
Andrey Kuzmin
cc8f93000c Oembed fix ()
* Fix oembed.

Use usual json (not jsonp request) with Access-Control-Allow-Origin header.
Correct path to oembed location.

* Move styling to embedding page from embedded to simplify configure.

Removed width/height from parameters.
Allow to hide title.

* More powerfull oembed.

Auto-renew.
Ability to open page locally (we heed to set http/https prefixes).
Fix loading: we need to set alerta defaults only after script loading.

* oembed example for grafana.

* Remove unused width/height from js.

* Ability to set empty background in case of no alerts.

* Oembed work fix.

qb.from_params forms incorrect arguments for query.

* Grafana load fix.

Grafana won't load script on "load". So it's better to embed js.

* Revert api path to usual environment prefix.

But leave a comment, how to use it with alerta, running in docker.
2019-03-24 20:57:21 +01:00
Nick Satterly
cd0dfbe088
Type annotate plugins and webhooks ()
* Type annotate plugins (part 1)

* Type annotate webhooks (part 2)
2018-10-10 19:52:55 +02:00
Nick Satterly
5f50a566a6
Whitespace fixes () 2018-09-16 00:26:28 +02:00
Nick Satterly
627b971a88
Replace double-quotes with single-quotes () 2018-09-16 00:20:53 +02:00
Nick Satterly
4af78277e8
Add pre-commit checks () 2018-09-16 00:07:50 +02:00
Nick Satterly
fa31df8a13
Add some example plugins () 2018-04-02 20:09:18 +02:00
Nick Satterly
8bc68cd6ec oembed example should only show open alerts 2015-02-08 23:47:56 +00:00
Nick Satterly
c9c4f22685 move examples to top-level directory 2015-02-08 22:59:27 +00:00
Nick Satterly
a6ba1aa948 Lots of refactoring 2013-02-17 10:55:54 +00:00
Nick Satterly
ca25f319e2 Update REST API curl examples 2012-11-27 08:40:20 +00:00
Nick Satterly
bb1c0cefac Modify curl example 2012-10-03 22:56:38 +01:00
Nick Satterly
663619d9f5 Rename curl example 2012-04-19 15:07:11 +01:00
Nick Satterly
0bc0b0e5f6 Fix SNMP trap receiver and add example trap sender 2012-04-19 15:05:22 +01:00
Nick Satterly
65c7c1162b Make alert REST API more resilient to user error 2012-04-12 13:12:52 +01:00
Nick Satterly
72bc8b7670 Add example using curl 2012-04-04 10:59:28 +01:00