Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterSentinelServer(s grpc.ServiceRegistrar, srv SentinelServer)
- type LogEvent
- func (*LogEvent) Descriptor() ([]byte, []int)deprecated
- func (x *LogEvent) GetLocation() string
- func (x *LogEvent) GetMessage() string
- func (x *LogEvent) GetMetadata() map[string]string
- func (x *LogEvent) GetSessionId() string
- func (x *LogEvent) GetSeverity() commons.Level
- func (x *LogEvent) GetStackTrace() string
- func (x *LogEvent) GetTimestamp() *timestamppb.Timestamp
- func (x *LogEvent) GetTraceId() string
- func (*LogEvent) ProtoMessage()
- func (x *LogEvent) ProtoReflect() protoreflect.Message
- func (x *LogEvent) Reset()
- func (x *LogEvent) String() string
- type SendEventsReq
- type SendEventsRes
- type SentinelClient
- type SentinelEvent
- func (*SentinelEvent) Descriptor() ([]byte, []int)deprecated
- func (m *SentinelEvent) GetEvent() isSentinelEvent_Event
- func (x *SentinelEvent) GetLogEvent() *LogEvent
- func (*SentinelEvent) ProtoMessage()
- func (x *SentinelEvent) ProtoReflect() protoreflect.Message
- func (x *SentinelEvent) Reset()
- func (x *SentinelEvent) String() string
- type SentinelEvent_LogEvent
- type SentinelServer
- type UnimplementedSentinelServer
- type UnsafeSentinelServer
Constants ¶
const (
Sentinel_SendEvents_FullMethodName = "/api.v1alpha1.sentinel.Sentinel/SendEvents"
)
Variables ¶
var File_api_v1alpha1_sentinel_entities_proto protoreflect.FileDescriptor
var File_api_v1alpha1_sentinel_service_proto protoreflect.FileDescriptor
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) GetLocation ¶
func (*LogEvent) GetMessage ¶
func (*LogEvent) GetMetadata ¶
func (*LogEvent) GetSessionId ¶
func (*LogEvent) GetSeverity ¶
func (*LogEvent) GetStackTrace ¶
func (*LogEvent) GetTimestamp ¶
func (x *LogEvent) GetTimestamp() *timestamppb.Timestamp
func (*LogEvent) GetTraceId ¶
func (*LogEvent) ProtoMessage ¶
func (*LogEvent) ProtoMessage()
func (*LogEvent) ProtoReflect ¶
func (x *LogEvent) ProtoReflect() protoreflect.Message
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.
A service for internal observability utilities.
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.
A service for internal observability utilities.
type UnimplementedSentinelServer ¶
type UnimplementedSentinelServer struct{}
UnimplementedSentinelServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedSentinelServer) SendEvents ¶
func (UnimplementedSentinelServer) SendEvents(context.Context, *SendEventsReq) (*SendEventsRes, error)
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.