single bundle metrics
This commit is contained in:
parent
cebb8559c1
commit
c0f137d996
15 changed files with 226 additions and 34 deletions
|
|
@ -189,7 +189,13 @@ service LightningPub {
|
|||
option (nostr) = true;
|
||||
}
|
||||
|
||||
rpc GetSingleUsageMetrics(structs.SingleUsageMetricReq) returns (structs.UsageMetricTlv) {
|
||||
rpc GetSingleBundleMetrics(structs.SingleMetricReq) returns (structs.BundleData) {
|
||||
option (auth_type) = "Metrics";
|
||||
option (http_method) = "post";
|
||||
option (http_route) = "/api/reports/bundle/single";
|
||||
option (nostr) = true;
|
||||
}
|
||||
rpc GetSingleUsageMetrics(structs.SingleMetricReq) returns (structs.UsageMetricTlv) {
|
||||
option (auth_type) = "Metrics";
|
||||
option (http_method) = "post";
|
||||
option (http_route) = "/api/reports/usage/single";
|
||||
|
|
|
|||
|
|
@ -41,11 +41,17 @@ message LatestUsageMetricReq {
|
|||
optional int64 limit = 1;
|
||||
}
|
||||
|
||||
message SingleUsageMetricReq {
|
||||
enum SingleMetricType {
|
||||
USAGE_METRIC = 0;
|
||||
BUNDLE_METRIC = 1;
|
||||
}
|
||||
|
||||
message SingleMetricReq {
|
||||
string app_id = 1;
|
||||
string metrics_name = 2;
|
||||
int64 page = 3;
|
||||
optional int64 request_id = 4;
|
||||
SingleMetricType metric_type = 4;
|
||||
optional int64 request_id = 5;
|
||||
}
|
||||
|
||||
message UsageMetric {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue