Extend instance statuses

Add the statuses unknown and unassigned for when the status has not yet
been set by a slave and replace the initialized status with starting,
creating_save and exporting_data.
This commit is contained in:
Hornwitser committed 2020-09-29 01:01:19 +02:00
1 parent 363bb54902
commit b82de23876
4 files changed
+56 -53

No files matched your search

+9 -11
View File
@@ -804,7 +804,7 @@ messages.debugWsMessage = new Event({
messages.instanceInitialized = new Event({
type: "instance_initialized",
links: ["instance-slave", "slave-master"],
links: ["instance-slave"],
eventProperties: {
"instance_id": { type: "integer" },
"plugins": {
@@ -813,18 +813,14 @@ messages.instanceInitialized = new Event({
},
},
});
messages.instanceStarted = new Event({
type: "instance_started",
links: ["instance-slave", "slave-master"],
eventProperties: {
"instance_id": { type: "integer" },
},
});
messages.instanceStopped = new Event({
type: "instance_stopped",
messages.instanceStatusChanged = new Event({
type: "instance_status_changed",
links: ["instance-slave", "slave-master"],
eventProperties: {
"instance_id": { type: "integer" },
"status": { enum: [
"stopped", "starting", "running", "creating_save", "exporting_data",
]},
},
});
@@ -840,7 +836,9 @@ messages.updateInstances = new Event({
required: ["serialized_config", "status"],
properties: {
"serialized_config": { type: "object" },
"status": { enum: ["stopped", "initialized", "running"] },
"status": { enum: [
"stopped", "starting", "running", "creating_save", "exporting_data",
]},
},
},
},