Documentation
¶
Index ¶
- Variables
- type AppInstanceLogBundle
- func (*AppInstanceLogBundle) Descriptor() ([]byte, []int)deprecated
- func (x *AppInstanceLogBundle) GetLog() []*LogEntry
- func (x *AppInstanceLogBundle) GetTimestamp() *timestamppb.Timestamp
- func (*AppInstanceLogBundle) ProtoMessage()
- func (x *AppInstanceLogBundle) ProtoReflect() protoreflect.Message
- func (x *AppInstanceLogBundle) Reset()
- func (x *AppInstanceLogBundle) String() string
- type LogBundle
- func (*LogBundle) Descriptor() ([]byte, []int)deprecated
- func (x *LogBundle) GetDevID() string
- func (x *LogBundle) GetEveVersion() string
- func (x *LogBundle) GetImage() string
- func (x *LogBundle) GetLog() []*LogEntry
- func (x *LogBundle) GetTimestamp() *timestamppb.Timestamp
- func (*LogBundle) ProtoMessage()
- func (x *LogBundle) ProtoReflect() protoreflect.Message
- func (x *LogBundle) Reset()
- func (x *LogBundle) String() string
- type LogEntry
- func (*LogEntry) Descriptor() ([]byte, []int)deprecated
- func (x *LogEntry) GetContent() string
- func (x *LogEntry) GetFilename() string
- func (x *LogEntry) GetFunction() string
- func (x *LogEntry) GetIid() string
- func (x *LogEntry) GetMsgid() uint64
- func (x *LogEntry) GetSeverity() string
- func (x *LogEntry) GetSource() string
- func (x *LogEntry) GetTags() map[string]string
- func (x *LogEntry) GetTimestamp() *timestamppb.Timestamp
- func (*LogEntry) ProtoMessage()
- func (x *LogEntry) ProtoReflect() protoreflect.Message
- func (x *LogEntry) Reset()
- func (x *LogEntry) String() string
- type ServerMetrics
- func (*ServerMetrics) Descriptor() ([]byte, []int)deprecated
- func (x *ServerMetrics) GetCpuPercentage() float32
- func (x *ServerMetrics) GetLogProcessDelayMsec() uint32
- func (*ServerMetrics) ProtoMessage()
- func (x *ServerMetrics) ProtoReflect() protoreflect.Message
- func (x *ServerMetrics) Reset()
- func (x *ServerMetrics) String() string
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) GetEveVersion ¶
func (*LogBundle) GetTimestamp ¶
func (x *LogBundle) GetTimestamp() *timestamppb.Timestamp
func (*LogBundle) ProtoMessage ¶
func (*LogBundle) ProtoMessage()
func (*LogBundle) ProtoReflect ¶
func (x *LogBundle) ProtoReflect() protoreflect.Message
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) GetContent ¶
func (*LogEntry) GetFilename ¶
func (*LogEntry) GetFunction ¶
func (*LogEntry) GetSeverity ¶
func (*LogEntry) GetTimestamp ¶
func (x *LogEntry) GetTimestamp() *timestamppb.Timestamp
func (*LogEntry) ProtoMessage ¶
func (*LogEntry) ProtoMessage()
func (*LogEntry) ProtoReflect ¶
func (x *LogEntry) ProtoReflect() protoreflect.Message
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
Click to show internal directories.
Click to hide internal directories.