logs

package
v0.0.0-...-f7ec45a Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2025 License: Apache-2.0 Imports: 5 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_logs_log_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AppInstanceLogBundle

type AppInstanceLogBundle struct {
	Log       []*LogEntry            `protobuf:"bytes,1,rep,name=log,proto3" json:"log,omitempty"`             // Log entries
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // upload timestamp
	// contains filtered or unexported fields
}

 This is the request payload for POST /api/v1/edgeDevice/apps/instances/id/<app-instance-uuid>/logs

func (*AppInstanceLogBundle) Descriptor deprecated

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

Deprecated: Use AppInstanceLogBundle.ProtoReflect.Descriptor instead.

func (*AppInstanceLogBundle) GetLog

func (x *AppInstanceLogBundle) GetLog() []*LogEntry

func (*AppInstanceLogBundle) GetTimestamp

func (x *AppInstanceLogBundle) GetTimestamp() *timestamppb.Timestamp

func (*AppInstanceLogBundle) ProtoMessage

func (*AppInstanceLogBundle) ProtoMessage()

func (*AppInstanceLogBundle) ProtoReflect

func (x *AppInstanceLogBundle) ProtoReflect() protoreflect.Message

func (*AppInstanceLogBundle) Reset

func (x *AppInstanceLogBundle) Reset()

func (*AppInstanceLogBundle) String

func (x *AppInstanceLogBundle) String() string

type LogBundle

type LogBundle struct {
	DevID      string                 `protobuf:"bytes,1,opt,name=devID,proto3" json:"devID,omitempty"`           // Device UUID
	Image      string                 `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"`           // SW image the log got emitted from
	Log        []*LogEntry            `protobuf:"bytes,3,rep,name=log,proto3" json:"log,omitempty"`               // Log entries
	Timestamp  *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`   // upload timestamp
	EveVersion string                 `protobuf:"bytes,5,opt,name=eveVersion,proto3" json:"eveVersion,omitempty"` // EVE software version
	// contains filtered or unexported fields
}

 This is the request payload for POST /api/v1/edgeDevice/logs ZInfoMsg carries device logs to the controller. The messages need to be retransmitted until they make it to the controller. The message is assumed to be protected by a TLS session bound to the device certificate.

func (*LogBundle) Descriptor deprecated

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

Deprecated: Use LogBundle.ProtoReflect.Descriptor instead.

func (*LogBundle) GetDevID

func (x *LogBundle) GetDevID() string

func (*LogBundle) GetEveVersion

func (x *LogBundle) GetEveVersion() string

func (*LogBundle) GetImage

func (x *LogBundle) GetImage() string

func (*LogBundle) GetLog

func (x *LogBundle) GetLog() []*LogEntry

func (*LogBundle) GetTimestamp

func (x *LogBundle) GetTimestamp() *timestamppb.Timestamp

func (*LogBundle) ProtoMessage

func (*LogBundle) ProtoMessage()

func (*LogBundle) ProtoReflect

func (x *LogBundle) ProtoReflect() protoreflect.Message

func (*LogBundle) Reset

func (x *LogBundle) Reset()

func (*LogBundle) String

func (x *LogBundle) String() string

type LogEntry

type LogEntry struct {
	Severity string            `protobuf:"bytes,1,opt,name=severity,proto3" json:"severity,omitempty"` // e.g., INFO, DEBUG, ERROR etc.
	Source   string            `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`     // Source of the msg, zedmanager etc.
	Iid      string            `protobuf:"bytes,3,opt,name=iid,proto3" json:"iid,omitempty"`           // instance ID of the source (e.g., PID)
	Content  string            `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`   // actual log message
	Msgid    uint64            `protobuf:"varint,5,opt,name=msgid,proto3" json:"msgid,omitempty"`      // monotonically increasing number (detect drops)
	Tags     map[string]string ``                                                                      // additional meta info <key,value>
	/* 149-byte string literal not displayed */
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // timestamp of the msg
	Filename  string                 `protobuf:"bytes,8,opt,name=filename,proto3" json:"filename,omitempty"`
	Function  string                 `protobuf:"bytes,9,opt,name=function,proto3" json:"function,omitempty"`
	// contains filtered or unexported fields
}

func (*LogEntry) Descriptor deprecated

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

Deprecated: Use LogEntry.ProtoReflect.Descriptor instead.

func (*LogEntry) GetContent

func (x *LogEntry) GetContent() string

func (*LogEntry) GetFilename

func (x *LogEntry) GetFilename() string

func (*LogEntry) GetFunction

func (x *LogEntry) GetFunction() string

func (*LogEntry) GetIid

func (x *LogEntry) GetIid() string

func (*LogEntry) GetMsgid

func (x *LogEntry) GetMsgid() uint64

func (*LogEntry) GetSeverity

func (x *LogEntry) GetSeverity() string

func (*LogEntry) GetSource

func (x *LogEntry) GetSource() string

func (*LogEntry) GetTags

func (x *LogEntry) GetTags() map[string]string

func (*LogEntry) GetTimestamp

func (x *LogEntry) GetTimestamp() *timestamppb.Timestamp

func (*LogEntry) ProtoMessage

func (*LogEntry) ProtoMessage()

func (*LogEntry) ProtoReflect

func (x *LogEntry) ProtoReflect() protoreflect.Message

func (*LogEntry) Reset

func (x *LogEntry) Reset()

func (*LogEntry) String

func (x *LogEntry) String() string

type ServerMetrics

type ServerMetrics struct {
	CpuPercentage       float32 `protobuf:"fixed32,1,opt,name=cpu_percentage,json=cpuPercentage,proto3" json:"cpu_percentage,omitempty"`                      // controller CPU usage in percentage
	LogProcessDelayMsec uint32  `protobuf:"varint,2,opt,name=log_process_delay_msec,json=logProcessDelayMsec,proto3" json:"log_process_delay_msec,omitempty"` // log messages processing delay in msec
	// contains filtered or unexported fields
}

This is the reply payload for device log processing from controller

func (*ServerMetrics) Descriptor deprecated

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

Deprecated: Use ServerMetrics.ProtoReflect.Descriptor instead.

func (*ServerMetrics) GetCpuPercentage

func (x *ServerMetrics) GetCpuPercentage() float32

func (*ServerMetrics) GetLogProcessDelayMsec

func (x *ServerMetrics) GetLogProcessDelayMsec() uint32

func (*ServerMetrics) ProtoMessage

func (*ServerMetrics) ProtoMessage()

func (*ServerMetrics) ProtoReflect

func (x *ServerMetrics) ProtoReflect() protoreflect.Message

func (*ServerMetrics) Reset

func (x *ServerMetrics) Reset()

func (*ServerMetrics) String

func (x *ServerMetrics) String() string

Jump to

Keyboard shortcuts

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