plugins/mod_admin_shell.lua
changeset 11995 bef2a59b00d1
parent 11958 b963ac00c967
child 12016 71d799a8638f
--- a/plugins/mod_admin_shell.lua	Mon Nov 22 14:54:32 2021 +0100
+++ b/plugins/mod_admin_shell.lua	Mon Nov 22 19:07:56 2021 +0100
@@ -441,6 +441,7 @@
 		["storage-provider"] = "Storage driver",
 		["measure"] = "Legacy metrics",
 		["metric"] = "Metrics",
+		["task"] = "Periodic task",
 	};
 	local item_formatters = {
 		["feature"] = tostring,
@@ -454,6 +455,7 @@
 		["metric"] = function(item)
 			return ("%s (%s%s)%s"):format(item.name, suf(item.mf.unit, " "), item.mf.type_, pre(": ", item.mf.description));
 		end,
+		["task"] = function (item) return string.format("%s (%s)", item.name or item.id, item.when); end
 	};
 
 	for host in hosts do