/
condition.pb.go
132 lines (117 loc) · 5.01 KB
/
condition.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
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: condition.proto
package inspection
import (
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
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.GoGoProtoPackageIsVersion3 // please upgrade the proto package
//
//阈值判定条件
type InspectionCondition struct {
//
//比较器的类型
ComparatorType string `protobuf:"bytes,1,opt,name=comparatorType,proto3" json:"comparatorType" form:"comparatorType"`
//
//告警等级。0、5、10 分别对应 notice、warning、emergency 三个等级
Level int32 `protobuf:"varint,2,opt,name=level,proto3" json:"level" form:"level"`
//
//一个 level 内最大值。仅当 type == int 时有效
MaxValue float32 `protobuf:"fixed32,3,opt,name=maxValue,proto3" json:"maxValue" form:"maxValue"`
//
//一个 level 内最小值。仅当 type == int 时有效
MinValue float32 `protobuf:"fixed32,4,opt,name=minValue,proto3" json:"minValue" form:"minValue"`
//
//阈值。仅当 type == string 时有效
Value string `protobuf:"bytes,5,opt,name=value,proto3" json:"value" form:"value"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *InspectionCondition) Reset() { *m = InspectionCondition{} }
func (m *InspectionCondition) String() string { return proto.CompactTextString(m) }
func (*InspectionCondition) ProtoMessage() {}
func (*InspectionCondition) Descriptor() ([]byte, []int) {
return fileDescriptor_02a70b272fae186f, []int{0}
}
func (m *InspectionCondition) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_InspectionCondition.Unmarshal(m, b)
}
func (m *InspectionCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_InspectionCondition.Marshal(b, m, deterministic)
}
func (m *InspectionCondition) XXX_Merge(src proto.Message) {
xxx_messageInfo_InspectionCondition.Merge(m, src)
}
func (m *InspectionCondition) XXX_Size() int {
return xxx_messageInfo_InspectionCondition.Size(m)
}
func (m *InspectionCondition) XXX_DiscardUnknown() {
xxx_messageInfo_InspectionCondition.DiscardUnknown(m)
}
var xxx_messageInfo_InspectionCondition proto.InternalMessageInfo
func (m *InspectionCondition) GetComparatorType() string {
if m != nil {
return m.ComparatorType
}
return ""
}
func (m *InspectionCondition) GetLevel() int32 {
if m != nil {
return m.Level
}
return 0
}
func (m *InspectionCondition) GetMaxValue() float32 {
if m != nil {
return m.MaxValue
}
return 0
}
func (m *InspectionCondition) GetMinValue() float32 {
if m != nil {
return m.MinValue
}
return 0
}
func (m *InspectionCondition) GetValue() string {
if m != nil {
return m.Value
}
return ""
}
func init() {
proto.RegisterType((*InspectionCondition)(nil), "inspection.InspectionCondition")
}
func init() { proto.RegisterFile("condition.proto", fileDescriptor_02a70b272fae186f) }
var fileDescriptor_02a70b272fae186f = []byte{
// 277 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x91, 0xcf, 0x4e, 0x84, 0x30,
0x10, 0x87, 0x03, 0x8a, 0xd1, 0xc6, 0xb8, 0x86, 0x8d, 0x09, 0x7a, 0x81, 0x70, 0x30, 0x5c, 0x96,
0x1e, 0xbc, 0x79, 0x13, 0x8d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