Commit 9e942f1a by bergquist

Adds Tables types to protobuf

parent ce4beb73
......@@ -27,5 +27,5 @@ test: test-go test-js
run:
./bin/grafana-server
pbuf:
protoc:
protoc -I pkg/tsdb/models pkg/tsdb/models/*.proto --go_out=plugins=grpc:pkg/tsdb/models/.
\ No newline at end of file
......@@ -3,6 +3,8 @@ option go_package = "proto";
package plugins;
import "google/protobuf/any.proto";
message TsdbQuery {
TimeRange timeRange = 1;
DatasourceInfo datasource = 2;
......@@ -32,8 +34,20 @@ message QueryResult {
string refId = 2;
string metaJson = 3;
repeated TimeSeries series = 4;
repeated Table tables = 5;
}
message Table {
repeated TableColumn columns = 1;
repeated TableRow rows = 2;
}
message TableColumn {
string name = 1;
}
//repeat Table tables = x;
message TableRow {
repeated google.protobuf.Any values = 1;
}
message DatasourceInfo {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment