forked from cloudfoundry-community/firehose-to-syslog
-
Notifications
You must be signed in to change notification settings - Fork 1
/
metric.pb.go
130 lines (109 loc) · 3.63 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
// Code generated by protoc-gen-gogo.
// source: metric.proto
// DO NOT EDIT!
package events
import proto "github.com/gogo/protobuf/proto"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = math.Inf
// / A ValueMetric indicates the value of a metric at an instant in time.
type ValueMetric struct {
Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
Value *float64 `protobuf:"fixed64,2,req,name=value" json:"value,omitempty"`
Unit *string `protobuf:"bytes,3,req,name=unit" json:"unit,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *ValueMetric) Reset() { *m = ValueMetric{} }
func (m *ValueMetric) String() string { return proto.CompactTextString(m) }
func (*ValueMetric) ProtoMessage() {}
func (m *ValueMetric) GetName() string {
if m != nil && m.Name != nil {
return *m.Name
}
return ""
}
func (m *ValueMetric) GetValue() float64 {
if m != nil && m.Value != nil {
return *m.Value
}
return 0
}
func (m *ValueMetric) GetUnit() string {
if m != nil && m.Unit != nil {
return *m.Unit
}
return ""
}
// / A CounterEvent represents the increment of a counter. It contains only the change in the value; it is the responsibility of downstream consumers to maintain the value of the counter.
type CounterEvent struct {
Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
Delta *uint64 `protobuf:"varint,2,req,name=delta" json:"delta,omitempty"`
Total *uint64 `protobuf:"varint,3,opt,name=total" json:"total,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *CounterEvent) Reset() { *m = CounterEvent{} }
func (m *CounterEvent) String() string { return proto.CompactTextString(m) }
func (*CounterEvent) ProtoMessage() {}
func (m *CounterEvent) GetName() string {
if m != nil && m.Name != nil {
return *m.Name
}
return ""
}
func (m *CounterEvent) GetDelta() uint64 {
if m != nil && m.Delta != nil {
return *m.Delta
}
return 0
}
func (m *CounterEvent) GetTotal() uint64 {
if m != nil && m.Total != nil {
return *m.Total
}
return 0
}
// / A ContainerMetric records resource usage of an app in a container.
type ContainerMetric struct {
ApplicationId *string `protobuf:"bytes,1,req,name=applicationId" json:"applicationId,omitempty"`
InstanceIndex *int32 `protobuf:"varint,2,req,name=instanceIndex" json:"instanceIndex,omitempty"`
CpuPercentage *float64 `protobuf:"fixed64,3,req,name=cpuPercentage" json:"cpuPercentage,omitempty"`
MemoryBytes *uint64 `protobuf:"varint,4,req,name=memoryBytes" json:"memoryBytes,omitempty"`
DiskBytes *uint64 `protobuf:"varint,5,req,name=diskBytes" json:"diskBytes,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *ContainerMetric) Reset() { *m = ContainerMetric{} }
func (m *ContainerMetric) String() string { return proto.CompactTextString(m) }
func (*ContainerMetric) ProtoMessage() {}
func (m *ContainerMetric) GetApplicationId() string {
if m != nil && m.ApplicationId != nil {
return *m.ApplicationId
}
return ""
}
func (m *ContainerMetric) GetInstanceIndex() int32 {
if m != nil && m.InstanceIndex != nil {
return *m.InstanceIndex
}
return 0
}
func (m *ContainerMetric) GetCpuPercentage() float64 {
if m != nil && m.CpuPercentage != nil {
return *m.CpuPercentage
}
return 0
}
func (m *ContainerMetric) GetMemoryBytes() uint64 {
if m != nil && m.MemoryBytes != nil {
return *m.MemoryBytes
}
return 0
}
func (m *ContainerMetric) GetDiskBytes() uint64 {
if m != nil && m.DiskBytes != nil {
return *m.DiskBytes
}
return 0
}
func init() {
}