auditlog

package
v0.29.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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 LogLevel

type LogLevel int32
const (
	LOG_LEVEL_UNSPECIFIED LogLevel = 0
	LOG_LEVEL_INFO        LogLevel = 1
	LOG_LEVEL_DEBUG       LogLevel = 2
	LOG_LEVEL_WARN        LogLevel = 3
	LOG_LEVEL_ERROR       LogLevel = 4
	LOG_LEVEL_FATAL       LogLevel = 5
)

func (LogLevel) EnumDescriptor

func (LogLevel) EnumDescriptor() ([]byte, []int)

func (LogLevel) String

func (x LogLevel) 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, if it's "Temporal Internal", the real ip address will be hidden.
	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"`
	// If it's customer/user's operator, use email address; if it's temporal's support to run operation on behalf of
	// the customer, use "Temporal Internal" instead
	UserEmail string `protobuf:"bytes,15,opt,name=user_email,json=userEmail,proto3" json:"user_email,omitempty"`
	// Detailed information about the operation.  For example, it could be the invited user email for "InviteUser" operation,
	// could be "enable audit logging" for UpdateAccount operation
	OperationDetails string `protobuf:"bytes,16,opt,name=operation_details,json=operationDetails,proto3" json:"operation_details,omitempty"`
}

func (*LogRecord) Descriptor

func (*LogRecord) Descriptor() ([]byte, []int)

func (*LogRecord) Equal

func (this *LogRecord) Equal(that interface{}) bool

func (*LogRecord) GetCallerIpAddress

func (m *LogRecord) GetCallerIpAddress() string

func (*LogRecord) GetCategory

func (m *LogRecord) GetCategory() LogCategory

func (*LogRecord) GetEmitTime

func (m *LogRecord) GetEmitTime() *types.Timestamp

func (*LogRecord) GetId

func (m *LogRecord) GetId() string

func (*LogRecord) GetIdentity

func (m *LogRecord) GetIdentity() string

func (*LogRecord) GetLevel

func (m *LogRecord) GetLevel() LogLevel

func (*LogRecord) GetMessage

func (m *LogRecord) GetMessage() string

func (*LogRecord) GetNamespace

func (m *LogRecord) GetNamespace() string

func (*LogRecord) GetOperation

func (m *LogRecord) GetOperation() string

func (*LogRecord) GetOperationDetails added in v0.11.0

func (m *LogRecord) GetOperationDetails() string

func (*LogRecord) GetRegion

func (m *LogRecord) GetRegion() string

func (*LogRecord) GetStatus

func (m *LogRecord) GetStatus() string

func (*LogRecord) GetTags

func (m *LogRecord) GetTags() []string

func (*LogRecord) GetThirdPartyDetails

func (m *LogRecord) GetThirdPartyDetails() *ThirdPartyLogDetail

func (*LogRecord) GetUserEmail added in v0.11.0

func (m *LogRecord) GetUserEmail() string

func (*LogRecord) GetVersion

func (m *LogRecord) GetVersion() string

func (*LogRecord) GoString

func (this *LogRecord) GoString() string

func (*LogRecord) Marshal

func (m *LogRecord) Marshal() (dAtA []byte, err error)

func (*LogRecord) MarshalTo

func (m *LogRecord) MarshalTo(dAtA []byte) (int, error)

func (*LogRecord) MarshalToSizedBuffer

func (m *LogRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LogRecord) ProtoMessage

func (*LogRecord) ProtoMessage()

func (*LogRecord) Reset

func (m *LogRecord) Reset()

func (*LogRecord) Size

func (m *LogRecord) Size() (n int)

func (*LogRecord) String

func (this *LogRecord) String() string

func (*LogRecord) Unmarshal

func (m *LogRecord) Unmarshal(dAtA []byte) error

func (*LogRecord) XXX_DiscardUnknown

func (m *LogRecord) XXX_DiscardUnknown()

func (*LogRecord) XXX_Marshal

func (m *LogRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LogRecord) XXX_Merge

func (m *LogRecord) XXX_Merge(src proto.Message)

func (*LogRecord) XXX_Size

func (m *LogRecord) XXX_Size() int

func (*LogRecord) XXX_Unmarshal

func (m *LogRecord) XXX_Unmarshal(b []byte) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL