Skip to content

Metric to support a counter attribute #239

@nh13

Description

@nh13

Frequently I have a dataclass that: stores a histogram of data, counting occurrences of some enumeration

@ddataclass(frozen=True)
class Counts(Metric["Counts"]):
    identifier: str
    counter: Counter[SomeEnum]

where SomeEnum is an enumeration.

Since the definition of the enumeration is fixed, I would like a column per possible enumeration value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions