tsdb_plugin.proto 585 B

1234567891011121314151617181920212223242526272829303132
  1. syntax = "proto3";
  2. option go_package = "proto";
  3. package plugins;
  4. // Message represents a simple message sent to the Echo service.
  5. message TsdbRequest {
  6. int64 from = 1;
  7. int64 to = 2;
  8. repeated TsdbQuery queries = 3;
  9. }
  10. message TsdbQuery {
  11. string queryJson = 1;
  12. }
  13. message TsdbResponse {
  14. string error = 1;
  15. string errorString = 2;
  16. string refId = 3;
  17. string metaJson = 4;
  18. repeated TsdbSeries series = 5;
  19. //repeat TsdbTables tables = x;
  20. }
  21. message TsdbSeries {
  22. string name = 1;
  23. }
  24. service TsdbPlugin {
  25. rpc Get(TsdbRequest) returns (TsdbResponse);
  26. }