get fw events

This commit is contained in:
boufni95 2025-06-17 14:17:50 +00:00
parent b58839c7e3
commit a5be3a97e8
12 changed files with 250 additions and 4 deletions

View file

@ -221,6 +221,15 @@ service LightningPub {
option (http_route) = "/api/reports/lnd";
option (nostr) = true;
}
rpc GetLndForwardingMetrics(structs.LndMetricsRequest) returns (structs.LndForwardingMetrics) {
option (auth_type) = "Metrics";
option (http_method) = "post";
option (http_route) = "/api/reports/lnd/forwarding";
option (nostr) = true;
}
rpc SubmitWebRtcMessage(structs.WebRtcMessage) returns (structs.WebRtcAnswer) {
option (auth_type) = "Metrics";
option (http_method) = "post";

View file

@ -213,6 +213,20 @@ message RootOperation {
int64 created_at_unix = 4;
}
message LndForwardingEvent {
string chan_id_in = 1;
string chan_id_out = 2;
int64 amt_in = 3;
int64 amt_out = 4;
int64 fee = 5;
int64 at_unix = 6;
}
message LndForwardingMetrics {
int64 total_fees = 1;
repeated LndForwardingEvent events = 2;
}
message LndNodeMetrics {
repeated GraphPoint chain_balance = 1;
repeated GraphPoint channel_balance = 2;