Documentation ¶
Index ¶
- Variables
- type LogCategory
- type LogLevel
- type LogRecord
- func (*LogRecord) Descriptor() ([]byte, []int)
- func (this *LogRecord) Equal(that interface{}) bool
- func (m *LogRecord) GetCallerIpAddress() string
- func (m *LogRecord) GetCategory() LogCategory
- func (m *LogRecord) GetEmitTime() *types.Timestamp
- func (m *LogRecord) GetId() string
- func (m *LogRecord) GetIdentity() string
- func (m *LogRecord) GetLevel() LogLevel
- func (m *LogRecord) GetMessage() string
- func (m *LogRecord) GetNamespace() string
- func (m *LogRecord) GetOperation() string
- func (m *LogRecord) GetRegion() string
- func (m *LogRecord) GetStatus() string
- func (m *LogRecord) GetTags() []string
- func (m *LogRecord) GetThirdPartyDetails() *ThirdPartyLogDetail
- func (m *LogRecord) GetVersion() string
- func (this *LogRecord) GoString() string
- func (m *LogRecord) Marshal() (dAtA []byte, err error)
- func (m *LogRecord) MarshalTo(dAtA []byte) (int, error)
- func (m *LogRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LogRecord) ProtoMessage()
- func (m *LogRecord) Reset()
- func (m *LogRecord) Size() (n int)
- func (this *LogRecord) String() string
- func (m *LogRecord) Unmarshal(dAtA []byte) error
- func (m *LogRecord) XXX_DiscardUnknown()
- func (m *LogRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LogRecord) XXX_Merge(src proto.Message)
- func (m *LogRecord) XXX_Size() int
- func (m *LogRecord) XXX_Unmarshal(b []byte) error
- type ThirdPartyLogDetail
- func (*ThirdPartyLogDetail) Descriptor() ([]byte, []int)
- func (this *ThirdPartyLogDetail) Equal(that interface{}) bool
- func (m *ThirdPartyLogDetail) GetClientId() string
- func (m *ThirdPartyLogDetail) GetDescription() string
- func (m *ThirdPartyLogDetail) GetEmitTime() *types.Timestamp
- func (m *ThirdPartyLogDetail) GetId() string
- func (m *ThirdPartyLogDetail) GetIpAddress() string
- func (m *ThirdPartyLogDetail) GetRawMessage() string
- func (this *ThirdPartyLogDetail) GoString() string
- func (m *ThirdPartyLogDetail) Marshal() (dAtA []byte, err error)
- func (m *ThirdPartyLogDetail) MarshalTo(dAtA []byte) (int, error)
- func (m *ThirdPartyLogDetail) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ThirdPartyLogDetail) ProtoMessage()
- func (m *ThirdPartyLogDetail) Reset()
- func (m *ThirdPartyLogDetail) Size() (n int)
- func (this *ThirdPartyLogDetail) String() string
- func (m *ThirdPartyLogDetail) Unmarshal(dAtA []byte) error
- func (m *ThirdPartyLogDetail) XXX_DiscardUnknown()
- func (m *ThirdPartyLogDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ThirdPartyLogDetail) XXX_Merge(src proto.Message)
- func (m *ThirdPartyLogDetail) XXX_Size() int
- func (m *ThirdPartyLogDetail) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthMessage = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMessage = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMessage = fmt.Errorf("proto: unexpected end of group") )
View Source
var LogCategory_name = map[int32]string{
0: "Unspecified",
1: "Admin",
2: "System",
}
View Source
var LogCategory_value = map[string]int32{
"Unspecified": 0,
"Admin": 1,
"System": 2,
}
View Source
var LogLevel_name = map[int32]string{
0: "Unspecified",
1: "Info",
2: "Debug",
3: "Warn",
4: "Error",
5: "Fatal",
}
View Source
var LogLevel_value = map[string]int32{
"Unspecified": 0,
"Info": 1,
"Debug": 2,
"Warn": 3,
"Error": 4,
"Fatal": 5,
}
Functions ¶
This section is empty.
Types ¶
type LogCategory ¶
type LogCategory int32
const ( LOG_CATEGORY_UNSPECIFIED LogCategory = 0 LOG_CATEGORY_ADMIN LogCategory = 1 LOG_CATEGORY_SYSTEM LogCategory = 2 )
func (LogCategory) EnumDescriptor ¶
func (LogCategory) EnumDescriptor() ([]byte, []int)
func (LogCategory) String ¶
func (x LogCategory) String() string
type LogRecord ¶
type LogRecord struct { // log record id Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Version of the log entry, starting from "0". Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // admin or system Category LogCategory `protobuf:"varint,3,opt,name=category,proto3,enum=api.auditlog.v1.LogCategory" json:"category,omitempty"` // when does this log get generated from the source EmitTime *types.Timestamp `protobuf:"bytes,4,opt,name=emit_time,json=emitTime,proto3" json:"emit_time,omitempty"` // customer ip address or server name CallerIpAddress string `protobuf:"bytes,5,opt,name=caller_ip_address,json=callerIpAddress,proto3" json:"caller_ip_address,omitempty"` // which namespace Namespace string `protobuf:"bytes,6,opt,name=namespace,proto3" json:"namespace,omitempty"` // what operation Operation string `protobuf:"bytes,7,opt,name=operation,proto3" json:"operation,omitempty"` // operation status from API call Status string `protobuf:"bytes,8,opt,name=status,proto3" json:"status,omitempty"` // level of the log, i.e. info, warn, error etc Level LogLevel `protobuf:"varint,9,opt,name=level,proto3,enum=api.auditlog.v1.LogLevel" json:"level,omitempty"` // additional message Message string `protobuf:"bytes,10,opt,name=message,proto3" json:"message,omitempty"` // example: CN=actions-workflow-engine.service.consul Identity string `protobuf:"bytes,11,opt,name=identity,proto3" json:"identity,omitempty"` // namespace's region. Region string `protobuf:"bytes,12,opt,name=region,proto3" json:"region,omitempty"` ThirdPartyDetails *ThirdPartyLogDetail `protobuf:"bytes,13,opt,name=third_party_details,json=thirdPartyDetails,proto3" json:"third_party_details,omitempty"` Tags []string `protobuf:"bytes,14,rep,name=tags,proto3" json:"tags,omitempty"` }
func (*LogRecord) Descriptor ¶
func (*LogRecord) GetCallerIpAddress ¶
func (*LogRecord) GetCategory ¶
func (m *LogRecord) GetCategory() LogCategory
func (*LogRecord) GetEmitTime ¶
func (*LogRecord) GetIdentity ¶
func (*LogRecord) GetMessage ¶
func (*LogRecord) GetNamespace ¶
func (*LogRecord) GetOperation ¶
func (*LogRecord) GetThirdPartyDetails ¶
func (m *LogRecord) GetThirdPartyDetails() *ThirdPartyLogDetail
func (*LogRecord) GetVersion ¶
func (*LogRecord) MarshalToSizedBuffer ¶
func (*LogRecord) ProtoMessage ¶
func (*LogRecord) ProtoMessage()
func (*LogRecord) XXX_DiscardUnknown ¶
func (m *LogRecord) XXX_DiscardUnknown()
func (*LogRecord) XXX_Marshal ¶
func (*LogRecord) XXX_Unmarshal ¶
type ThirdPartyLogDetail ¶
type ThirdPartyLogDetail struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` EmitTime *types.Timestamp `protobuf:"bytes,2,opt,name=emit_time,json=emitTime,proto3" json:"emit_time,omitempty"` // Description of the action, if any. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // The ID of the client which initiated the action. ClientId string `protobuf:"bytes,4,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` // The origin ip address of the action (i.e. api call) IpAddress string `protobuf:"bytes,5,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` // Including the original log message from the third party app RawMessage string `protobuf:"bytes,6,opt,name=raw_message,json=rawMessage,proto3" json:"raw_message,omitempty"` }
func (*ThirdPartyLogDetail) Descriptor ¶
func (*ThirdPartyLogDetail) Descriptor() ([]byte, []int)
func (*ThirdPartyLogDetail) Equal ¶
func (this *ThirdPartyLogDetail) Equal(that interface{}) bool
func (*ThirdPartyLogDetail) GetClientId ¶
func (m *ThirdPartyLogDetail) GetClientId() string
func (*ThirdPartyLogDetail) GetDescription ¶
func (m *ThirdPartyLogDetail) GetDescription() string
func (*ThirdPartyLogDetail) GetEmitTime ¶
func (m *ThirdPartyLogDetail) GetEmitTime() *types.Timestamp
func (*ThirdPartyLogDetail) GetId ¶
func (m *ThirdPartyLogDetail) GetId() string
func (*ThirdPartyLogDetail) GetIpAddress ¶
func (m *ThirdPartyLogDetail) GetIpAddress() string
func (*ThirdPartyLogDetail) GetRawMessage ¶
func (m *ThirdPartyLogDetail) GetRawMessage() string
func (*ThirdPartyLogDetail) GoString ¶
func (this *ThirdPartyLogDetail) GoString() string
func (*ThirdPartyLogDetail) Marshal ¶
func (m *ThirdPartyLogDetail) Marshal() (dAtA []byte, err error)
func (*ThirdPartyLogDetail) MarshalTo ¶
func (m *ThirdPartyLogDetail) MarshalTo(dAtA []byte) (int, error)
func (*ThirdPartyLogDetail) MarshalToSizedBuffer ¶
func (m *ThirdPartyLogDetail) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ThirdPartyLogDetail) ProtoMessage ¶
func (*ThirdPartyLogDetail) ProtoMessage()
func (*ThirdPartyLogDetail) Reset ¶
func (m *ThirdPartyLogDetail) Reset()
func (*ThirdPartyLogDetail) Size ¶
func (m *ThirdPartyLogDetail) Size() (n int)
func (*ThirdPartyLogDetail) String ¶
func (this *ThirdPartyLogDetail) String() string
func (*ThirdPartyLogDetail) Unmarshal ¶
func (m *ThirdPartyLogDetail) Unmarshal(dAtA []byte) error
func (*ThirdPartyLogDetail) XXX_DiscardUnknown ¶
func (m *ThirdPartyLogDetail) XXX_DiscardUnknown()
func (*ThirdPartyLogDetail) XXX_Marshal ¶
func (m *ThirdPartyLogDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ThirdPartyLogDetail) XXX_Merge ¶
func (m *ThirdPartyLogDetail) XXX_Merge(src proto.Message)
func (*ThirdPartyLogDetail) XXX_Size ¶
func (m *ThirdPartyLogDetail) XXX_Size() int
func (*ThirdPartyLogDetail) XXX_Unmarshal ¶
func (m *ThirdPartyLogDetail) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.