milvus.proto 18.5 KB
Newer Older
1 2 3
syntax = "proto3";
package milvus.proto.milvus;

X
Xiangyu Wang 已提交
4
option go_package = "github.com/milvus-io/milvus/internal/proto/milvuspb";
5 6

import "common.proto";
Y
yukun 已提交
7
import "schema.proto";
8

G
godchen 已提交
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
service MilvusService {
  rpc CreateCollection(CreateCollectionRequest) returns (common.Status) {}
  rpc DropCollection(DropCollectionRequest) returns (common.Status) {}
  rpc HasCollection(HasCollectionRequest) returns (BoolResponse) {}
  rpc LoadCollection(LoadCollectionRequest) returns (common.Status) {}
  rpc ReleaseCollection(ReleaseCollectionRequest) returns (common.Status) {}
  rpc DescribeCollection(DescribeCollectionRequest) returns (DescribeCollectionResponse) {}
  rpc GetCollectionStatistics(GetCollectionStatisticsRequest) returns (GetCollectionStatisticsResponse) {}
  rpc ShowCollections(ShowCollectionsRequest) returns (ShowCollectionsResponse) {}

  rpc CreatePartition(CreatePartitionRequest) returns (common.Status) {}
  rpc DropPartition(DropPartitionRequest) returns (common.Status) {}
  rpc HasPartition(HasPartitionRequest) returns (BoolResponse) {}
  rpc LoadPartitions(LoadPartitionsRequest) returns (common.Status) {}
  rpc ReleasePartitions(ReleasePartitionsRequest) returns (common.Status) {}
  rpc GetPartitionStatistics(GetPartitionStatisticsRequest) returns (GetPartitionStatisticsResponse) {}
  rpc ShowPartitions(ShowPartitionsRequest) returns (ShowPartitionsResponse) {}

Y
Yusup 已提交
27 28 29 30
  rpc CreateAlias(CreateAliasRequest) returns (common.Status) {}
  rpc DropAlias(DropAliasRequest) returns (common.Status) {}
  rpc AlterAlias(AlterAliasRequest) returns (common.Status) {}

G
godchen 已提交
31 32 33
  rpc CreateIndex(CreateIndexRequest) returns (common.Status) {}
  rpc DescribeIndex(DescribeIndexRequest) returns (DescribeIndexResponse) {}
  rpc GetIndexState(GetIndexStateRequest) returns (GetIndexStateResponse) {}
34
  rpc GetIndexBuildProgress(GetIndexBuildProgressRequest) returns (GetIndexBuildProgressResponse) {}
G
godchen 已提交
35 36
  rpc DropIndex(DropIndexRequest) returns (common.Status) {}

37
  rpc Insert(InsertRequest) returns (MutationResult) {}
G
groot 已提交
38
  rpc Delete(DeleteRequest) returns (MutationResult) {}
G
godchen 已提交
39
  rpc Search(SearchRequest) returns (SearchResults) {}
40
  rpc Flush(FlushRequest) returns (FlushResponse) {}
X
Xiangyu Wang 已提交
41
  rpc Query(QueryRequest) returns (QueryResults) {}
42
  rpc CalcDistance(CalcDistanceRequest) returns (CalcDistanceResults) {}
G
godchen 已提交
43 44 45 46

  rpc GetPersistentSegmentInfo(GetPersistentSegmentInfoRequest) returns (GetPersistentSegmentInfoResponse) {}
  rpc GetQuerySegmentInfo(GetQuerySegmentInfoRequest) returns (GetQuerySegmentInfoResponse) {}

X
Xiangyu Wang 已提交
47 48
  rpc Dummy(DummyRequest) returns (DummyResponse) {}

G
godchen 已提交
49 50
  // TODO: remove
  rpc RegisterLink(RegisterLinkRequest) returns (RegisterLinkResponse) {}
51 52 53

  // https://wiki.lfaidata.foundation/display/MIL/MEP+8+--+Add+metrics+for+proxy
  rpc GetMetrics(GetMetricsRequest) returns (GetMetricsResponse) {}
G
godchen 已提交
54 55
}

