Skip to content

Commit

Permalink
Add ExportTabularData method and message types #DATA-3440
Browse files Browse the repository at this point in the history
  • Loading branch information
katiepeters committed Nov 21, 2024
1 parent 1c3a0c2 commit 2e9264c
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions proto/viam/app/data/v1/data.proto
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ service DataService {
// TabularDataByMQL queries tabular data with an MQL (MongoDB Query Language) query.
rpc TabularDataByMQL(TabularDataByMQLRequest) returns (TabularDataByMQLResponse);

// ExportTabularData queries tabular data from the specified data source.
rpc ExportTabularData(ExportTabularDataRequest) returns (stream ExportTabularDataResponse);

// GetLatestTabularData gets the most recent tabular data captured from the specified data source.
rpc GetLatestTabularData(GetLatestTabularDataRequest) returns (GetLatestTabularDataResponse);

Expand Down Expand Up @@ -229,6 +232,32 @@ message TabularDataByMQLResponse {
reserved "data";
}

// ExportTabularDataRequest requests tabular data from the specified data source.
message ExportTabularDataRequest {
string part_id = 1;
string resource_name = 2;
string resource_type = 3;
string method_name = 4;
CaptureInterval interval = 13;
}

// ExportTabularDataResponse provides unified tabular data and metadata for a single data point from the specified data source.
message ExportTabularDataResponse {
string part_id = 1;
string component_name = 2;
string component_type = 3;
string method_name = 4;
google.protobuf.Timestamp time_captured = 5;
string organization_id = 6;
string location_id = 7;
string robot_name = 8;
string robot_id = 9;
string part_name = 10;
map<string, google.protobuf.Any> method_parameters = 11;
repeated string tags = 12;
google.protobuf.Struct payload = 13;
}

// GetLatestTabularDataRequest requests the most recent tabular data captured from the specified data source.
message GetLatestTabularDataRequest {
string part_id = 1;
Expand Down

0 comments on commit 2e9264c

Please sign in to comment.