user health no err

This commit is contained in:
boufni95 2024-12-12 18:59:25 +00:00
parent 84b3ef4b9d
commit 93af9969ed
11 changed files with 234 additions and 192 deletions

View file

@ -364,7 +364,7 @@ service LightningPub {
// </App>
// <User>
rpc UserHealth(structs.Empty)returns(structs.Empty){
rpc UserHealth(structs.Empty)returns(structs.UserHealthState){
option (auth_type) = "User";
option (http_method) = "post";
option (http_route) = "/api/user/health";

View file

@ -15,6 +15,10 @@ message EncryptionExchangeRequest {
string deviceId = 2;
}
message UserHealthState {
string downtime_reason = 1;
}
message UsageMetric {
int64 processed_at_ms = 1;
int64 parsed_in_nano = 2;