Oban.Met.Value protocol (Oban Met v1.0.1)

View Source

Tracked data access functions.

Summary

Types

t()

All the types that implement this protocol.

Functions

Add or append a new value to the data type.

Merge two values into one.

Compute the quantile for a value.

Sum all data points for a value.

Union two values by reducing them into one.

Types

t()

@type t() :: term()

All the types that implement this protocol.

Functions

add(struct, value)

Add or append a new value to the data type.

merge(struct_1, struct_2)

Merge two values into one.

quantile(struct, quantile)

Compute the quantile for a value.

sum(struct)

Sum all data points for a value.

union(struct_1, struct_2)

Union two values by reducing them into one.