Y
Yusup 已提交
56 57
message CreateAliasRequest {
  common.MsgBase base = 1;
C
Cai Yudong 已提交
58 59 60
  string db_name = 2;
  string collection_name = 3;
  string alias = 4;
Y
Yusup 已提交
61 62 63 64
}

message DropAliasRequest {
  common.MsgBase base = 1;
C
Cai Yudong 已提交
65 66
  string db_name = 2;
  string alias = 3;
Y
Yusup 已提交
67 68 69 70
}

message AlterAliasRequest{
  common.MsgBase base = 1;
C
Cai Yudong 已提交
71 72 73
  string db_name = 2;
  string collection_name = 3;
  string alias = 4;
Y
Yusup 已提交
74 75
}

76
/**
Y
Yusup 已提交
77
* Create collection in milvus
78
*/
79
message CreateCollectionRequest {
80 81 82
  // Not useful for now
  common.MsgBase base = 1;
  // Not useful for now
Z
zhenshan.cao 已提交
83
  string db_name = 2;
84 85 86 87 88
  // The unique collection name in milvus.(Required)
  string collection_name = 3; 
  // The serialized `schema.CollectionSchema`(Required)
  bytes schema = 4; 
  // Once set, no modification is allowed (Optional)
89
  // https://github.com/milvus-io/milvus/issues/6690
90
  int32 shards_num = 5;
91 92
}

93 94 95
/**
* Drop collection in milvus, also will drop data in collection. 
*/
96
message DropCollectionRequest {
97 98 99
  // Not useful for now
  common.MsgBase base = 1; 
  // Not useful for now
Z
zhenshan.cao 已提交
100
  string db_name = 2;
101 102
  // The unique collection name in milvus.(Required)
  string collection_name = 3;
103 104
}

105 106 107
/**
* Check collection exist in milvus or not.
*/
108
message HasCollectionRequest {
109 110 111
  // Not useful for now
  common.MsgBase base = 1;
  // Not useful for now
Z
zhenshan.cao 已提交
112
  string db_name = 2;
113 114
  // The collection name you want to check.
  string collection_name = 3; 
115
  // If time_stamp is not zero, will return true when time_stamp >= created collection timestamp, otherwise will return false.
N
neza2017 已提交
116
  uint64 time_stamp = 4;
117 118
}

119

Y
yukun 已提交
120 121 122 123 124
message BoolResponse {
  common.Status status = 1;
  bool value = 2;
}

Z
zhenshan.cao 已提交
125 126 127 128 129
message StringResponse {
  common.Status status = 1;
  string value = 2;
}

130 131 132
/**
* Get collection meta datas like: schema, collectionID, shards number ...
*/
133
message DescribeCollectionRequest {
134 135 136
  // Not useful for now
  common.MsgBase base = 1;
  // Not useful for now
Z
zhenshan.cao 已提交
137
  string db_name = 2;
138
  // The collection name you want to describe, you can pass collection_name or collectionID
139
  string collection_name = 3;
140
  // The collection ID you want to describe
N
neza2017 已提交
141
  int64 collectionID = 4;
142
  // If time_stamp is not zero, will describe collection success when time_stamp >= created collection timestamp, otherwise will throw error.
N
neza2017 已提交
143
  uint64 time_stamp = 5;
144 145
}

