Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add request/response fields to gateway_info (mobile_config.proto) #429

Merged
merged 2 commits into from
Nov 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading