add alerter endpoints

This commit is contained in:
boufni95 2025-05-14 18:59:00 +00:00
parent 74e6d5b3ca
commit ed6036ce1e
20 changed files with 414 additions and 11 deletions

View file

@ -240,6 +240,19 @@ service LightningPub {
option (http_route) = "/api/metrics/zip";
option (nostr) = true;
}
rpc PingSubProcesses(structs.Empty) returns (structs.Empty) {
option (auth_type) = "Metrics";
option (http_method) = "post";
option (http_route) = "/api/metrics/ping";
option (nostr) = true;
}
rpc GetProvidersDisruption(structs.Empty) returns (structs.ProvidersDisruption) {
option (auth_type) = "Metrics";
option (http_method) = "post";
option (http_route) = "/api/metrics/providers/disruption";
option (nostr) = true;
}
rpc ResetMetricsStorages(structs.Empty) returns (structs.Empty) {
option (auth_type) = "Metrics";

View file

@ -749,4 +749,16 @@ message OfferInvoice {
int64 paid_at_unix = 3;
int64 amount = 4;
map<string,string> data = 5;
}
}
message ProviderDisruption {
string provider_pubkey = 1;
string provider_type = 2;
int64 since_unix = 3;
}
message ProvidersDisruption {
repeated ProviderDisruption disruptions = 1;
}