sentinel

package
v1.7.75 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Sentinel_SendEvents_FullMethodName = "/api.v1alpha1.sentinel.Sentinel/SendEvents"
)

Variables

View Source
var File_api_v1alpha1_sentinel_entities_proto protoreflect.FileDescriptor
View Source
var File_api_v1alpha1_sentinel_service_proto protoreflect.FileDescriptor
View Source
var Sentinel_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.v1alpha1.sentinel.Sentinel",
	HandlerType: (*SentinelServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SendEvents",
			Handler:    _Sentinel_SendEvents_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/v1alpha1/sentinel/service.proto",
}

Sentinel_ServiceDesc is the grpc.ServiceDesc for Sentinel service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterSentinelServer

func RegisterSentinelServer(s grpc.ServiceRegistrar, srv SentinelServer)

Types

type LogEvent

type LogEvent struct {
	TraceId string `protobuf:"bytes,3,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`
	// the browsers session id
	SessionId string `protobuf:"bytes,4,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	Message   string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"`
	// the browsers current uri
	Location   string                 `protobuf:"bytes,6,opt,name=location,proto3" json:"location,omitempty"`
	StackTrace string                 `protobuf:"bytes,7,opt,name=stack_trace,json=stackTrace,proto3" json:"stack_trace,omitempty"`
	Timestamp  *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Metadata   map[string]string      `` /* 157-byte string literal not displayed */
	Severity   commons.Level          `protobuf:"varint,10,opt,name=severity,proto3,enum=api.commons.Level" json:"severity,omitempty"`
	// contains filtered or unexported fields
}

func (*LogEvent) Descriptor deprecated

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

Deprecated: Use LogEvent.ProtoReflect.Descriptor instead.

func (*LogEvent) GetLocation

func (x *LogEvent) GetLocation() string

func (*LogEvent) GetMessage

func (x *LogEvent) GetMessage() string

func (*LogEvent) GetMetadata

func (x *LogEvent) GetMetadata() map[string]string

func (*LogEvent) GetSessionId

func (x *LogEvent) GetSessionId() string

func (*LogEvent) GetSeverity

func (x *LogEvent) GetSeverity() commons.Level

func (*LogEvent) GetStackTrace

func (x *LogEvent) GetStackTrace() string

func (*LogEvent) GetTimestamp

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

func (*LogEvent) GetTraceId

func (x *LogEvent) GetTraceId() string

func (*LogEvent) ProtoMessage

func (*LogEvent) ProtoMessage()

func (*LogEvent) ProtoReflect

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

func (*LogEvent) Reset

func (x *LogEvent) Reset()

func (*LogEvent) String

func (x *LogEvent) String() string

type SendEventsReq

type SendEventsReq struct {
	Events []*SentinelEvent `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
	// contains filtered or unexported fields
}

func (*SendEventsReq) Descriptor deprecated

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

Deprecated: Use SendEventsReq.ProtoReflect.Descriptor instead.

func (*SendEventsReq) GetEvents

func (x *SendEventsReq) GetEvents() []*SentinelEvent

func (*SendEventsReq) ProtoMessage

func (*SendEventsReq) ProtoMessage()

func (*SendEventsReq) ProtoReflect

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

func (*SendEventsReq) Reset

func (x *SendEventsReq) Reset()

func (*SendEventsReq) String

func (x *SendEventsReq) String() string

type SendEventsRes

type SendEventsRes struct {
	// contains filtered or unexported fields
}

func (*SendEventsRes) Descriptor deprecated

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

Deprecated: Use SendEventsRes.ProtoReflect.Descriptor instead.

func (*SendEventsRes) ProtoMessage

func (*SendEventsRes) ProtoMessage()

func (*SendEventsRes) ProtoReflect

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

func (*SendEventsRes) Reset

func (x *SendEventsRes) Reset()

func (*SendEventsRes) String

func (x *SendEventsRes) String() string

type SentinelClient

type SentinelClient interface {
	// Send a json blob of ui events and logs.
	SendEvents(ctx context.Context, in *SendEventsReq, opts ...grpc.CallOption) (*SendEventsRes, error)
}

SentinelClient is the client API for Sentinel service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewSentinelClient

func NewSentinelClient(cc grpc.ClientConnInterface) SentinelClient

type SentinelEvent

type SentinelEvent struct {

	// Types that are assignable to Event:
	//
	//	*SentinelEvent_LogEvent
	Event isSentinelEvent_Event `protobuf_oneof:"event"`
	// contains filtered or unexported fields
}

func (*SentinelEvent) Descriptor deprecated

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

Deprecated: Use SentinelEvent.ProtoReflect.Descriptor instead.

func (*SentinelEvent) GetEvent

func (m *SentinelEvent) GetEvent() isSentinelEvent_Event

func (*SentinelEvent) GetLogEvent

func (x *SentinelEvent) GetLogEvent() *LogEvent

func (*SentinelEvent) ProtoMessage

func (*SentinelEvent) ProtoMessage()

func (*SentinelEvent) ProtoReflect

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

func (*SentinelEvent) Reset

func (x *SentinelEvent) Reset()

func (*SentinelEvent) String

func (x *SentinelEvent) String() string

type SentinelEvent_LogEvent

type SentinelEvent_LogEvent struct {
	LogEvent *LogEvent `protobuf:"bytes,1,opt,name=log_event,json=logEvent,proto3,oneof"`
}

type SentinelServer

type SentinelServer interface {
	// Send a json blob of ui events and logs.
	SendEvents(context.Context, *SendEventsReq) (*SendEventsRes, error)
	// contains filtered or unexported methods
}

SentinelServer is the server API for Sentinel service. All implementations must embed UnimplementedSentinelServer for forward compatibility

type UnimplementedSentinelServer

type UnimplementedSentinelServer struct {
}

UnimplementedSentinelServer must be embedded to have forward compatible implementations.

func (UnimplementedSentinelServer) SendEvents

type UnsafeSentinelServer

type UnsafeSentinelServer interface {
	// contains filtered or unexported methods
}

UnsafeSentinelServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SentinelServer will result in compilation errors.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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