forked from aergoio/aergo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
metric.pb.go
218 lines (191 loc) · 7.32 KB
/
metric.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: metric.proto
package types
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type MetricType int32
const (
// NOTHING should not be used.
MetricType_NOTHING MetricType = 0
// Metric for p2p network transfer
MetricType_P2P_NETWORK MetricType = 1
)
var MetricType_name = map[int32]string{
0: "NOTHING",
1: "P2P_NETWORK",
}
var MetricType_value = map[string]int32{
"NOTHING": 0,
"P2P_NETWORK": 1,
}
func (x MetricType) String() string {
return proto.EnumName(MetricType_name, int32(x))
}
func (MetricType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_metric_6b06b58837f6e8cb, []int{0}
}
type MetricsRequest struct {
Types []MetricType `protobuf:"varint,1,rep,packed,name=types,proto3,enum=types.MetricType" json:"types,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MetricsRequest) Reset() { *m = MetricsRequest{} }
func (m *MetricsRequest) String() string { return proto.CompactTextString(m) }
func (*MetricsRequest) ProtoMessage() {}
func (*MetricsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_metric_6b06b58837f6e8cb, []int{0}
}
func (m *MetricsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MetricsRequest.Unmarshal(m, b)
}
func (m *MetricsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MetricsRequest.Marshal(b, m, deterministic)
}
func (dst *MetricsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_MetricsRequest.Merge(dst, src)
}
func (m *MetricsRequest) XXX_Size() int {
return xxx_messageInfo_MetricsRequest.Size(m)
}
func (m *MetricsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_MetricsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_MetricsRequest proto.InternalMessageInfo
func (m *MetricsRequest) GetTypes() []MetricType {
if m != nil {
return m.Types
}
return nil
}
type Metrics struct {
Peers []*PeerMetric `protobuf:"bytes,1,rep,name=peers,proto3" json:"peers,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Metrics) Reset() { *m = Metrics{} }
func (m *Metrics) String() string { return proto.CompactTextString(m) }
func (*Metrics) ProtoMessage() {}
func (*Metrics) Descriptor() ([]byte, []int) {
return fileDescriptor_metric_6b06b58837f6e8cb, []int{1}
}
func (m *Metrics) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Metrics.Unmarshal(m, b)
}
func (m *Metrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Metrics.Marshal(b, m, deterministic)
}
func (dst *Metrics) XXX_Merge(src proto.Message) {
xxx_messageInfo_Metrics.Merge(dst, src)
}
func (m *Metrics) XXX_Size() int {
return xxx_messageInfo_Metrics.Size(m)
}
func (m *Metrics) XXX_DiscardUnknown() {
xxx_messageInfo_Metrics.DiscardUnknown(m)
}
var xxx_messageInfo_Metrics proto.InternalMessageInfo
func (m *Metrics) GetPeers() []*PeerMetric {
if m != nil {
return m.Peers
}
return nil
}
type PeerMetric struct {
PeerID []byte `protobuf:"bytes,1,opt,name=peerID,proto3" json:"peerID,omitempty"`
SumIn int64 `protobuf:"varint,2,opt,name=sumIn,proto3" json:"sumIn,omitempty"`
AvrIn int64 `protobuf:"varint,3,opt,name=avrIn,proto3" json:"avrIn,omitempty"`
SumOut int64 `protobuf:"varint,4,opt,name=sumOut,proto3" json:"sumOut,omitempty"`
AvrOut int64 `protobuf:"varint,5,opt,name=avrOut,proto3" json:"avrOut,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PeerMetric) Reset() { *m = PeerMetric{} }
func (m *PeerMetric) String() string { return proto.CompactTextString(m) }
func (*PeerMetric) ProtoMessage() {}
func (*PeerMetric) Descriptor() ([]byte, []int) {
return fileDescriptor_metric_6b06b58837f6e8cb, []int{2}
}
func (m *PeerMetric) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PeerMetric.Unmarshal(m, b)
}
func (m *PeerMetric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PeerMetric.Marshal(b, m, deterministic)
}
func (dst *PeerMetric) XXX_Merge(src proto.Message) {
xxx_messageInfo_PeerMetric.Merge(dst, src)
}
func (m *PeerMetric) XXX_Size() int {
return xxx_messageInfo_PeerMetric.Size(m)
}
func (m *PeerMetric) XXX_DiscardUnknown() {
xxx_messageInfo_PeerMetric.DiscardUnknown(m)
}
var xxx_messageInfo_PeerMetric proto.InternalMessageInfo
func (m *PeerMetric) GetPeerID() []byte {
if m != nil {
return m.PeerID
}
return nil
}
func (m *PeerMetric) GetSumIn() int64 {
if m != nil {
return m.SumIn
}
return 0
}
func (m *PeerMetric) GetAvrIn() int64 {
if m != nil {
return m.AvrIn
}
return 0
}
func (m *PeerMetric) GetSumOut() int64 {
if m != nil {
return m.SumOut
}
return 0
}
func (m *PeerMetric) GetAvrOut() int64 {
if m != nil {
return m.AvrOut
}
return 0
}
func init() {
proto.RegisterType((*MetricsRequest)(nil), "types.MetricsRequest")
proto.RegisterType((*Metrics)(nil), "types.Metrics")
proto.RegisterType((*PeerMetric)(nil), "types.PeerMetric")
proto.RegisterEnum("types.MetricType", MetricType_name, MetricType_value)
}
func init() { proto.RegisterFile("metric.proto", fileDescriptor_metric_6b06b58837f6e8cb) }
var fileDescriptor_metric_6b06b58837f6e8cb = []byte{
// 226 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x44, 0x90, 0xcf, 0x4b, 0xc3, 0x30,
0x14, 0x80, 0x8d, 0xb5, 0x1b, 0xbc, 0x8e, 0x39, 0x83, 0x48, 0x8e, 0x65, 0x17, 0xcb, 0x0e, 0x3d,
0xd4, 0x93, 0x77, 0x45, 0x83, 0xd8, 0x96, 0x50, 0xf0, 0x28, 0x53, 0xde, 0xc1, 0x43, 0xb7, 0x98,
0x1f, 0x83, 0xde, 0xfc, 0xd3, 0x25, 0x79, 0x61, 0x3d, 0x7e, 0xdf, 0x7b, 0x5f, 0x20, 0x0f, 0x56,
0x23, 0x3a, 0xf3, 0xf3, 0x5d, 0x6b, 0x73, 0x74, 0x47, 0x9e, 0xbb, 0x49, 0xa3, 0xdd, 0x3e, 0xc2,
0xfa, 0x3d, 0x6a, 0xab, 0xf0, 0xd7, 0xa3, 0x75, 0xfc, 0x1e, 0x68, 0x24, 0x58, 0x99, 0x55, 0xeb,
0xe6, 0xa6, 0x8e, 0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