chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
// Licensed to the Apache Software Foundation (ASF) under one
|
||||
// or more contributor license agreements. See the NOTICE file
|
||||
// distributed with this work for additional information
|
||||
// regarding copyright ownership. The ASF licenses this file
|
||||
// to you under the Apache License, Version 2.0 (the
|
||||
// "License"); you may not use this file except in compliance
|
||||
// with the License. You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing,
|
||||
// software distributed under the License is distributed on an
|
||||
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
// KIND, either express or implied. See the License for the
|
||||
// specific language governing permissions and limitations
|
||||
// under the License.
|
||||
|
||||
syntax="proto2";
|
||||
package test;
|
||||
|
||||
option cc_generic_services = true;
|
||||
|
||||
message NotifyRequest {
|
||||
required string message = 1;
|
||||
};
|
||||
|
||||
message NotifyResponse {
|
||||
required string message = 1;
|
||||
};
|
||||
|
||||
enum ChangeType {
|
||||
FLUCTUATE = 1; // Fluctuating between upper and lower bound
|
||||
SMOOTH = 2; // Smoothly rising from the lower bound to the upper bound
|
||||
}
|
||||
|
||||
message Stage {
|
||||
required int32 lower_bound = 1;
|
||||
required int32 upper_bound = 2;
|
||||
required int32 duration_sec = 3;
|
||||
required ChangeType type = 4;
|
||||
}
|
||||
|
||||
message TestCase {
|
||||
required string case_name = 1;
|
||||
required string max_concurrency = 2;
|
||||
repeated Stage qps_stage_list = 3;
|
||||
repeated Stage latency_stage_list = 4;
|
||||
}
|
||||
|
||||
message TestCaseSet {
|
||||
repeated TestCase test_case = 1;
|
||||
}
|
||||
|
||||
service ControlService {
|
||||
rpc Notify(NotifyRequest) returns (NotifyResponse);
|
||||
}
|
||||
|
||||
service EchoService {
|
||||
rpc Echo(NotifyRequest) returns (NotifyResponse);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user