146 147 148
/**
* DescribeCollection Response
*/
149
message DescribeCollectionResponse {
150
  // Contain error_code and reason
Y
yukun 已提交
151
  common.Status status = 1;
152
  // The schema param when you created collection.
Y
yukun 已提交
153
  schema.CollectionSchema schema = 2;
154
  // The collection id
155
  int64 collectionID = 3;
156
  // System design related, users should not perceive
157
  repeated string virtual_channel_names = 4;
158
  // System design related, users should not perceive
159
  repeated string physical_channel_names = 5;
160 161 162 163 164
  // Hybrid timestamp in milvus
  uint64 created_timestamp = 6;
  // The utc timestamp calculated by created_timestamp
  uint64 created_utc_timestamp = 7;
  // The shards number you set.
Y
Yusup 已提交
165 166 167
  int32 shards_num = 8;
  // The aliases of this collection
  repeated string aliases = 9;
168 169
  // The message ID/posititon when collection is created
  repeated common.KeyDataPair start_positions = 10;
170 171
}

172 173 174
/**
* Load collection data into query nodes, then you can do vector search on this collection.
*/
175
message LoadCollectionRequest {
176 177 178
  // Not useful for now
  common.MsgBase base = 1;
  // Not useful for now
Z
zhenshan.cao 已提交
179
  string db_name = 2;
180 181
  // The collection name you want to load
  string collection_name = 3;
182 183
}

184 185 186
/**
* Release collection data from query nodes, then you can't do vector search on this collection.
*/
187
message ReleaseCollectionRequest {
188 189 190
  // Not useful for now
  common.MsgBase base = 1;
  // Not useful for now
Z
zhenshan.cao 已提交
191
  string db_name = 2;
192 193
  // The collection name you want to release
  string collection_name = 3;
194 195
}

196 197 198
/**
* Get collection statistics like row_count.
*/
G
godchen 已提交
199
message GetCollectionStatisticsRequest {
200 201 202
  // Not useful for now
  common.MsgBase base = 1;
  // Not useful for now
Z
zhenshan.cao 已提交
203
  string db_name = 2;
204 205
  // The collection name you want get statistics
  string collection_name = 3;
206 207
}

208 209 210
/**
* Will return collection statistics in stats field like [{key:"row_count",value:"1"}]
*/
G
godchen 已提交
211
message GetCollectionStatisticsResponse {
212
  // Contain error_code and reason
Z
zhenshan.cao 已提交
213
  common.Status status = 1;
214
  // Collection statistics data
Z
zhenshan.cao 已提交
215
  repeated common.KeyValuePair stats = 2;
216 217
}

218 219 220
/*
* This is for ShowCollectionsRequest type field.
*/
221
enum ShowType {
222
  // Will return all colloections 
223
  All = 0;
224
  // Will return loaded collections with their inMemory_percentages
225 226 227
  InMemory = 1;
}

228 229 230
/*
* List collections 
*/
G
godchen 已提交
231
message ShowCollectionsRequest {
232 233 234
  // Not useful for now
  common.MsgBase base = 1;
  // Not useful for now
Z
zhenshan.cao 已提交
235
  string db_name = 2;
236
  // Not useful for now
N
neza2017 已提交
237
  uint64 time_stamp = 3;
238
  // Decide return Loaded collections or All collections(Optional)
239
  ShowType type = 4;
240 241
  // When type is InMemory, will return these collection's inMemory_percentages.(Optional)
  repeated string collection_names = 5; 
242 243
}

244 245 246
/*
* Return basic collection infos.
*/
G
godchen 已提交
247
message ShowCollectionsResponse {
248
  // Contain error_code and reason
Z
zhenshan.cao 已提交
249
  common.Status status = 1;
250
  // Collection name array
Z
zhenshan.cao 已提交
251
  repeated string collection_names = 2;
252
  // Collection Id array
253
  repeated int64 collection_ids = 3;
254 255 256 257 258 259
  // Hybrid timestamps in milvus
  repeated uint64 created_timestamps = 4;
  // The utc timestamp calculated by created_timestamp
  repeated uint64 created_utc_timestamps = 5;
  // Load percentage on querynode when type is InMemory
  repeated int64 inMemory_percentages = 6; 
260 261
}

