Source code for cfxdb.mrealm.types
##############################################################################
#
# Crossbar.io Database
# Copyright (c) typedef int GmbH. Licensed under MIT.
#
##############################################################################
from cfxdb.gen.mrealm.WorkerGroupStatus import WorkerGroupStatus
[docs]
STATUS_BY_CODE = {
WorkerGroupStatus.NONE: "NONE",
WorkerGroupStatus.STOPPED: "STOPPED",
WorkerGroupStatus.STARTING: "STARTING",
WorkerGroupStatus.RUNNING: "RUNNING",
WorkerGroupStatus.PAUSED: "PAUSED",
WorkerGroupStatus.STOPPING: "STOPPING",
WorkerGroupStatus.ERROR: "ERROR",
WorkerGroupStatus.DEGRADED: "DEGRADED",
}
[docs]
STATUS_BY_NAME = {
"NONE": WorkerGroupStatus.NONE,
"STOPPED": WorkerGroupStatus.STOPPED,
"STARTING": WorkerGroupStatus.STARTING,
"RUNNING": WorkerGroupStatus.RUNNING,
"PAUSED": WorkerGroupStatus.PAUSED,
"STOPPING": WorkerGroupStatus.STOPPING,
"ERROR": WorkerGroupStatus.ERROR,
"DEGRADED": WorkerGroupStatus.DEGRADED,
}
[docs]
STATUS_STOPPED = WorkerGroupStatus.STOPPED
[docs]
STATUS_STARTING = WorkerGroupStatus.STARTING
[docs]
STATUS_RUNNING = WorkerGroupStatus.RUNNING
[docs]
STATUS_PAUSED = WorkerGroupStatus.PAUSED
[docs]
STATUS_STOPPING = WorkerGroupStatus.STOPPING
[docs]
STATUS_ERROR = WorkerGroupStatus.ERROR
[docs]
STATUS_DEGRADED = WorkerGroupStatus.DEGRADED