Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 263 Bytes

enum.md

File metadata and controls

13 lines (11 loc) · 263 Bytes
title Enum
weight 6

Enum tracks which of a set of states something is currently in.

from prometheus_client import Enum
e = Enum('my_task_state', 'Description of enum',
        states=['starting', 'running', 'stopped'])
e.state('running')