262 263 264
/*
* Create partition in created collection.
*/
265
message CreatePartitionRequest {
266 267 268
  // Not useful for now
  common.MsgBase base = 1;
  // Not useful for now
Z
zhenshan.cao 已提交
269
  string db_name = 2;
270 271 272 273
  // The collection name in milvus
  string collection_name = 3;
  // The partition name you want to create.
  string partition_name = 4;
274 275
}

276 277 278
/*
* Drop partition in created collection.
*/
279
message DropPartitionRequest {
280 281 282
  // Not useful for now
  common.MsgBase base = 1;
  // Not useful for now
Z
zhenshan.cao 已提交
283
  string db_name = 2;
284 285 286 287
  // The collection name in milvus
  string collection_name = 3;
  // The partition name you want to drop
  string partition_name = 4; 
288 289
}

290 291 292
/*
* Check if partition exist in collection or not.
*/
293
message HasPartitionRequest {
294 295 296
  // Not useful for now
  common.MsgBase base = 1;
  // Not useful for now
Z
zhenshan.cao 已提交
297
  string db_name = 2;
298 299 300 301
  // The collection name in milvus
  string collection_name = 3;
  // The partition name you want to check
  string partition_name = 4;
302 303
}

304 305 306 307
/*
* Load specific partitions data of one collection into query nodes
* Then you can get these data as result when you do vector search on this collection.
*/
G
godchen 已提交
308
message LoadPartitionsRequest {
309 310 311
  // Not useful for now
  common.MsgBase base = 1;
  // Not useful for now
312
  string db_name = 2;
313 314 315 316
  // The collection name in milvus
  string collection_name = 3;
  // The partition names you want to load
  repeated string partition_names = 4;
317 318
}

319 320 321 322
/*
* Release specific partitions data of one collection from query nodes.
* Then you can not get these data as result when you do vector search on this collection.
*/
G
godchen 已提交
323
message ReleasePartitionsRequest {
324 325 326
  // Not useful for now
  common.MsgBase base = 1;
  // Not useful for now
Z
zhenshan.cao 已提交
327
  string db_name = 2;
328 329 330 331
  // The collection name in milvus
  string collection_name = 3;
  // The partition names you want to release
  repeated string partition_names = 4;
332 333
}

334 335 336
/*
* Get partition statistics like row_count.
*/
G
godchen 已提交
337
message GetPartitionStatisticsRequest {
338 339 340
  // Not useful for now
  common.MsgBase base = 1;
  // Not useful for now
Z
zhenshan.cao 已提交
341
  string db_name = 2;
342 343 344 345
  // The collection name in milvus
  string collection_name = 3;
  // The partition name you want to collect statistics
  string partition_name = 4; 
346 347
}

G
godchen 已提交
348
message GetPartitionStatisticsResponse {
Z
zhenshan.cao 已提交
349 350
  common.Status status = 1;
  repeated common.KeyValuePair stats = 2;
351
}
352

353 354 355
/*
* List all partitions for particular collection
*/
G
godchen 已提交
356
message ShowPartitionsRequest {
357 358 359
  // Not useful for now
  common.MsgBase base = 1;
  // Not useful for now
Z
zhenshan.cao 已提交
360
  string db_name = 2;
361 362 363
  // The collection name you want to describe, you can pass collection_name or collectionID
  string collection_name = 3;
  // The collection id in milvus
364
  int64 collectionID = 4;
365 366 367
  // When type is InMemory, will return these patitions's inMemory_percentages.(Optional)
  repeated string partition_names = 5;
  // Decide return Loaded partitions or All partitions(Optional)
368
  ShowType type = 6;
369 370
}

371 372 373 374
/*
* List all partitions for particular collection response.
* The returned datas are all rows, we can format to columns by therir index.
*/
G
godchen 已提交
375
message ShowPartitionsResponse {
376
  // Contain error_code and reason
Z
zhenshan.cao 已提交
377
  common.Status status = 1;
378
  // All partition names for this collection
Z
zhenshan.cao 已提交
379
  repeated string partition_names = 2;
380
  // All partition ids for this collection
Z
zhenshan.cao 已提交
381
  repeated int64 partitionIDs = 3;
382 383 384 385 386 387
  // All hybrid timestamps
  repeated uint64 created_timestamps = 4;
  // All utc timestamps calculated by created_timestamps
  repeated uint64 created_utc_timestamps = 5;
  // Load percentage on querynode
  repeated int64 inMemory_percentages = 6;
388 389 390 391 392 393 394 395 396 397 398
}

