habitat.views.listener_telemetry

Functions for the listener_telemetry design document.

Contains schema validation and a view by creation time and callsign.

Functions

callsign_time_created_map(doc) View: listener_telemetry/callsign_time_created
must_be_admin(user[, msg]) Raise UnauthorizedError if the user is not an admin
read_json_schema(schemaname)
rfc3339_to_timestamp Mock out external modules that might annoy documentation build systems.
time_created_callsign_map(doc) View: listener_telemetry/time_created_callsign
validate(new, old, userctx, secobj) Only allow admins to edit/delete and validate the document against the schema for listener_telemetry documents.
validate_doc(data, schema) Validate data against schema, raising descriptive errors
version Mock out external modules that might annoy documentation build systems.
habitat.views.listener_telemetry.time_created_callsign_map(doc)[source]

View: listener_telemetry/time_created_callsign

Emits:

[time_created, callsign] -> null

Times are UNIX timestamps (and therefore in UTC).

Sorts by time created. Useful to see the latest listener telemetry.

habitat.views.listener_telemetry.callsign_time_created_map(doc)[source]

View: listener_telemetry/callsign_time_created

Emits:

[callsign, time_created] -> null

Times are UNIX timestamps (and therefore in UTC).

Sorts by callsign. Useful to see a certain callsign’s latest telemetry.