Generic

Factories for leaf tags.

exporter.leaf_tags.generic.generate_key_leaf_tag(key)[source]

Build a LeafTag named key, that returns the key from the context.

Parameters:

key (str)

Return type:

Type[LeafTag]

exporter.leaf_tags.generic.generate_count_leaf_tag(infix)[source]

Build a LeafTag named {infix.lower()}Count with a level argument, that returns the {level}{infix}Count from the context.

Parameters:

infix (str)

Return type:

Type[LeafTag]

exporter.leaf_tags.generic.generate_sample_leaf_tag(key)[source]

Build a LeafTag named key with mode and max arguments, that returns a sample of the key from the context.

Parameters:

key (str)

Return type:

Type[LeafTag]

exporter.leaf_tags.generic.generate_timestamp_leaf_tag(key, datetime_format)[source]

Build a LeafTag named key with a mode argument, that returns the key from the context in the format specified by mode. The key value is parsed according to datetime_format.

Parameters:
  • key (str)

  • datetime_format (str)

Return type:

Type[LeafTag]