message DescribeSegmentRequest {
  common.MsgBase base = 1;
  int64 collectionID = 2;
  int64 segmentID = 3;
}

message DescribeSegmentResponse {
  common.Status status = 1;
  int64 indexID = 2;
N
neza2017 已提交
399
  int64 buildID = 3;
400
  bool enable_index = 4;
401 402
}

G
godchen 已提交
403
message ShowSegmentsRequest {
404 405 406 407 408
  common.MsgBase base = 1;
  int64 collectionID = 2;
  int64 partitionID = 3;
}

G
godchen 已提交
409
message ShowSegmentsResponse {
410 411 412
  common.Status status = 1;
  repeated int64 segmentIDs = 2;
}
413

414 415 416
/*
* Create index for vector datas
*/
417
message CreateIndexRequest {
418 419 420
  // Not useful for now
  common.MsgBase base = 1; 
  // Not useful for now
Z
zhenshan.cao 已提交
421
  string db_name = 2;
422 423 424 425 426 427
  // The particular collection name you want to create index.
  string collection_name = 3;
  // The vector field name in this particular collection
  string field_name = 4;
  // Support keys: index_type,metric_type, params. Different index_type may has different params.
  repeated common.KeyValuePair extra_params = 5; 
428 429
}

430 431 432 433
/*
* Get created index information. 
* Current release of Milvus only supports showing latest built index.
*/
434
message DescribeIndexRequest {
435 436 437
  // Not useful for now
  common.MsgBase base = 1;
  // Not useful for now
Z
zhenshan.cao 已提交
438
  string db_name = 2;
439 440 441
  // The particular collection name in Milvus
  string collection_name = 3;
   // The vector field name in this particular collection
442
  string field_name = 4;
443 444
  // No need to set up for now @2021.06.30
  string index_name = 5; 
445 446 447 448
}

message IndexDescription {
  string index_name = 1;
G
godchen 已提交
449
  int64 indexID = 2;
450
  repeated common.KeyValuePair params = 3;
451
  string field_name = 4;
452 453 454
}

message DescribeIndexResponse {
455 456 457 458
  common.Status status = 1;
  repeated IndexDescription index_descriptions = 2;
}

459
message GetIndexBuildProgressRequest {
Z
zhenshan.cao 已提交
460
  common.MsgBase base = 1; // must
461
  string db_name = 2 ;
Z
zhenshan.cao 已提交
462
  string collection_name = 3; // must
463
  string field_name = 4;
Z
zhenshan.cao 已提交
464
  string index_name = 5; // must
465 466 467 468 469 470 471 472
}

message GetIndexBuildProgressResponse {
  common.Status status = 1;
  int64 indexed_rows = 2;
  int64 total_rows = 3;
}

G
godchen 已提交
473
message GetIndexStateRequest {
Z
zhenshan.cao 已提交
474
  common.MsgBase base = 1; // must
475
  string db_name = 2 ;
Z
zhenshan.cao 已提交
476
  string collection_name = 3; // must
477
  string field_name = 4;
Z
zhenshan.cao 已提交
478
  string index_name = 5; // No need to set up for now @2021.06.30
479 480
}

G
godchen 已提交
481
message GetIndexStateResponse {
482 483
  common.Status status = 1;
  common.IndexState state = 2;
484
  string fail_reason = 3;
485 486
}

