• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (c) Huawei Technologies Co., Ltd. 2023. All rights reserved.
2// Licensed under the Apache License, Version 2.0 (the "License");
3// you may not use this file except in compliance with the License.
4// You may obtain a copy of the License at
5//
6//     http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14syntax = "proto3";
15
16option java_package = "ohos.devtools.datasources.transport.grpc.service";
17option optimize_for = LITE_RUNTIME;
18
19message SliceObj {
20    int32 id = 1;
21    string name = 2;
22}
23
24message SliceInfo {
25    int32 id = 1;
26    int32 value = 2;
27    uint64 start_time = 3;
28    uint64 end_time = 4;
29}
30
31message CounterObj {
32    int32 id = 1;
33    string name = 2;
34}
35
36message CounterInfo {
37    int32 key = 1;
38    int32 value = 2;
39    uint64 ts = 3;
40}
41
42message MockData {
43    repeated CounterObj counterobj = 1;
44    repeated CounterInfo counterinfo = 2;
45    repeated SliceObj sliceobj = 3;
46    repeated SliceInfo sliceinfo = 4;
47}
48
49message MockDataArr {
50    repeated MockData mockdata = 1;
51}
52