O'Reilly logo
  • AKIHITO INOH thinks this is interesting:

Enum

The first common case for strings is enums. For example you may have a resource that could be in exactly one of the states STARTING, RUNNING, STOPPING or TERMINATED.

From

Cover of Prometheus: Up & Running

Note

ステータスごとにメトリクスを定義するパターンの使い方