X
xige-16 已提交
487
message DropIndexRequest {
Z
zhenshan.cao 已提交
488
  common.MsgBase base = 1; // must
X
xige-16 已提交
489
  string db_name = 2;
Z
zhenshan.cao 已提交
490
  string collection_name = 3; // must
X
xige-16 已提交
491
  string field_name = 4;
Z
zhenshan.cao 已提交
492
  string index_name = 5; // No need to set up for now @2021.06.30
X
xige-16 已提交
493 494
}

495
message InsertRequest {
496
  common.MsgBase base = 1;
Z
zhenshan.cao 已提交
497
  string db_name = 2;
498 499 500 501
  string collection_name = 3;
  string partition_name = 4;
  repeated schema.FieldData fields_data = 5;
  repeated uint32 hash_keys = 6;
502
  uint32 num_rows = 7;
503 504
}

505
message MutationResult {
Z
zhenshan.cao 已提交
506
  common.Status status = 1;
507 508 509 510 511 512 513 514
  schema.IDs IDs = 2; // required for insert, delete
  repeated uint32 succ_index = 3; // error indexes indicate
  repeated uint32 err_index = 4; // error indexes indicate
  bool acknowledged = 5;
  int64 insert_cnt = 6;
  int64 delete_cnt = 7;
  int64 upsert_cnt = 8;
  uint64 timestamp = 9;
Y
yukun 已提交
515 516
}

G
groot 已提交
517 518 519 520 521 522 523 524
message DeleteRequest {
  common.MsgBase base = 1;
  string db_name = 2;
  string collection_name = 3;
  string partition_name = 4;
  string expr = 5;
}

Y
yukun 已提交
525
enum PlaceholderType {
G
godchen 已提交
526 527 528
  None = 0;
  BinaryVector = 100;
  FloatVector = 101;
Y
yukun 已提交
529 530 531 532 533 534 535 536 537 538 539
}

message PlaceholderValue {
  string tag = 1;
  PlaceholderType type = 2;
  // values is a 2d-array, every array contains a vector
  repeated bytes values = 3;
}

message PlaceholderGroup {
  repeated PlaceholderValue placeholders = 1;
540 541 542
}

message SearchRequest {
Z
zhenshan.cao 已提交
543
  common.MsgBase base = 1; // must
Z
zhenshan.cao 已提交
544
  string db_name = 2;
Z
zhenshan.cao 已提交
545 546 547
  string collection_name = 3; // must
  repeated string partition_names = 4; // must
  string dsl = 5; // must
Y
yukun 已提交
548
  // serialized `PlaceholderGroup`
Z
zhenshan.cao 已提交
549 550
  bytes placeholder_group = 6; // must
  common.DslType dsl_type = 7; // must
551 552 553
  repeated string output_fields = 8;
  repeated common.KeyValuePair search_params = 9; // must
  uint64 travel_timestamp = 10;
554
  uint64 guarantee_timestamp = 11; // guarantee_timestamp
Y
yukun 已提交
555 556 557 558 559 560 561 562
}

message Hits {
  repeated int64 IDs = 1;
  repeated bytes row_data = 2;
  repeated float scores = 3;
}

563
message SearchResults {
Y
yukun 已提交
564
  common.Status status = 1;
565
  schema.SearchResultData results = 2;
566 567 568
}

message FlushRequest {
569
  common.MsgBase base = 1;
570
  string db_name = 2;
571
  repeated string collection_names = 3;
Y
yukun 已提交
572 573
}

574 575 576 577 578 579
message FlushResponse{
  common.Status status = 1;
  string db_name = 2;
  map<string, schema.LongArray> coll_segIDs = 3;
}

X
Xiangyu Wang 已提交
580 581 582 583 584 585 586
message QueryRequest {
  common.MsgBase base = 1;
  string db_name = 2;
  string collection_name = 3;
  string expr = 4;
  repeated string output_fields = 5;
  repeated string partition_names = 6;
587 588
  uint64 travel_timestamp = 7;
  uint64 guarantee_timestamp = 8; // guarantee_timestamp
X
Xiangyu Wang 已提交
589 590 591 592 593 594 595
}

