|
|
|
@ -15,77 +15,83 @@ var _ = fmt.Errorf
|
|
|
|
|
var _ = math.Inf
|
|
|
|
|
|
|
|
|
|
// Allows filtering by log event source
|
|
|
|
|
type LogSource int32
|
|
|
|
|
type Log_Source int32
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
|
LogSource_HOOK LogSource = 0
|
|
|
|
|
LogSource_TEST LogSource = 1
|
|
|
|
|
LogSource_POD LogSource = 2
|
|
|
|
|
LogSource_SYSTEM LogSource = 3
|
|
|
|
|
Log_UNKNOWN Log_Source = 0
|
|
|
|
|
Log_HOOK Log_Source = 1
|
|
|
|
|
Log_TEST Log_Source = 2
|
|
|
|
|
Log_POD Log_Source = 3
|
|
|
|
|
Log_SYSTEM Log_Source = 4
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
var LogSource_name = map[int32]string{
|
|
|
|
|
0: "HOOK",
|
|
|
|
|
1: "TEST",
|
|
|
|
|
2: "POD",
|
|
|
|
|
3: "SYSTEM",
|
|
|
|
|
var Log_Source_name = map[int32]string{
|
|
|
|
|
0: "UNKNOWN",
|
|
|
|
|
1: "HOOK",
|
|
|
|
|
2: "TEST",
|
|
|
|
|
3: "POD",
|
|
|
|
|
4: "SYSTEM",
|
|
|
|
|
}
|
|
|
|
|
var LogSource_value = map[string]int32{
|
|
|
|
|
"HOOK": 0,
|
|
|
|
|
"TEST": 1,
|
|
|
|
|
"POD": 2,
|
|
|
|
|
"SYSTEM": 3,
|
|
|
|
|
var Log_Source_value = map[string]int32{
|
|
|
|
|
"UNKNOWN": 0,
|
|
|
|
|
"HOOK": 1,
|
|
|
|
|
"TEST": 2,
|
|
|
|
|
"POD": 3,
|
|
|
|
|
"SYSTEM": 4,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x LogSource) String() string {
|
|
|
|
|
return proto.EnumName(LogSource_name, int32(x))
|
|
|
|
|
func (x Log_Source) String() string {
|
|
|
|
|
return proto.EnumName(Log_Source_name, int32(x))
|
|
|
|
|
}
|
|
|
|
|
func (LogSource) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
|
|
|
|
|
func (Log_Source) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{1, 0} }
|
|
|
|
|
|
|
|
|
|
// Syslog log levels
|
|
|
|
|
type LogLevel int32
|
|
|
|
|
type Log_Level int32
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
|
LogLevel_EMERG LogLevel = 0
|
|
|
|
|
LogLevel_ALERT LogLevel = 1
|
|
|
|
|
LogLevel_CRIT LogLevel = 2
|
|
|
|
|
LogLevel_ERR LogLevel = 3
|
|
|
|
|
LogLevel_WARNING LogLevel = 4
|
|
|
|
|
LogLevel_NOTICE LogLevel = 5
|
|
|
|
|
LogLevel_INFO LogLevel = 6
|
|
|
|
|
LogLevel_DEBUG LogLevel = 7
|
|
|
|
|
Log_UNIVERSAL Log_Level = 0
|
|
|
|
|
Log_EMERG Log_Level = 1
|
|
|
|
|
Log_ALERT Log_Level = 2
|
|
|
|
|
Log_CRIT Log_Level = 3
|
|
|
|
|
Log_ERR Log_Level = 4
|
|
|
|
|
Log_WARNING Log_Level = 5
|
|
|
|
|
Log_NOTICE Log_Level = 6
|
|
|
|
|
Log_INFO Log_Level = 7
|
|
|
|
|
Log_DEBUG Log_Level = 8
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
var LogLevel_name = map[int32]string{
|
|
|
|
|
0: "EMERG",
|
|
|
|
|
1: "ALERT",
|
|
|
|
|
2: "CRIT",
|
|
|
|
|
3: "ERR",
|
|
|
|
|
4: "WARNING",
|
|
|
|
|
5: "NOTICE",
|
|
|
|
|
6: "INFO",
|
|
|
|
|
7: "DEBUG",
|
|
|
|
|
var Log_Level_name = map[int32]string{
|
|
|
|
|
0: "UNIVERSAL",
|
|
|
|
|
1: "EMERG",
|
|
|
|
|
2: "ALERT",
|
|
|
|
|
3: "CRIT",
|
|
|
|
|
4: "ERR",
|
|
|
|
|
5: "WARNING",
|
|
|
|
|
6: "NOTICE",
|
|
|
|
|
7: "INFO",
|
|
|
|
|
8: "DEBUG",
|
|
|
|
|
}
|
|
|
|
|
var LogLevel_value = map[string]int32{
|
|
|
|
|
"EMERG": 0,
|
|
|
|
|
"ALERT": 1,
|
|
|
|
|
"CRIT": 2,
|
|
|
|
|
"ERR": 3,
|
|
|
|
|
"WARNING": 4,
|
|
|
|
|
"NOTICE": 5,
|
|
|
|
|
"INFO": 6,
|
|
|
|
|
"DEBUG": 7,
|
|
|
|
|
var Log_Level_value = map[string]int32{
|
|
|
|
|
"UNIVERSAL": 0,
|
|
|
|
|
"EMERG": 1,
|
|
|
|
|
"ALERT": 2,
|
|
|
|
|
"CRIT": 3,
|
|
|
|
|
"ERR": 4,
|
|
|
|
|
"WARNING": 5,
|
|
|
|
|
"NOTICE": 6,
|
|
|
|
|
"INFO": 7,
|
|
|
|
|
"DEBUG": 8,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x LogLevel) String() string {
|
|
|
|
|
return proto.EnumName(LogLevel_name, int32(x))
|
|
|
|
|
func (x Log_Level) String() string {
|
|
|
|
|
return proto.EnumName(Log_Level_name, int32(x))
|
|
|
|
|
}
|
|
|
|
|
func (LogLevel) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{1} }
|
|
|
|
|
func (Log_Level) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{1, 1} }
|
|
|
|
|
|
|
|
|
|
type LogSubscription struct {
|
|
|
|
|
Release string `protobuf:"bytes,1,opt,name=release" json:"release,omitempty"`
|
|
|
|
|
Level LogLevel `protobuf:"varint,2,opt,name=level,enum=hapi.release.LogLevel" json:"level,omitempty"`
|
|
|
|
|
Sources []LogSource `protobuf:"varint,3,rep,packed,name=sources,enum=hapi.release.LogSource" json:"sources,omitempty"`
|
|
|
|
|
Level Log_Level `protobuf:"varint,2,opt,name=level,enum=hapi.release.Log_Level" json:"level,omitempty"`
|
|
|
|
|
Sources []Log_Source `protobuf:"varint,3,rep,packed,name=sources,enum=hapi.release.Log_Source" json:"sources,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *LogSubscription) Reset() { *m = LogSubscription{} }
|
|
|
|
@ -95,8 +101,8 @@ func (*LogSubscription) Descriptor() ([]byte, []int) { return fileDescriptor2, [
|
|
|
|
|
|
|
|
|
|
type Log struct {
|
|
|
|
|
Release string `protobuf:"bytes,1,opt,name=release" json:"release,omitempty"`
|
|
|
|
|
Level LogLevel `protobuf:"varint,2,opt,name=level,enum=hapi.release.LogLevel" json:"level,omitempty"`
|
|
|
|
|
Source LogSource `protobuf:"varint,3,opt,name=source,enum=hapi.release.LogSource" json:"source,omitempty"`
|
|
|
|
|
Level Log_Level `protobuf:"varint,2,opt,name=level,enum=hapi.release.Log_Level" json:"level,omitempty"`
|
|
|
|
|
Source Log_Source `protobuf:"varint,3,opt,name=source,enum=hapi.release.Log_Source" json:"source,omitempty"`
|
|
|
|
|
Log string `protobuf:"bytes,4,opt,name=log" json:"log,omitempty"`
|
|
|
|
|
Timestamp *google_protobuf.Timestamp `protobuf:"bytes,5,opt,name=timestamp" json:"timestamp,omitempty"`
|
|
|
|
|
}
|
|
|
|
@ -116,35 +122,36 @@ func (m *Log) GetTimestamp() *google_protobuf.Timestamp {
|
|
|
|
|
func init() {
|
|
|
|
|
proto.RegisterType((*LogSubscription)(nil), "hapi.release.LogSubscription")
|
|
|
|
|
proto.RegisterType((*Log)(nil), "hapi.release.Log")
|
|
|
|
|
proto.RegisterEnum("hapi.release.LogSource", LogSource_name, LogSource_value)
|
|
|
|
|
proto.RegisterEnum("hapi.release.LogLevel", LogLevel_name, LogLevel_value)
|
|
|
|
|
proto.RegisterEnum("hapi.release.Log_Source", Log_Source_name, Log_Source_value)
|
|
|
|
|
proto.RegisterEnum("hapi.release.Log_Level", Log_Level_name, Log_Level_value)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func init() { proto.RegisterFile("hapi/release/log.proto", fileDescriptor2) }
|
|
|
|
|
|
|
|
|
|
var fileDescriptor2 = []byte{
|
|
|
|
|
// 359 bytes of a gzipped FileDescriptorProto
|
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x90, 0xcf, 0x6e, 0x9b, 0x40,
|
|
|
|
|
0x10, 0xc6, 0x8d, 0x97, 0x3f, 0x66, 0x5c, 0xb9, 0xab, 0x3d, 0xb8, 0xc8, 0x97, 0x22, 0x9f, 0x90,
|
|
|
|
|
0x55, 0x81, 0xea, 0xf6, 0xd0, 0xab, 0xff, 0x6c, 0x5d, 0x54, 0x0c, 0xd5, 0x42, 0x55, 0xb5, 0x37,
|
|
|
|
|
0x6c, 0x6d, 0x09, 0x12, 0xce, 0x22, 0xc0, 0x79, 0x8a, 0x3c, 0x59, 0x9e, 0x2a, 0x5a, 0x30, 0x4e,
|
|
|
|
|
0xa4, 0x28, 0xb7, 0xdc, 0x66, 0x77, 0x7e, 0xf3, 0x7d, 0x33, 0x1f, 0x4c, 0x6f, 0xd2, 0x32, 0xf7,
|
|
|
|
|
0x2a, 0x5e, 0xf0, 0xb4, 0xe6, 0x5e, 0x21, 0x32, 0xb7, 0xac, 0x44, 0x23, 0xc8, 0x3b, 0xf9, 0xef,
|
|
|
|
|
0x5e, 0xfe, 0x67, 0x1f, 0x33, 0x21, 0xb2, 0x82, 0x7b, 0x6d, 0xef, 0x70, 0xfe, 0xef, 0x35, 0xf9,
|
|
|
|
|
0x89, 0xd7, 0x4d, 0x7a, 0x2a, 0x3b, 0x7c, 0x7e, 0xaf, 0xc0, 0xfb, 0x40, 0x64, 0xf1, 0xf9, 0x50,
|
|
|
|
|
0x1f, 0xab, 0xbc, 0x6c, 0x72, 0x71, 0x4b, 0x2c, 0x30, 0x2e, 0xf3, 0x96, 0x62, 0x2b, 0x8e, 0xc9,
|
|
|
|
|
0xfa, 0x27, 0xf9, 0x04, 0x5a, 0xc1, 0xef, 0x78, 0x61, 0x0d, 0x6d,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