ObserverWeb.Telemetry (Observer Web v0.1.5)

This module will provide telemetry abstraction

Summary

Functions

List all keys registered for the respective node

Fetch data by node and key

This function pushes events to the Telemetry module

Subscribe for new data notifications for the respective node/key

Subscribe for new keys notifications

Unsubscribe for new data notifications for the respective node/key

Functions

get_keys_by_node(node)

@spec get_keys_by_node(atom()) :: list()

List all keys registered for the respective node

list_data_by_node_key(node, key, options)

@spec list_data_by_node_key(atom() | String.t(), String.t(), Keyword.t()) :: list()

Fetch data by node and key

push_data(event)

@spec push_data(any()) :: :ok

This function pushes events to the Telemetry module

subscribe_for_new_data(node, key)

@spec subscribe_for_new_data(String.t(), String.t()) :: :ok | {:error, term()}

Subscribe for new data notifications for the respective node/key

subscribe_for_new_keys()

@spec subscribe_for_new_keys() :: :ok | {:error, term()}

Subscribe for new keys notifications

unsubscribe_for_new_data(node, key)

@spec unsubscribe_for_new_data(String.t(), String.t()) :: :ok

Unsubscribe for new data notifications for the respective node/key