Skip to content

Commit 307ce8b

Browse files
committed
add getlatesttabulardata endpoint
1 parent 50a8a95 commit 307ce8b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

proto/viam/app/data/v1/data.proto

+17
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ service DataService {
1919
// TabularDataByMQL queries tabular data with an MQL (MongoDB Query Language) query.
2020
rpc TabularDataByMQL(TabularDataByMQLRequest) returns (TabularDataByMQLResponse);
2121

22+
// GetLatestTabularData gets the most recent tabular data captured from the specified data source.
23+
rpc GetLatestTabularData(GetLatestTabularDataRequest) returns (GetLatestTabularDataResponse);
24+
2225
// BinaryDataByFilter queries binary data and metadata based on given filters.
2326
rpc BinaryDataByFilter(BinaryDataByFilterRequest) returns (BinaryDataByFilterResponse);
2427

@@ -226,6 +229,20 @@ message TabularDataByMQLResponse {
226229
reserved "data";
227230
}
228231

232+
// GetLatestTabularDataRequest requests most recent tabular data captured from the specified data source.
233+
message GetLatestTabularDataRequest {
234+
string part_id = 1;
235+
string resource_name = 2;
236+
string method_name = 3;
237+
}
238+
239+
// GetLatestTabularDataResponse provides the data and metadata of most recent tabular data captured.
240+
message GetLatestTabularDataResponse {
241+
google.protobuf.Timestamp time_captured = 1;
242+
google.protobuf.Timestamp time_synced = 2;
243+
google.protobuf.Struct payload = 3;
244+
}
245+
229246
// BinaryData contains data and metadata associated with binary data.
230247
message BinaryData {
231248
bytes binary = 1;

0 commit comments

Comments
 (0)