feat: promql service (#26)
* feat: promql service * feat: promql service * feat: prometheus service, and common.proto, prom.proto * feat: add header in prom request/response * docs: include new proto files in readme
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package greptime.v1;
|
||||
|
||||
option java_package = "io.greptime.v1";
|
||||
option java_outer_classname = "Common";
|
||||
option go_package = "github.com/GreptimeTeam/greptime-proto/go/greptime/v1";
|
||||
|
||||
message ResponseHeader {}
|
||||
|
||||
message RequestHeader {
|
||||
// The `catalog` that is selected to be used in this request.
|
||||
string catalog = 1;
|
||||
// The `schema` that is selected to be used in this request.
|
||||
string schema = 2;
|
||||
// The `authorization` header, much like http's authorization header.
|
||||
AuthHeader authorization = 3;
|
||||
// The `dbname` for the request
|
||||
string dbname = 4;
|
||||
}
|
||||
|
||||
message AuthHeader {
|
||||
oneof auth_scheme {
|
||||
Basic basic = 1;
|
||||
Token token = 2;
|
||||
}
|
||||
}
|
||||
|
||||
message Basic {
|
||||
string username = 1;
|
||||
string password = 2;
|
||||
}
|
||||
|
||||
message Token {
|
||||
string token = 1;
|
||||
}
|
||||
|
||||
message AffectedRows {
|
||||
uint32 value = 1;
|
||||
}
|
||||
|
||||
message FlightMetadata {
|
||||
AffectedRows affected_rows = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user