Compare commits

...

2 Commits

Author SHA1 Message Date
Dirk Heilig af207d8a01 Merge branch 'master' of ssh://git.c3re.de:2222/c3re/mqtt2prom 2024-09-09 19:14:17 +02:00
Dirk Heilig c011f62af5 add validity time parameter 2024-09-09 19:11:35 +02:00
1 changed files with 5 additions and 5 deletions

View File

@ -191,7 +191,7 @@ function precheck(Message $message): bool
} }
foreach (array_keys($payload) as $key) { foreach (array_keys($payload) as $key) {
if (!in_array($key, ["name", "value", "labels","valid_until"])) { if (!in_array($key, ["name", "value", "labels", "valid_seconds"])) {
error("Unknown key: $key"); error("Unknown key: $key");
return false; return false;
} }