obelisk.asynchronous.core.type_suffix

obelisk.asynchronous.core.type_suffix(metric: str) Literal['number', 'number[]', 'json', 'bool', 'string'][source]

Extracts the DataType from a string metric, useful for the dataType field in queries.

Throws a ValueError if the provided string does not appear to be a typed metric, or the found type suffix is not a known one.