View Source exometer_admin (exometer_core v2.0.0)
Summary
Functions
Convenience function for testing which template will apply to
Name
. See set_default/2
and exometer:update_or_create/2
.Sets a default definition for a metric type, possibly using wildcards.
Functions
-spec find_auto_template(exometer:name()) -> #exometer_entry{} | false.
Name
. See set_default/2
and exometer:update_or_create/2
.
-spec set_default([atom()], atom(), #exometer_entry{} | [{atom(), any()}]) -> true.
Sets a default definition for a metric type, possibly using wildcards.
Names are lists of atoms, where '_' is a wildcard. For example, [a, b, c, '_']
matches all children and grandchildren of [a, b, c]
, whereas [a, b, c, d]
specifies a single name.
#exometer_entry{}
record, or a list of {Key, Value}
tuples, where each Key
matches an attribute of the #exometer_entry{}
record.