Debian Codegraph @

docs/content/instrumenting/enum.md

raw symbols SCIP
1 ---
2 title: Enum
3 weight: 6
4 ---
5
6 Enum tracks which of a set of states something is currently in.
7
8 ```python
9 from prometheus_client import Enum
10 e = Enum('my_task_state', 'Description of enum',
11 states=['starting', 'running', 'stopped'])
12 e.state('running')
13 ```