Monitor update
Deploy / deploy (push) Successful in 8s

This commit is contained in:
2026-08-31 22:42:40 +05:00
parent 47ea18d020
commit 28702bd029
13 changed files with 434 additions and 217 deletions
+13 -3
View File
@@ -6,12 +6,22 @@ option go_package = "pwa-homelab-mon/gen/homelab/v1;homelabv1";
message Item {
string name = 1;
string data = 2; // monitor: text | percentage
string value = 3; // monitor: last output
int32 args = 4; // exec: arg count
repeated string arg_types = 5; // exec: text | number per arg
}
message Stat {
string name = 1;
string value = 2;
}
// Карточка монитора: процент (-1 = скрипт не дал процент) + строки для подписей.
message Monitor {
string name = 1;
int32 percentage = 2;
repeated Stat stats = 3;
}
message Link {
string name = 1;
string url = 2;
@@ -20,7 +30,7 @@ message Link {
message ListContentRequest {}
message ListContentResponse {
repeated Link links = 1;
repeated Item monitors = 2;
repeated Monitor monitors = 2;
repeated Item exec = 3;
repeated Service services = 4;
}