Skip to content

Commit

Permalink
Add request/response fields to gateway_info (mobile_config.proto) (#429
Browse files Browse the repository at this point in the history
)

* Add `refreshed_at`, `created_at` to `gateway_info`
* Add `min_refreshed_at` to `gateway_info_req_v1`
  • Loading branch information
kurotych authored Nov 14, 2024
1 parent bf91f46 commit ad4db78
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/service/mobile_config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ message gateway_info {
gateway_metadata metadata = 2;
// the asserted device type of the gateway
device_type device_type = 3;
// The unix epoch timestamp (in seconds)
// when the data was read from chain and written to the db
uint64 refreshed_at = 4;
// The unix epoch timestamp (in seconds)
// when the gateway was first added to the database.
uint64 created_at = 5;
}

message gateway_info_req_v1 {
Expand Down Expand Up @@ -72,6 +78,11 @@ message gateway_info_stream_req_v1 {
// Device types that will be returned in the response
// Returns all devices if empty
repeated device_type device_types = 4;
// The Unix epoch timestamp (in seconds).
// Filters the response based on the `refreshed_at` field in `gateway_info`.
// Returns only gateways where `refreshed_at` >= `min_refreshed_at`.
// Use 0 to fetch all gateways.
uint64 min_refreshed_at = 5;
}

message gateway_info_stream_res_v1 {
Expand Down

0 comments on commit ad4db78

Please sign in to comment.