AvyWeb.AvyJSON (avy v1.1.37)

Copy Markdown View Source

Summary

Functions

This view is meant to output a json format for grafana "state timeline" graphs. It is very different from the FDSN output and therefore needs a lot of manipulations.

Functions

extent(assigns)

query(assigns)

statetimeline(assigns)

This view is meant to output a json format for grafana "state timeline" graphs. It is very different from the FDSN output and therefore needs a lot of manipulations.

The final structure is a list of maps with the key :timestamp as a date, and each FDSN source identifiers + quality code in the response as keys, with default value "".

At each timestamp, we want to put for each FDSN source identifier a quality code or an empty string if there is no data.

[ %{ timeline: ~U[2026-01-01 10:00:00Z],

"FR_CIEL_00_HNZ/D" => "D"

} }

version(_)