Skip to content

Commit 43dfa9c

Browse files
authored
Merge branch 'master' into connor/move-msg-verify
2 parents 686034f + fd87983 commit 43dfa9c

File tree

1 file changed

+70
-2
lines changed

1 file changed

+70
-2
lines changed

src/service/poc_mobile.proto

Lines changed: 70 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,15 @@ message enabled_carriers_info_report_v1 {
101101
}
102102

103103
message radio_usage_carrier_transfer_info {
104+
option deprecated = true;
104105
carrier_id carrier_id = 1 [ deprecated = true ];
105106
uint64 transfer_bytes = 2;
106107
uint64 user_count = 3;
107108
carrier_id_v2 carrier_id_v2 = 4;
108109
}
109110

110111
message radio_usage_stats_req_v1 {
112+
option deprecated = true;
111113
// The onchain address of the hotspot
112114
bytes hotspot_pubkey = 1;
113115
// the cbsd id of the radio if it is a cbrs radio otherwise empty
@@ -143,15 +145,77 @@ message radio_usage_stats_req_v1 {
143145
repeated radio_usage_carrier_transfer_info carrier_transfer_info = 13;
144146
}
145147

146-
message radio_usage_stats_res_v1 { string id = 1; }
148+
message radio_usage_stats_res_v1 {
149+
option deprecated = true;
150+
string id = 1;
151+
}
147152

148153
message radio_usage_stats_ingest_report_v1 {
154+
option deprecated = true;
149155
// Timestamp in milliseconds since unix epoch
150156
uint64 received_timestamp = 1;
151157
// the verified report
152158
radio_usage_stats_req_v1 report = 2;
153159
}
154160

161+
message radio_usage_sampling_carrier_data_transfer_info_v1 {
162+
carrier_id_v2 carrier_id = 1;
163+
uint64 user_count = 2;
164+
uint64 bytes_transferred = 3;
165+
}
166+
167+
message radio_usage_carrier_data_transfer_info_v2 {
168+
carrier_id_v2 carrier_id = 1;
169+
uint64 user_count = 2;
170+
uint64 rewarded_bytes_transferred = 3;
171+
uint64 unrewarded_bytes_transferred = 4;
172+
}
173+
174+
message radio_usage_stats_req_v2 {
175+
// The onchain address of the hotspot
176+
bytes hotspot_pubkey = 1;
177+
// Unix timestamp in milliseconds of the epoch start
178+
uint64 epoch_start_timestamp_ms = 2;
179+
// Unix timestamp in milliseconds of the epoch end
180+
uint64 epoch_end_timestamp_ms = 3;
181+
// Unix timestamp in milliseconds of when the report was generated
182+
uint64 timestamp_ms = 4;
183+
// Carrier pubkey
184+
bytes carrier_pubkey = 5;
185+
// Signed payload
186+
bytes signature = 6;
187+
188+
// unique users among CDRs from non-sampling data
189+
// Note: the same user may be counted in both sampling and non-sampling stats
190+
uint64 user_count_total = 7;
191+
// rewarded (non-sampled)
192+
uint64 rewarded_bytes_transferred_total = 8;
193+
// unrewarded (non-sampled)
194+
uint64 unrewarded_bytes_transferred_total = 9;
195+
196+
// unique users among CDRs from sampling data
197+
// Note: the same user may be counted in both sampling and non-sampling stats
198+
uint64 sampling_user_count_total = 10;
199+
// sampling bytes are distinct from rewarded + unrewarded (non-sampled)
200+
uint64 sampling_bytes_transferred_total = 11;
201+
202+
// Carrier specific breakdown of non-sampling data
203+
repeated radio_usage_carrier_data_transfer_info_v2 carrier_transfer_info = 12;
204+
205+
// Carrier specific breakdown of sampling data
206+
repeated radio_usage_sampling_carrier_data_transfer_info_v1
207+
sampling_carrier_transfer_info = 13;
208+
}
209+
210+
message radio_usage_stats_res_v2 { string id = 1; }
211+
212+
message radio_usage_stats_ingest_report_v2 {
213+
// Timestamp in milliseconds since unix epoch
214+
uint64 received_timestamp_ms = 1;
215+
// the verified report
216+
radio_usage_stats_req_v2 report = 2;
217+
}
218+
155219
message speedtest_req_v1 {
156220
bytes pub_key = 1;
157221
string serial = 2;
@@ -454,7 +518,11 @@ service poc_mobile {
454518
rpc submit_hex_usage_stats_report(hex_usage_stats_req_v1)
455519
returns (hex_usage_stats_res_v1);
456520
rpc submit_radio_usage_stats_report(radio_usage_stats_req_v1)
457-
returns (radio_usage_stats_res_v1);
521+
returns (radio_usage_stats_res_v1) {
522+
option deprecated = true;
523+
};
524+
rpc submit_radio_usage_stats_report_v2(radio_usage_stats_req_v2)
525+
returns (radio_usage_stats_res_v2);
458526
rpc submit_unique_connections(unique_connections_req_v1)
459527
returns (unique_connections_resp_v1);
460528
rpc submit_subscriber_mapping_activity(subscriber_mapping_activity_req_v1)

0 commit comments

Comments
 (0)