Hello all,
I am integrating Observium alerts with a Matrix notification service and
would like the Matrix message to include the alert graph, similar to the
standard email alert.
While looking at the email transport code, I noticed that it already
receives a prepared $context['graphs'] structure. Each graph contains
fields such as type, url, and data, and the email transport simply
embeds the rendered graph image from that data.
With webhook alerts, however, the JSON payload does not appear to
include this graph information. Reconstructing the correct graph from
the available webhook fields is difficult because the graph type and
parameters are not always obvious.
Would it be possible for webhook transports to expose the same graph
context that is already available to the email transport (for example,
the graphs[] array or at least the graph URL?
That would make it much easier to integrate Observium alerts with
systems such as Matrix or Slack while preserving the graph context
included in email alerts.
Thanks a lot, Marian
--
Marian Rychtecký
NIX.CZ, z.s.p.o.