mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-06-14 13:38:08 +00:00
Move deduplication_id in LogEvent to context field.
This commit is contained in:
244
api/go/integration/integration.pb.go
vendored
244
api/go/integration/integration.pb.go
vendored
@ -714,20 +714,18 @@ type LogEvent struct {
|
|||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
// Deduplication ID (UUID).
|
|
||||||
DeduplicationId string `protobuf:"bytes,1,opt,name=deduplication_id,json=deduplicationId,proto3" json:"deduplication_id,omitempty"`
|
|
||||||
// Timestamp.
|
// Timestamp.
|
||||||
Time *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"`
|
Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
|
||||||
// Device info.
|
// Device info.
|
||||||
DeviceInfo *DeviceInfo `protobuf:"bytes,3,opt,name=device_info,json=deviceInfo,proto3" json:"device_info,omitempty"`
|
DeviceInfo *DeviceInfo `protobuf:"bytes,2,opt,name=device_info,json=deviceInfo,proto3" json:"device_info,omitempty"`
|
||||||
// Log level.
|
// Log level.
|
||||||
Level LogLevel `protobuf:"varint,4,opt,name=level,proto3,enum=integration.LogLevel" json:"level,omitempty"`
|
Level LogLevel `protobuf:"varint,3,opt,name=level,proto3,enum=integration.LogLevel" json:"level,omitempty"`
|
||||||
// Log code.
|
// Log code.
|
||||||
Code LogCode `protobuf:"varint,5,opt,name=code,proto3,enum=integration.LogCode" json:"code,omitempty"`
|
Code LogCode `protobuf:"varint,4,opt,name=code,proto3,enum=integration.LogCode" json:"code,omitempty"`
|
||||||
// Description message.
|
// Description message.
|
||||||
Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
|
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
|
||||||
// Context map.
|
// Context map.
|
||||||
Context map[string]string `protobuf:"bytes,7,rep,name=context,proto3" json:"context,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
Context map[string]string `protobuf:"bytes,6,rep,name=context,proto3" json:"context,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *LogEvent) Reset() {
|
func (x *LogEvent) Reset() {
|
||||||
@ -762,13 +760,6 @@ func (*LogEvent) Descriptor() ([]byte, []int) {
|
|||||||
return file_integration_integration_proto_rawDescGZIP(), []int{5}
|
return file_integration_integration_proto_rawDescGZIP(), []int{5}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *LogEvent) GetDeduplicationId() string {
|
|
||||||
if x != nil {
|
|
||||||
return x.DeduplicationId
|
|
||||||
}
|
|
||||||
return ""
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *LogEvent) GetTime() *timestamppb.Timestamp {
|
func (x *LogEvent) GetTime() *timestamppb.Timestamp {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Time
|
return x.Time
|
||||||
@ -1299,119 +1290,116 @@ var file_integration_integration_proto_rawDesc = []byte{
|
|||||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x49, 0x64, 0x12,
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x49, 0x64, 0x12,
|
||||||
0x2b, 0x0a, 0x07, 0x74, 0x78, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b,
|
0x2b, 0x0a, 0x07, 0x74, 0x78, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b,
|
||||||
0x32, 0x12, 0x2e, 0x67, 0x77, 0x2e, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x54, 0x78,
|
0x32, 0x12, 0x2e, 0x67, 0x77, 0x2e, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x54, 0x78,
|
||||||
0x49, 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x74, 0x78, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x92, 0x03, 0x0a,
|
0x49, 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x74, 0x78, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0xe7, 0x02, 0x0a,
|
||||||
0x08, 0x4c, 0x6f, 0x67, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x64, 0x65, 0x64,
|
0x08, 0x4c, 0x6f, 0x67, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x69, 0x6d,
|
||||||
0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20,
|
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
|
||||||
0x01, 0x28, 0x09, 0x52, 0x0f, 0x64, 0x65, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69,
|
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74,
|
||||||
0x6f, 0x6e, 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01,
|
0x61, 0x6d, 0x70, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x0b, 0x64, 0x65, 0x76,
|
||||||
0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
0x69, 0x63, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17,
|
||||||
0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04,
|
0x2e, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x44, 0x65, 0x76,
|
||||||
0x74, 0x69, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x0b, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69,
|
0x69, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49,
|
||||||
0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x69, 0x6e, 0x74, 0x65,
|
0x6e, 0x66, 0x6f, 0x12, 0x2b, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x03, 0x20, 0x01,
|
||||||
0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x6e,
|
0x28, 0x0e, 0x32, 0x15, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
||||||
0x66, 0x6f, 0x52, 0x0a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x2b,
|
0x2e, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c,
|
||||||
0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e,
|
0x12, 0x28, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14,
|
||||||
0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4c, 0x6f, 0x67, 0x4c,
|
0x2e, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4c, 0x6f, 0x67,
|
||||||
0x65, 0x76, 0x65, 0x6c, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x28, 0x0a, 0x04, 0x63,
|
0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65,
|
||||||
0x6f, 0x64, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x69, 0x6e, 0x74, 0x65,
|
0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||||
0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4c, 0x6f, 0x67, 0x43, 0x6f, 0x64, 0x65, 0x52,
|
0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3c, 0x0a, 0x07,
|
||||||
0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,
|
0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e,
|
||||||
0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63,
|
0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4c, 0x6f, 0x67, 0x45,
|
||||||
0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3c, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65,
|
0x76, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x45, 0x6e, 0x74, 0x72,
|
||||||
0x78, 0x74, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x67,
|
0x79, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x1a, 0x3a, 0x0a, 0x0c, 0x43, 0x6f,
|
||||||
0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4c, 0x6f, 0x67, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e,
|
0x6e, 0x74, 0x65, 0x78, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65,
|
||||||
0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x63, 0x6f,
|
0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05,
|
||||||
0x6e, 0x74, 0x65, 0x78, 0x74, 0x1a, 0x3a, 0x0a, 0x0c, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74,
|
0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c,
|
||||||
0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
|
0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xcf, 0x02, 0x0a, 0x0b, 0x53, 0x74, 0x61, 0x74, 0x75,
|
||||||
0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
|
0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x64, 0x65, 0x64, 0x75, 0x70, 0x6c,
|
||||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,
|
0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
|
||||||
0x01, 0x22, 0xcf, 0x02, 0x0a, 0x0b, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x45, 0x76, 0x65, 0x6e,
|
0x52, 0x0f, 0x64, 0x65, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49,
|
||||||
0x74, 0x12, 0x29, 0x0a, 0x10, 0x64, 0x65, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69,
|
0x64, 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||||
0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x64, 0x65, 0x64,
|
0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
|
||||||
0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x04,
|
0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, 0x74, 0x69, 0x6d,
|
||||||
0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f,
|
0x65, 0x12, 0x38, 0x0a, 0x0b, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f,
|
||||||
0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d,
|
0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61,
|
||||||
0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x0b,
|
0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52,
|
||||||
0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28,
|
0x0a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x6d,
|
||||||
0x0b, 0x32, 0x17, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e,
|
0x61, 0x72, 0x67, 0x69, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6d, 0x61, 0x72,
|
||||||
0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0a, 0x64, 0x65, 0x76, 0x69,
|
0x67, 0x69, 0x6e, 0x12, 0x32, 0x0a, 0x15, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f,
|
||||||
0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x61, 0x72, 0x67, 0x69, 0x6e,
|
0x70, 0x6f, 0x77, 0x65, 0x72, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01,
|
||||||
0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x12, 0x32,
|
0x28, 0x08, 0x52, 0x13, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x50, 0x6f, 0x77, 0x65,
|
||||||
0x0a, 0x15, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x70, 0x6f, 0x77, 0x65, 0x72,
|
0x72, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x3a, 0x0a, 0x19, 0x62, 0x61, 0x74, 0x74, 0x65,
|
||||||
0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x65,
|
0x72, 0x79, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x75, 0x6e, 0x61, 0x76, 0x61, 0x69, 0x6c,
|
||||||
0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x53, 0x6f, 0x75, 0x72,
|
0x61, 0x62, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x17, 0x62, 0x61, 0x74, 0x74,
|
||||||
0x63, 0x65, 0x12, 0x3a, 0x0a, 0x19, 0x62, 0x61, 0x74, 0x74, 0x65, 0x72, 0x79, 0x5f, 0x6c, 0x65,
|
0x65, 0x72, 0x79, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x55, 0x6e, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61,
|
||||||
0x76, 0x65, 0x6c, 0x5f, 0x75, 0x6e, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18,
|
0x62, 0x6c, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x62, 0x61, 0x74, 0x74, 0x65, 0x72, 0x79, 0x5f, 0x6c,
|
||||||
0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x17, 0x62, 0x61, 0x74, 0x74, 0x65, 0x72, 0x79, 0x4c, 0x65,
|
0x65, 0x76, 0x65, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0c, 0x62, 0x61, 0x74, 0x74,
|
||||||
0x76, 0x65, 0x6c, 0x55, 0x6e, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x23,
|
0x65, 0x72, 0x79, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0xd2, 0x01, 0x0a, 0x0d, 0x4c, 0x6f, 0x63,
|
||||||
0x0a, 0x0d, 0x62, 0x61, 0x74, 0x74, 0x65, 0x72, 0x79, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18,
|
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x64, 0x65,
|
||||||
0x08, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0c, 0x62, 0x61, 0x74, 0x74, 0x65, 0x72, 0x79, 0x4c, 0x65,
|
0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01,
|
||||||
0x76, 0x65, 0x6c, 0x22, 0xd2, 0x01, 0x0a, 0x0d, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x64, 0x65, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74,
|
||||||
0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x64, 0x65, 0x64, 0x75, 0x70, 0x6c, 0x69,
|
0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20,
|
||||||
0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
|
||||||
0x0f, 0x64, 0x65, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64,
|
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52,
|
||||||
0x12, 0x2e, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,
|
0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x0b, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f,
|
||||||
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
|
0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x69, 0x6e, 0x74,
|
||||||
0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65,
|
0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49,
|
||||||
0x12, 0x38, 0x0a, 0x0b, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18,
|
0x6e, 0x66, 0x6f, 0x52, 0x0a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12,
|
||||||
0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74,
|
0x2c, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28,
|
||||||
0x69, 0x6f, 0x6e, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0a,
|
0x0b, 0x32, 0x10, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74,
|
||||||
0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x2c, 0x0a, 0x08, 0x6c, 0x6f,
|
0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa2, 0x02,
|
||||||
0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x63,
|
0x0a, 0x10, 0x49, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65,
|
||||||
0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08,
|
0x6e, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x64, 0x65, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74,
|
||||||
0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa2, 0x02, 0x0a, 0x10, 0x49, 0x6e, 0x74,
|
0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x64, 0x65,
|
||||||
0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x29, 0x0a,
|
0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x2e, 0x0a,
|
||||||
0x10, 0x64, 0x65, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69,
|
0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,
|
||||||
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x64, 0x65, 0x64, 0x75, 0x70, 0x6c, 0x69,
|
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69,
|
||||||
0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65,
|
0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x38, 0x0a,
|
||||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
|
0x0b, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01,
|
||||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
|
0x28, 0x0b, 0x32, 0x17, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
||||||
0x6d, 0x70, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x0b, 0x64, 0x65, 0x76, 0x69,
|
0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0a, 0x64, 0x65, 0x76,
|
||||||
0x63, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e,
|
0x69, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x29, 0x0a, 0x10, 0x69, 0x6e, 0x74, 0x65, 0x67,
|
||||||
0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x44, 0x65, 0x76, 0x69,
|
0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28,
|
||||||
0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x6e,
|
0x09, 0x52, 0x0f, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61,
|
||||||
0x66, 0x6f, 0x12, 0x29, 0x0a, 0x10, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f,
|
0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65,
|
||||||
0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x69, 0x6e,
|
0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70,
|
||||||
0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a,
|
0x65, 0x12, 0x2f, 0x0a, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28,
|
||||||
0x0a, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28,
|
0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||||
0x09, 0x52, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2f, 0x0a, 0x06,
|
0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x06, 0x6f, 0x62, 0x6a, 0x65,
|
||||||
0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67,
|
0x63, 0x74, 0x22, 0xb4, 0x01, 0x0a, 0x0f, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x43,
|
||||||
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53,
|
0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
|
||||||
0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x22, 0xb4, 0x01,
|
0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x64, 0x65, 0x76, 0x5f, 0x65, 0x75,
|
||||||
0x0a, 0x0f, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e,
|
0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x76, 0x45, 0x75, 0x69, 0x12,
|
||||||
0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69,
|
0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01,
|
||||||
0x64, 0x12, 0x17, 0x0a, 0x07, 0x64, 0x65, 0x76, 0x5f, 0x65, 0x75, 0x69, 0x18, 0x02, 0x20, 0x01,
|
0x28, 0x08, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x65, 0x64, 0x12, 0x15, 0x0a,
|
||||||
0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x76, 0x45, 0x75, 0x69, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f,
|
0x06, 0x66, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x66,
|
||||||
0x6e, 0x66, 0x69, 0x72, 0x6d, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x63,
|
0x50, 0x6f, 0x72, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01,
|
||||||
0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x65, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x66, 0x5f, 0x70, 0x6f,
|
0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2f, 0x0a, 0x06, 0x6f, 0x62, 0x6a, 0x65,
|
||||||
0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x66, 0x50, 0x6f, 0x72, 0x74, 0x12,
|
0x63, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
|
||||||
0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64,
|
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63,
|
||||||
0x61, 0x74, 0x61, 0x12, 0x2f, 0x0a, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x06, 0x20,
|
0x74, 0x52, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2a, 0x2c, 0x0a, 0x08, 0x4c, 0x6f, 0x67,
|
||||||
0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
|
0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x4e, 0x46, 0x4f, 0x10, 0x00, 0x12,
|
||||||
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x06, 0x6f, 0x62,
|
0x0b, 0x0a, 0x07, 0x57, 0x41, 0x52, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05,
|
||||||
0x6a, 0x65, 0x63, 0x74, 0x2a, 0x2c, 0x0a, 0x08, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c,
|
0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x02, 0x2a, 0xc0, 0x01, 0x0a, 0x07, 0x4c, 0x6f, 0x67, 0x43,
|
||||||
0x12, 0x08, 0x0a, 0x04, 0x49, 0x4e, 0x46, 0x4f, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x41,
|
0x6f, 0x64, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00,
|
||||||
0x52, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52,
|
0x12, 0x19, 0x0a, 0x15, 0x44, 0x4f, 0x57, 0x4e, 0x4c, 0x49, 0x4e, 0x4b, 0x5f, 0x50, 0x41, 0x59,
|
||||||
0x10, 0x02, 0x2a, 0xc0, 0x01, 0x0a, 0x07, 0x4c, 0x6f, 0x67, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x0b,
|
0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x53, 0x49, 0x5a, 0x45, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x55,
|
||||||
0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x44,
|
0x50, 0x4c, 0x49, 0x4e, 0x4b, 0x5f, 0x43, 0x4f, 0x44, 0x45, 0x43, 0x10, 0x02, 0x12, 0x12, 0x0a,
|
||||||
0x4f, 0x57, 0x4e, 0x4c, 0x49, 0x4e, 0x4b, 0x5f, 0x50, 0x41, 0x59, 0x4c, 0x4f, 0x41, 0x44, 0x5f,
|
0x0e, 0x44, 0x4f, 0x57, 0x4e, 0x4c, 0x49, 0x4e, 0x4b, 0x5f, 0x43, 0x4f, 0x44, 0x45, 0x43, 0x10,
|
||||||
0x53, 0x49, 0x5a, 0x45, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x55, 0x50, 0x4c, 0x49, 0x4e, 0x4b,
|
0x03, 0x12, 0x08, 0x0a, 0x04, 0x4f, 0x54, 0x41, 0x41, 0x10, 0x04, 0x12, 0x16, 0x0a, 0x12, 0x55,
|
||||||
0x5f, 0x43, 0x4f, 0x44, 0x45, 0x43, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x44, 0x4f, 0x57, 0x4e,
|
0x50, 0x4c, 0x49, 0x4e, 0x4b, 0x5f, 0x46, 0x5f, 0x43, 0x4e, 0x54, 0x5f, 0x52, 0x45, 0x53, 0x45,
|
||||||
0x4c, 0x49, 0x4e, 0x4b, 0x5f, 0x43, 0x4f, 0x44, 0x45, 0x43, 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04,
|
0x54, 0x10, 0x05, 0x12, 0x0e, 0x0a, 0x0a, 0x55, 0x50, 0x4c, 0x49, 0x4e, 0x4b, 0x5f, 0x4d, 0x49,
|
||||||
0x4f, 0x54, 0x41, 0x41, 0x10, 0x04, 0x12, 0x16, 0x0a, 0x12, 0x55, 0x50, 0x4c, 0x49, 0x4e, 0x4b,
|
0x43, 0x10, 0x06, 0x12, 0x1f, 0x0a, 0x1b, 0x55, 0x50, 0x4c, 0x49, 0x4e, 0x4b, 0x5f, 0x46, 0x5f,
|
||||||
0x5f, 0x46, 0x5f, 0x43, 0x4e, 0x54, 0x5f, 0x52, 0x45, 0x53, 0x45, 0x54, 0x10, 0x05, 0x12, 0x0e,
|
0x43, 0x4e, 0x54, 0x5f, 0x52, 0x45, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x4d, 0x49, 0x53, 0x53, 0x49,
|
||||||
0x0a, 0x0a, 0x55, 0x50, 0x4c, 0x49, 0x4e, 0x4b, 0x5f, 0x4d, 0x49, 0x43, 0x10, 0x06, 0x12, 0x1f,
|
0x4f, 0x4e, 0x10, 0x07, 0x12, 0x14, 0x0a, 0x10, 0x44, 0x4f, 0x57, 0x4e, 0x4c, 0x49, 0x4e, 0x4b,
|
||||||
0x0a, 0x1b, 0x55, 0x50, 0x4c, 0x49, 0x4e, 0x4b, 0x5f, 0x46, 0x5f, 0x43, 0x4e, 0x54, 0x5f, 0x52,
|
0x5f, 0x47, 0x41, 0x54, 0x45, 0x57, 0x41, 0x59, 0x10, 0x08, 0x42, 0x6b, 0x0a, 0x20, 0x69, 0x6f,
|
||||||
0x45, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x10, 0x07, 0x12,
|
0x2e, 0x63, 0x68, 0x69, 0x72, 0x70, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x61, 0x70, 0x69, 0x2e,
|
||||||
0x14, 0x0a, 0x10, 0x44, 0x4f, 0x57, 0x4e, 0x4c, 0x49, 0x4e, 0x4b, 0x5f, 0x47, 0x41, 0x54, 0x45,
|
0x61, 0x73, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x10,
|
||||||
0x57, 0x41, 0x59, 0x10, 0x08, 0x42, 0x6b, 0x0a, 0x20, 0x69, 0x6f, 0x2e, 0x63, 0x68, 0x69, 0x72,
|
0x49, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f,
|
||||||
0x70, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x73, 0x2e, 0x69, 0x6e,
|
0x50, 0x01, 0x5a, 0x33, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62,
|
||||||
0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x10, 0x49, 0x6e, 0x74, 0x65, 0x67,
|
0x72, 0x6f, 0x63, 0x61, 0x61, 0x72, 0x2f, 0x63, 0x68, 0x69, 0x72, 0x70, 0x73, 0x74, 0x61, 0x63,
|
||||||
0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x33, 0x67,
|
0x6b, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x34, 0x2f, 0x69, 0x6e, 0x74, 0x65,
|
||||||
0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x72, 0x6f, 0x63, 0x61, 0x61,
|
0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
0x72, 0x2f, 0x63, 0x68, 0x69, 0x72, 0x70, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2f, 0x61, 0x70, 0x69,
|
|
||||||
0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x34, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69,
|
|
||||||
0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
4
api/js/integration/integration_pb.d.ts
vendored
4
api/js/integration/integration_pb.d.ts
vendored
@ -269,9 +269,6 @@ export namespace TxAckEvent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class LogEvent extends jspb.Message {
|
export class LogEvent extends jspb.Message {
|
||||||
getDeduplicationId(): string;
|
|
||||||
setDeduplicationId(value: string): void;
|
|
||||||
|
|
||||||
hasTime(): boolean;
|
hasTime(): boolean;
|
||||||
clearTime(): void;
|
clearTime(): void;
|
||||||
getTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
getTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||||
@ -305,7 +302,6 @@ export class LogEvent extends jspb.Message {
|
|||||||
|
|
||||||
export namespace LogEvent {
|
export namespace LogEvent {
|
||||||
export type AsObject = {
|
export type AsObject = {
|
||||||
deduplicationId: string,
|
|
||||||
time?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
time?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||||
deviceInfo?: DeviceInfo.AsObject,
|
deviceInfo?: DeviceInfo.AsObject,
|
||||||
level: LogLevelMap[keyof LogLevelMap],
|
level: LogLevelMap[keyof LogLevelMap],
|
||||||
|
87
api/js/integration/integration_pb.js
vendored
87
api/js/integration/integration_pb.js
vendored
@ -2017,7 +2017,6 @@ proto.integration.LogEvent.prototype.toObject = function(opt_includeInstance) {
|
|||||||
*/
|
*/
|
||||||
proto.integration.LogEvent.toObject = function(includeInstance, msg) {
|
proto.integration.LogEvent.toObject = function(includeInstance, msg) {
|
||||||
var f, obj = {
|
var f, obj = {
|
||||||
deduplicationId: msg.getDeduplicationId(),
|
|
||||||
time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
||||||
deviceInfo: (f = msg.getDeviceInfo()) && proto.integration.DeviceInfo.toObject(includeInstance, f),
|
deviceInfo: (f = msg.getDeviceInfo()) && proto.integration.DeviceInfo.toObject(includeInstance, f),
|
||||||
level: msg.getLevel(),
|
level: msg.getLevel(),
|
||||||
@ -2061,32 +2060,28 @@ proto.integration.LogEvent.deserializeBinaryFromReader = function(msg, reader) {
|
|||||||
var field = reader.getFieldNumber();
|
var field = reader.getFieldNumber();
|
||||||
switch (field) {
|
switch (field) {
|
||||||
case 1:
|
case 1:
|
||||||
var value = /** @type {string} */ (reader.readString());
|
|
||||||
msg.setDeduplicationId(value);
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
var value = new google_protobuf_timestamp_pb.Timestamp;
|
var value = new google_protobuf_timestamp_pb.Timestamp;
|
||||||
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
||||||
msg.setTime(value);
|
msg.setTime(value);
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 2:
|
||||||
var value = new proto.integration.DeviceInfo;
|
var value = new proto.integration.DeviceInfo;
|
||||||
reader.readMessage(value,proto.integration.DeviceInfo.deserializeBinaryFromReader);
|
reader.readMessage(value,proto.integration.DeviceInfo.deserializeBinaryFromReader);
|
||||||
msg.setDeviceInfo(value);
|
msg.setDeviceInfo(value);
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 3:
|
||||||
var value = /** @type {!proto.integration.LogLevel} */ (reader.readEnum());
|
var value = /** @type {!proto.integration.LogLevel} */ (reader.readEnum());
|
||||||
msg.setLevel(value);
|
msg.setLevel(value);
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 4:
|
||||||
var value = /** @type {!proto.integration.LogCode} */ (reader.readEnum());
|
var value = /** @type {!proto.integration.LogCode} */ (reader.readEnum());
|
||||||
msg.setCode(value);
|
msg.setCode(value);
|
||||||
break;
|
break;
|
||||||
case 6:
|
case 5:
|
||||||
var value = /** @type {string} */ (reader.readString());
|
var value = /** @type {string} */ (reader.readString());
|
||||||
msg.setDescription(value);
|
msg.setDescription(value);
|
||||||
break;
|
break;
|
||||||
case 7:
|
case 6:
|
||||||
var value = msg.getContextMap();
|
var value = msg.getContextMap();
|
||||||
reader.readMessage(value, function(message, reader) {
|
reader.readMessage(value, function(message, reader) {
|
||||||
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString);
|
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString);
|
||||||
@ -2130,17 +2125,10 @@ proto.integration.LogEvent.prototype.serializeBinary = function() {
|
|||||||
*/
|
*/
|
||||||
proto.integration.LogEvent.prototype.serializeBinaryToWriter = function (writer) {
|
proto.integration.LogEvent.prototype.serializeBinaryToWriter = function (writer) {
|
||||||
var f = undefined;
|
var f = undefined;
|
||||||
f = this.getDeduplicationId();
|
|
||||||
if (f.length > 0) {
|
|
||||||
writer.writeString(
|
|
||||||
1,
|
|
||||||
f
|
|
||||||
);
|
|
||||||
}
|
|
||||||
f = this.getTime();
|
f = this.getTime();
|
||||||
if (f != null) {
|
if (f != null) {
|
||||||
writer.writeMessage(
|
writer.writeMessage(
|
||||||
2,
|
1,
|
||||||
f,
|
f,
|
||||||
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
||||||
);
|
);
|
||||||
@ -2148,7 +2136,7 @@ proto.integration.LogEvent.prototype.serializeBinaryToWriter = function (writer)
|
|||||||
f = this.getDeviceInfo();
|
f = this.getDeviceInfo();
|
||||||
if (f != null) {
|
if (f != null) {
|
||||||
writer.writeMessage(
|
writer.writeMessage(
|
||||||
3,
|
2,
|
||||||
f,
|
f,
|
||||||
proto.integration.DeviceInfo.serializeBinaryToWriter
|
proto.integration.DeviceInfo.serializeBinaryToWriter
|
||||||
);
|
);
|
||||||
@ -2156,27 +2144,27 @@ proto.integration.LogEvent.prototype.serializeBinaryToWriter = function (writer)
|
|||||||
f = this.getLevel();
|
f = this.getLevel();
|
||||||
if (f !== 0.0) {
|
if (f !== 0.0) {
|
||||||
writer.writeEnum(
|
writer.writeEnum(
|
||||||
4,
|
3,
|
||||||
f
|
f
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
f = this.getCode();
|
f = this.getCode();
|
||||||
if (f !== 0.0) {
|
if (f !== 0.0) {
|
||||||
writer.writeEnum(
|
writer.writeEnum(
|
||||||
5,
|
4,
|
||||||
f
|
f
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
f = this.getDescription();
|
f = this.getDescription();
|
||||||
if (f.length > 0) {
|
if (f.length > 0) {
|
||||||
writer.writeString(
|
writer.writeString(
|
||||||
6,
|
5,
|
||||||
f
|
f
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
f = this.getContextMap(true);
|
f = this.getContextMap(true);
|
||||||
if (f && f.getLength() > 0) {
|
if (f && f.getLength() > 0) {
|
||||||
f.serializeBinary(7, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
|
f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -2191,33 +2179,18 @@ proto.integration.LogEvent.prototype.cloneMessage = function() {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* optional string deduplication_id = 1;
|
* optional google.protobuf.Timestamp time = 1;
|
||||||
* @return {string}
|
|
||||||
*/
|
|
||||||
proto.integration.LogEvent.prototype.getDeduplicationId = function() {
|
|
||||||
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/** @param {string} value */
|
|
||||||
proto.integration.LogEvent.prototype.setDeduplicationId = function(value) {
|
|
||||||
jspb.Message.setField(this, 1, value);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* optional google.protobuf.Timestamp time = 2;
|
|
||||||
* @return {proto.google.protobuf.Timestamp}
|
* @return {proto.google.protobuf.Timestamp}
|
||||||
*/
|
*/
|
||||||
proto.integration.LogEvent.prototype.getTime = function() {
|
proto.integration.LogEvent.prototype.getTime = function() {
|
||||||
return /** @type{proto.google.protobuf.Timestamp} */ (
|
return /** @type{proto.google.protobuf.Timestamp} */ (
|
||||||
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
|
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/** @param {proto.google.protobuf.Timestamp|undefined} value */
|
/** @param {proto.google.protobuf.Timestamp|undefined} value */
|
||||||
proto.integration.LogEvent.prototype.setTime = function(value) {
|
proto.integration.LogEvent.prototype.setTime = function(value) {
|
||||||
jspb.Message.setWrapperField(this, 2, value);
|
jspb.Message.setWrapperField(this, 1, value);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -2231,23 +2204,23 @@ proto.integration.LogEvent.prototype.clearTime = function() {
|
|||||||
* @return{!boolean}
|
* @return{!boolean}
|
||||||
*/
|
*/
|
||||||
proto.integration.LogEvent.prototype.hasTime = function() {
|
proto.integration.LogEvent.prototype.hasTime = function() {
|
||||||
return jspb.Message.getField(this, 2) != null;
|
return jspb.Message.getField(this, 1) != null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* optional DeviceInfo device_info = 3;
|
* optional DeviceInfo device_info = 2;
|
||||||
* @return {proto.integration.DeviceInfo}
|
* @return {proto.integration.DeviceInfo}
|
||||||
*/
|
*/
|
||||||
proto.integration.LogEvent.prototype.getDeviceInfo = function() {
|
proto.integration.LogEvent.prototype.getDeviceInfo = function() {
|
||||||
return /** @type{proto.integration.DeviceInfo} */ (
|
return /** @type{proto.integration.DeviceInfo} */ (
|
||||||
jspb.Message.getWrapperField(this, proto.integration.DeviceInfo, 3));
|
jspb.Message.getWrapperField(this, proto.integration.DeviceInfo, 2));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/** @param {proto.integration.DeviceInfo|undefined} value */
|
/** @param {proto.integration.DeviceInfo|undefined} value */
|
||||||
proto.integration.LogEvent.prototype.setDeviceInfo = function(value) {
|
proto.integration.LogEvent.prototype.setDeviceInfo = function(value) {
|
||||||
jspb.Message.setWrapperField(this, 3, value);
|
jspb.Message.setWrapperField(this, 2, value);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -2261,64 +2234,64 @@ proto.integration.LogEvent.prototype.clearDeviceInfo = function() {
|
|||||||
* @return{!boolean}
|
* @return{!boolean}
|
||||||
*/
|
*/
|
||||||
proto.integration.LogEvent.prototype.hasDeviceInfo = function() {
|
proto.integration.LogEvent.prototype.hasDeviceInfo = function() {
|
||||||
return jspb.Message.getField(this, 3) != null;
|
return jspb.Message.getField(this, 2) != null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* optional LogLevel level = 4;
|
* optional LogLevel level = 3;
|
||||||
* @return {!proto.integration.LogLevel}
|
* @return {!proto.integration.LogLevel}
|
||||||
*/
|
*/
|
||||||
proto.integration.LogEvent.prototype.getLevel = function() {
|
proto.integration.LogEvent.prototype.getLevel = function() {
|
||||||
return /** @type {!proto.integration.LogLevel} */ (jspb.Message.getFieldProto3(this, 4, 0));
|
return /** @type {!proto.integration.LogLevel} */ (jspb.Message.getFieldProto3(this, 3, 0));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/** @param {!proto.integration.LogLevel} value */
|
/** @param {!proto.integration.LogLevel} value */
|
||||||
proto.integration.LogEvent.prototype.setLevel = function(value) {
|
proto.integration.LogEvent.prototype.setLevel = function(value) {
|
||||||
jspb.Message.setField(this, 4, value);
|
jspb.Message.setField(this, 3, value);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* optional LogCode code = 5;
|
* optional LogCode code = 4;
|
||||||
* @return {!proto.integration.LogCode}
|
* @return {!proto.integration.LogCode}
|
||||||
*/
|
*/
|
||||||
proto.integration.LogEvent.prototype.getCode = function() {
|
proto.integration.LogEvent.prototype.getCode = function() {
|
||||||
return /** @type {!proto.integration.LogCode} */ (jspb.Message.getFieldProto3(this, 5, 0));
|
return /** @type {!proto.integration.LogCode} */ (jspb.Message.getFieldProto3(this, 4, 0));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/** @param {!proto.integration.LogCode} value */
|
/** @param {!proto.integration.LogCode} value */
|
||||||
proto.integration.LogEvent.prototype.setCode = function(value) {
|
proto.integration.LogEvent.prototype.setCode = function(value) {
|
||||||
jspb.Message.setField(this, 5, value);
|
jspb.Message.setField(this, 4, value);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* optional string description = 6;
|
* optional string description = 5;
|
||||||
* @return {string}
|
* @return {string}
|
||||||
*/
|
*/
|
||||||
proto.integration.LogEvent.prototype.getDescription = function() {
|
proto.integration.LogEvent.prototype.getDescription = function() {
|
||||||
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 6, ""));
|
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 5, ""));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/** @param {string} value */
|
/** @param {string} value */
|
||||||
proto.integration.LogEvent.prototype.setDescription = function(value) {
|
proto.integration.LogEvent.prototype.setDescription = function(value) {
|
||||||
jspb.Message.setField(this, 6, value);
|
jspb.Message.setField(this, 5, value);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* map<string, string> context = 7;
|
* map<string, string> context = 6;
|
||||||
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
||||||
* empty, instead returning `undefined`
|
* empty, instead returning `undefined`
|
||||||
* @return {!jspb.Map<string,string>}
|
* @return {!jspb.Map<string,string>}
|
||||||
*/
|
*/
|
||||||
proto.integration.LogEvent.prototype.getContextMap = function(opt_noLazyCreate) {
|
proto.integration.LogEvent.prototype.getContextMap = function(opt_noLazyCreate) {
|
||||||
return /** @type {!jspb.Map<string,string>} */ (
|
return /** @type {!jspb.Map<string,string>} */ (
|
||||||
jspb.Message.getMapField(this, 7, opt_noLazyCreate,
|
jspb.Message.getMapField(this, 6, opt_noLazyCreate,
|
||||||
null));
|
null));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
15
api/proto/integration/integration.proto
vendored
15
api/proto/integration/integration.proto
vendored
@ -191,26 +191,23 @@ message TxAckEvent {
|
|||||||
|
|
||||||
// LogEvent is the message sent when a device-related log was sent.
|
// LogEvent is the message sent when a device-related log was sent.
|
||||||
message LogEvent {
|
message LogEvent {
|
||||||
// Deduplication ID (UUID).
|
|
||||||
string deduplication_id = 1;
|
|
||||||
|
|
||||||
// Timestamp.
|
// Timestamp.
|
||||||
google.protobuf.Timestamp time = 2;
|
google.protobuf.Timestamp time = 1;
|
||||||
|
|
||||||
// Device info.
|
// Device info.
|
||||||
DeviceInfo device_info = 3;
|
DeviceInfo device_info = 2;
|
||||||
|
|
||||||
// Log level.
|
// Log level.
|
||||||
LogLevel level = 4;
|
LogLevel level = 3;
|
||||||
|
|
||||||
// Log code.
|
// Log code.
|
||||||
LogCode code = 5;
|
LogCode code = 4;
|
||||||
|
|
||||||
// Description message.
|
// Description message.
|
||||||
string description = 6;
|
string description = 5;
|
||||||
|
|
||||||
// Context map.
|
// Context map.
|
||||||
map<string, string> context = 7;
|
map<string, string> context = 6;
|
||||||
}
|
}
|
||||||
|
|
||||||
// StatusEvent is the message sent when a device-status mac-command was sent
|
// StatusEvent is the message sent when a device-status mac-command was sent
|
||||||
|
@ -191,26 +191,23 @@ message TxAckEvent {
|
|||||||
|
|
||||||
// LogEvent is the message sent when a device-related log was sent.
|
// LogEvent is the message sent when a device-related log was sent.
|
||||||
message LogEvent {
|
message LogEvent {
|
||||||
// Deduplication ID (UUID).
|
|
||||||
string deduplication_id = 1;
|
|
||||||
|
|
||||||
// Timestamp.
|
// Timestamp.
|
||||||
google.protobuf.Timestamp time = 2;
|
google.protobuf.Timestamp time = 1;
|
||||||
|
|
||||||
// Device info.
|
// Device info.
|
||||||
DeviceInfo device_info = 3;
|
DeviceInfo device_info = 2;
|
||||||
|
|
||||||
// Log level.
|
// Log level.
|
||||||
LogLevel level = 4;
|
LogLevel level = 3;
|
||||||
|
|
||||||
// Log code.
|
// Log code.
|
||||||
LogCode code = 5;
|
LogCode code = 4;
|
||||||
|
|
||||||
// Description message.
|
// Description message.
|
||||||
string description = 6;
|
string description = 5;
|
||||||
|
|
||||||
// Context map.
|
// Context map.
|
||||||
map<string, string> context = 7;
|
map<string, string> context = 6;
|
||||||
}
|
}
|
||||||
|
|
||||||
// StatusEvent is the message sent when a device-status mac-command was sent
|
// StatusEvent is the message sent when a device-status mac-command was sent
|
||||||
|
@ -349,10 +349,6 @@ impl Data {
|
|||||||
.context("Delete device queue-item")?;
|
.context("Delete device queue-item")?;
|
||||||
|
|
||||||
let pl = integration_pb::LogEvent {
|
let pl = integration_pb::LogEvent {
|
||||||
deduplication_id: match &self.uplink_frame_set {
|
|
||||||
Some(v) => v.uplink_set_id.to_string(),
|
|
||||||
None => "".to_string(),
|
|
||||||
},
|
|
||||||
time: Some(Utc::now().into()),
|
time: Some(Utc::now().into()),
|
||||||
device_info: Some(device_info.clone()),
|
device_info: Some(device_info.clone()),
|
||||||
level: integration_pb::LogLevel::Error.into(),
|
level: integration_pb::LogLevel::Error.into(),
|
||||||
@ -363,6 +359,7 @@ impl Data {
|
|||||||
context: [
|
context: [
|
||||||
("max_payload_size".to_string(), max_payload_size.to_string()),
|
("max_payload_size".to_string(), max_payload_size.to_string()),
|
||||||
("item_size".to_string(), qi.data.len().to_string()),
|
("item_size".to_string(), qi.data.len().to_string()),
|
||||||
|
("queue_item_id".to_string(), qi.id.to_string()),
|
||||||
]
|
]
|
||||||
.iter()
|
.iter()
|
||||||
.cloned()
|
.cloned()
|
||||||
|
@ -292,27 +292,37 @@ impl Data {
|
|||||||
|
|
||||||
if self.retransmission {
|
if self.retransmission {
|
||||||
let pl = integration_pb::LogEvent {
|
let pl = integration_pb::LogEvent {
|
||||||
deduplication_id: self.uplink_frame_set.uplink_set_id.to_string(),
|
|
||||||
time: Some(ts.into()),
|
time: Some(ts.into()),
|
||||||
device_info: self.device_info.clone(),
|
device_info: self.device_info.clone(),
|
||||||
level: integration_pb::LogLevel::Warning.into(),
|
level: integration_pb::LogLevel::Warning.into(),
|
||||||
code: integration_pb::LogCode::UplinkFCntRetransmission.into(),
|
code: integration_pb::LogCode::UplinkFCntRetransmission.into(),
|
||||||
description:
|
description:
|
||||||
"Uplink was flagged as re-transmission / frame-counter did not increment".into(),
|
"Uplink was flagged as re-transmission / frame-counter did not increment".into(),
|
||||||
..Default::default()
|
context: [(
|
||||||
|
"deduplication_id".to_string(),
|
||||||
|
self.uplink_frame_set.uplink_set_id.to_string(),
|
||||||
|
)]
|
||||||
|
.iter()
|
||||||
|
.cloned()
|
||||||
|
.collect(),
|
||||||
};
|
};
|
||||||
integration::log_event(&app.id, &dev.variables, &pl).await?;
|
integration::log_event(&app.id, &dev.variables, &pl).await?;
|
||||||
}
|
}
|
||||||
|
|
||||||
if self.reset {
|
if self.reset {
|
||||||
let pl = integration_pb::LogEvent {
|
let pl = integration_pb::LogEvent {
|
||||||
deduplication_id: self.uplink_frame_set.uplink_set_id.to_string(),
|
|
||||||
time: Some(ts.into()),
|
time: Some(ts.into()),
|
||||||
device_info: self.device_info.clone(),
|
device_info: self.device_info.clone(),
|
||||||
level: integration_pb::LogLevel::Warning.into(),
|
level: integration_pb::LogLevel::Warning.into(),
|
||||||
code: integration_pb::LogCode::UplinkFCntReset.into(),
|
code: integration_pb::LogCode::UplinkFCntReset.into(),
|
||||||
description: "Frame-counter reset or rollover detected".into(),
|
description: "Frame-counter reset or rollover detected".into(),
|
||||||
..Default::default()
|
context: [(
|
||||||
|
"deduplication_id".to_string(),
|
||||||
|
self.uplink_frame_set.uplink_set_id.to_string(),
|
||||||
|
)]
|
||||||
|
.iter()
|
||||||
|
.cloned()
|
||||||
|
.collect(),
|
||||||
};
|
};
|
||||||
integration::log_event(&app.id, &dev.variables, &pl).await?;
|
integration::log_event(&app.id, &dev.variables, &pl).await?;
|
||||||
}
|
}
|
||||||
@ -637,13 +647,15 @@ impl Data {
|
|||||||
&app.id,
|
&app.id,
|
||||||
&dev.variables,
|
&dev.variables,
|
||||||
&integration_pb::LogEvent {
|
&integration_pb::LogEvent {
|
||||||
deduplication_id: pl.deduplication_id.clone(),
|
|
||||||
time: Some(Utc::now().into()),
|
time: Some(Utc::now().into()),
|
||||||
device_info: self.device_info.clone(),
|
device_info: self.device_info.clone(),
|
||||||
level: integration_pb::LogLevel::Error.into(),
|
level: integration_pb::LogLevel::Error.into(),
|
||||||
code: integration_pb::LogCode::UplinkCodec.into(),
|
code: integration_pb::LogCode::UplinkCodec.into(),
|
||||||
description: format!("{}", e),
|
description: format!("{}", e),
|
||||||
..Default::default()
|
context: [("deduplication_id".to_string(), pl.deduplication_id.clone())]
|
||||||
|
.iter()
|
||||||
|
.cloned()
|
||||||
|
.collect(),
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
.await?;
|
.await?;
|
||||||
|
@ -261,13 +261,18 @@ impl JoinRequest {
|
|||||||
&app.id,
|
&app.id,
|
||||||
&dev.variables,
|
&dev.variables,
|
||||||
&integration_pb::LogEvent {
|
&integration_pb::LogEvent {
|
||||||
deduplication_id: self.uplink_frame_set.uplink_set_id.to_string(),
|
|
||||||
time: Some(Utc::now().into()),
|
time: Some(Utc::now().into()),
|
||||||
device_info: self.device_info.clone(),
|
device_info: self.device_info.clone(),
|
||||||
level: integration_pb::LogLevel::Error.into(),
|
level: integration_pb::LogLevel::Error.into(),
|
||||||
code: integration_pb::LogCode::Otaa.into(),
|
code: integration_pb::LogCode::Otaa.into(),
|
||||||
description: "DevNonce has already been used".into(),
|
description: "DevNonce has already been used".into(),
|
||||||
..Default::default()
|
context: [(
|
||||||
|
"deduplication_id".to_string(),
|
||||||
|
self.uplink_frame_set.uplink_set_id.to_string(),
|
||||||
|
)]
|
||||||
|
.iter()
|
||||||
|
.cloned()
|
||||||
|
.collect(),
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
.await?;
|
.await?;
|
||||||
@ -311,13 +316,18 @@ impl JoinRequest {
|
|||||||
&app.id,
|
&app.id,
|
||||||
&dev.variables,
|
&dev.variables,
|
||||||
&integration_pb::LogEvent {
|
&integration_pb::LogEvent {
|
||||||
deduplication_id: self.uplink_frame_set.uplink_set_id.to_string(),
|
|
||||||
time: Some(Utc::now().into()),
|
time: Some(Utc::now().into()),
|
||||||
device_info: self.device_info.clone(),
|
device_info: self.device_info.clone(),
|
||||||
level: integration_pb::LogLevel::Error.into(),
|
level: integration_pb::LogLevel::Error.into(),
|
||||||
code: integration_pb::LogCode::UplinkMic.into(),
|
code: integration_pb::LogCode::UplinkMic.into(),
|
||||||
description: "MIC of join-request is invalid, make sure keys are correct".into(),
|
description: "MIC of join-request is invalid, make sure keys are correct".into(),
|
||||||
..Default::default()
|
context: [(
|
||||||
|
"deduplication_id".to_string(),
|
||||||
|
self.uplink_frame_set.uplink_set_id.to_string(),
|
||||||
|
)]
|
||||||
|
.iter()
|
||||||
|
.cloned()
|
||||||
|
.collect(),
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
.await?;
|
.await?;
|
||||||
|
@ -319,13 +319,18 @@ impl JoinRequest {
|
|||||||
&app.id,
|
&app.id,
|
||||||
&dev.variables,
|
&dev.variables,
|
||||||
&integration_pb::LogEvent {
|
&integration_pb::LogEvent {
|
||||||
deduplication_id: self.uplink_frame_set.uplink_set_id.to_string(),
|
|
||||||
time: Some(Utc::now().into()),
|
time: Some(Utc::now().into()),
|
||||||
device_info: self.device_info.clone(),
|
device_info: self.device_info.clone(),
|
||||||
level: integration_pb::LogLevel::Error.into(),
|
level: integration_pb::LogLevel::Error.into(),
|
||||||
code: integration_pb::LogCode::Otaa.into(),
|
code: integration_pb::LogCode::Otaa.into(),
|
||||||
description: "DevNonce has already been used".into(),
|
description: "DevNonce has already been used".into(),
|
||||||
..Default::default()
|
context: [(
|
||||||
|
"deduplication_id".to_string(),
|
||||||
|
self.uplink_frame_set.uplink_set_id.to_string(),
|
||||||
|
)]
|
||||||
|
.iter()
|
||||||
|
.cloned()
|
||||||
|
.collect(),
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
.await?;
|
.await?;
|
||||||
@ -369,13 +374,18 @@ impl JoinRequest {
|
|||||||
&app.id,
|
&app.id,
|
||||||
&dev.variables,
|
&dev.variables,
|
||||||
&integration_pb::LogEvent {
|
&integration_pb::LogEvent {
|
||||||
deduplication_id: self.uplink_frame_set.uplink_set_id.to_string(),
|
|
||||||
time: Some(Utc::now().into()),
|
time: Some(Utc::now().into()),
|
||||||
device_info: self.device_info.clone(),
|
device_info: self.device_info.clone(),
|
||||||
level: integration_pb::LogLevel::Error.into(),
|
level: integration_pb::LogLevel::Error.into(),
|
||||||
code: integration_pb::LogCode::UplinkMic.into(),
|
code: integration_pb::LogCode::UplinkMic.into(),
|
||||||
description: "MIC of join-request is invalid, make sure keys are correct".into(),
|
description: "MIC of join-request is invalid, make sure keys are correct".into(),
|
||||||
..Default::default()
|
context: [(
|
||||||
|
"deduplication_id".to_string(),
|
||||||
|
self.uplink_frame_set.uplink_set_id.to_string(),
|
||||||
|
)]
|
||||||
|
.iter()
|
||||||
|
.cloned()
|
||||||
|
.collect(),
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
.await?;
|
.await?;
|
||||||
|
Reference in New Issue
Block a user