cl_test.proto 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. // Licensed to the Apache Software Foundation (ASF) under one
  2. // or more contributor license agreements. See the NOTICE file
  3. // distributed with this work for additional information
  4. // regarding copyright ownership. The ASF licenses this file
  5. // to you under the Apache License, Version 2.0 (the
  6. // "License"); you may not use this file except in compliance
  7. // with the License. You may obtain a copy of the License at
  8. //
  9. // http://www.apache.org/licenses/LICENSE-2.0
  10. //
  11. // Unless required by applicable law or agreed to in writing,
  12. // software distributed under the License is distributed on an
  13. // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  14. // KIND, either express or implied. See the License for the
  15. // specific language governing permissions and limitations
  16. // under the License.
  17. syntax="proto2";
  18. package test;
  19. option cc_generic_services = true;
  20. message NotifyRequest {
  21. required string message = 1;
  22. };
  23. message NotifyResponse {
  24. required string message = 1;
  25. };
  26. enum ChangeType {
  27. FLUCTUATE = 1; // Fluctuating between upper and lower bound
  28. SMOOTH = 2; // Smoothly rising from the lower bound to the upper bound
  29. }
  30. message Stage {
  31. required int32 lower_bound = 1;
  32. required int32 upper_bound = 2;
  33. required int32 duration_sec = 3;
  34. required ChangeType type = 4;
  35. }
  36. message TestCase {
  37. required string case_name = 1;
  38. required string max_concurrency = 2;
  39. repeated Stage qps_stage_list = 3;
  40. repeated Stage latency_stage_list = 4;
  41. }
  42. message TestCaseSet {
  43. repeated TestCase test_case = 1;
  44. }
  45. service ControlService {
  46. rpc Notify(NotifyRequest) returns (NotifyResponse);
  47. }
  48. service EchoService {
  49. rpc Echo(NotifyRequest) returns (NotifyResponse);
  50. };