message QueryResults {
  common.Status status = 1;
  repeated schema.FieldData fields_data = 2;
}

596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625
message VectorIDs {
  string collection_name = 1;
  string field_name = 2;
  schema.IDs id_array = 3;
  repeated string partition_names = 4;
}

message VectorsArray {
  oneof array {
    VectorIDs id_array = 1; // vector ids
    schema.VectorField data_array = 2; // vectors data
  } 
}

message CalcDistanceRequest {
  common.MsgBase base = 1;
  VectorsArray op_left = 2; // vectors on the left of operator
  VectorsArray op_right = 3; // vectors on the right of operator
  repeated common.KeyValuePair params = 4; // "metric":"L2"/"IP"/"HAMMIN"/"TANIMOTO"
}

message CalcDistanceResults {
  common.Status status = 1;
  // num(op_left)*num(op_right) distance values, "HAMMIN" return integer distance
  oneof array {
    	schema.IntArray int_dist = 2;
	schema.FloatArray float_dist = 3;
  }
}

Z
zhenshan.cao 已提交
626 627 628 629
message PersistentSegmentInfo {
  int64 segmentID = 1;
  int64 collectionID = 2;
  int64 partitionID = 3;
630 631
  int64 num_rows = 4;
  common.SegmentState state = 5;
Z
zhenshan.cao 已提交
632 633
}

G
godchen 已提交
634
message GetPersistentSegmentInfoRequest {
Z
zhenshan.cao 已提交
635
  common.MsgBase base = 1; // must
Z
zhenshan.cao 已提交
636
  string dbName = 2;
Z
zhenshan.cao 已提交
637
  string collectionName = 3; // must
Z
zhenshan.cao 已提交
638 639
}

G
godchen 已提交
640
message GetPersistentSegmentInfoResponse {
Z
zhenshan.cao 已提交
641 642 643 644
  common.Status status = 1;
  repeated PersistentSegmentInfo infos = 2;
}

Z
zhenshan.cao 已提交
645 646 647 648 649 650 651 652 653 654
message QuerySegmentInfo {
  int64 segmentID = 1;
  int64 collectionID = 2;
  int64 partitionID = 3;
  int64 mem_size = 4;
  int64 num_rows = 5;
  string index_name = 6;
  int64 indexID = 7;
}

G
godchen 已提交
655
message GetQuerySegmentInfoRequest {
Z
zhenshan.cao 已提交
656
  common.MsgBase base = 1; // must
Z
zhenshan.cao 已提交
657
  string dbName = 2;
Z
zhenshan.cao 已提交
658
  string collectionName = 3; // must
Z
zhenshan.cao 已提交
659 660
}

G
godchen 已提交
661
message GetQuerySegmentInfoResponse {
Z
zhenshan.cao 已提交
662 663 664 665
  common.Status status = 1;
  repeated QuerySegmentInfo infos = 2;
}

X
Xiangyu Wang 已提交
666 667 668 669 670 671 672
message DummyRequest {
  string request_type = 1;
}

message DummyResponse {
  string response = 1;
}
Z
zhenshan.cao 已提交
673

G
godchen 已提交
674
message RegisterLinkRequest {
Y
yukun 已提交
675
}
D
dragondriver 已提交
676 677 678 679 680 681

message RegisterLinkResponse {
  common.Address address = 1;
  common.Status status = 2;
}

682 683 684 685 686 687 688 689 690 691 692
message GetMetricsRequest {
  common.MsgBase base = 1;
  string request = 2; // request is of jsonic format
}

message GetMetricsResponse {
  common.Status status = 1;
  string response = 2;  // response is of jsonic format
  string component_name = 3; // metrics from which component
}

D
dragondriver 已提交
693
service ProxyService {
G
godchen 已提交
694
  rpc RegisterLink(RegisterLinkRequest) returns (RegisterLinkResponse) {}
Y
Yusup 已提交
695
}