bundle metrics
This commit is contained in:
parent
d25450e022
commit
531947a497
21 changed files with 573 additions and 252 deletions
|
|
@ -181,6 +181,14 @@ service LightningPub {
|
|||
option (http_route) = "/api/reports/usage";
|
||||
option (nostr) = true;
|
||||
}
|
||||
|
||||
rpc GetBundleMetrics(structs.LatestBundleMetricReq) returns (structs.BundleMetrics) {
|
||||
option (auth_type) = "Metrics";
|
||||
option (http_method) = "post";
|
||||
option (http_route) = "/api/reports/bundle";
|
||||
option (nostr) = true;
|
||||
}
|
||||
|
||||
rpc GetSingleUsageMetrics(structs.SingleUsageMetricReq) returns (structs.UsageMetricTlv) {
|
||||
option (auth_type) = "Metrics";
|
||||
option (http_method) = "post";
|
||||
|
|
|
|||
|
|
@ -62,6 +62,8 @@ message UsageMetric {
|
|||
optional string app_id = 11;
|
||||
}
|
||||
|
||||
|
||||
|
||||
message UsageMetricTlv {
|
||||
repeated string base_64_tlvs = 1;
|
||||
int64 current_chunk = 2;
|
||||
|
|
@ -77,6 +79,24 @@ message UsageMetrics {
|
|||
map<string,AppUsageMetrics> apps = 1;
|
||||
}
|
||||
|
||||
message LatestBundleMetricReq {
|
||||
optional int64 limit = 1;
|
||||
}
|
||||
|
||||
message BundleData {
|
||||
repeated string base_64_data = 1;
|
||||
int64 current_chunk = 2;
|
||||
repeated int64 available_chunks = 3;
|
||||
}
|
||||
|
||||
message BundleMetric {
|
||||
map<string, BundleData> app_bundles = 1;
|
||||
}
|
||||
|
||||
message BundleMetrics {
|
||||
map<string, BundleMetric> apps = 1;
|
||||
}
|
||||
|
||||
message AppsMetricsRequest {
|
||||
optional int64 from_unix = 1;
|
||||
optional int64 to_unix = 2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue