Documentation ¶
Index ¶
- Variables
- func RegisterEventServiceServer(s grpc.ServiceRegistrar, srv EventServiceServer)
- type Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (x *Event) GetEndTime() int64
- func (x *Event) GetLayer() string
- func (x *Event) GetMessage() string
- func (x *Event) GetName() string
- func (x *Event) GetParameters() map[string]string
- func (x *Event) GetSource() *Source
- func (x *Event) GetStartTime() int64
- func (x *Event) GetType() Type
- func (x *Event) GetUuid() string
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (x *Event) Reset()
- func (x *Event) String() string
- type EventServiceClient
- type EventServiceServer
- type EventService_CollectClient
- type EventService_CollectServer
- type Source
- func (*Source) Descriptor() ([]byte, []int)deprecated
- func (x *Source) GetEndpoint() string
- func (x *Source) GetService() string
- func (x *Source) GetServiceInstance() string
- func (*Source) ProtoMessage()
- func (x *Source) ProtoReflect() protoreflect.Message
- func (x *Source) Reset()
- func (x *Source) String() string
- type Type
- type UnimplementedEventServiceServer
- type UnsafeEventServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( Type_name = map[int32]string{ 0: "Normal", 1: "Error", } Type_value = map[string]int32{ "Normal": 0, "Error": 1, } )
Enum value maps for Type.
var EventService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "skywalking.v3.EventService", HandlerType: (*EventServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "collect", Handler: _EventService_Collect_Handler, ClientStreams: true, }, }, Metadata: "event/Event.proto", }
EventService_ServiceDesc is the grpc.ServiceDesc for EventService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_event_Event_proto protoreflect.FileDescriptor
Functions ¶
func RegisterEventServiceServer ¶
func RegisterEventServiceServer(s grpc.ServiceRegistrar, srv EventServiceServer)
Types ¶
type Event ¶
type Event struct { // Unique ID of the event. Because an event may span a long period of time, the UUID is necessary to associate the // start time with the end time of the same event. Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // The source object that the event occurs on. Source *Source `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` // The name of the event. For example, `Reboot`, `Upgrade` etc. Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // The type of the event. This field is friendly for UI visualization, where events of type `Normal` are considered as normal operations, // while `Error` is considered as unexpected operations, such as `Crash` events, therefore we can mark them with different colors to be easier identified. Type Type `protobuf:"varint,4,opt,name=type,proto3,enum=skywalking.v3.Type" json:"type,omitempty"` // The detail of the event that describes why this event happened. This should be a one-line message that briefly describes why the event is reported. // Examples of an `Upgrade` event may be something like `Upgrade from ${from_version} to ${to_version}`. // It's NOT encouraged to include the detailed logs of this event, such as the exception stack trace. Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` // The parameters in the `message` field. Parameters map[string]string `` /* 161-byte string literal not displayed */ // The start time (in milliseconds) of the event, measured between the current time and midnight, January 1, 1970 UTC. // This field is mandatory when an event occurs. StartTime int64 `protobuf:"varint,7,opt,name=startTime,proto3" json:"startTime,omitempty"` // The end time (in milliseconds) of the event. , measured between the current time and midnight, January 1, 1970 UTC. // This field may be empty if the event has not stopped yet, otherwise it should be a valid timestamp after `startTime`. EndTime int64 `protobuf:"varint,8,opt,name=endTime,proto3" json:"endTime,omitempty"` // [Required] Since 9.0.0 // Name of the layer to which the event belongs. Layer string `protobuf:"bytes,9,opt,name=layer,proto3" json:"layer,omitempty"` // contains filtered or unexported fields }
func (*Event) Descriptor
deprecated
func (*Event) GetEndTime ¶
func (*Event) GetMessage ¶
func (*Event) GetParameters ¶
func (*Event) GetStartTime ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
type EventServiceClient ¶
type EventServiceClient interface { // When reporting an event, you typically call the collect function twice, one for starting of the event and the other one for ending of the event, with the same UUID. // There are also cases where you have both start time and end time already, for example, when exporting events from a 3rd-party system, // the start time and end time are already known so that you can call the collect function only once. Collect(ctx context.Context, opts ...grpc.CallOption) (EventService_CollectClient, error) }
EventServiceClient is the client API for EventService 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 NewEventServiceClient ¶
func NewEventServiceClient(cc grpc.ClientConnInterface) EventServiceClient
type EventServiceServer ¶
type EventServiceServer interface { // When reporting an event, you typically call the collect function twice, one for starting of the event and the other one for ending of the event, with the same UUID. // There are also cases where you have both start time and end time already, for example, when exporting events from a 3rd-party system, // the start time and end time are already known so that you can call the collect function only once. Collect(EventService_CollectServer) error // contains filtered or unexported methods }
EventServiceServer is the server API for EventService service. All implementations must embed UnimplementedEventServiceServer for forward compatibility
type Source ¶
type Source struct { Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` ServiceInstance string `protobuf:"bytes,2,opt,name=serviceInstance,proto3" json:"serviceInstance,omitempty"` Endpoint string `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // contains filtered or unexported fields }
If the event occurs on a service ONLY, the `service` field is mandatory, the serviceInstance field and endpoint field are optional; If the event occurs on a service instance, the `service` and `serviceInstance` are mandatory and endpoint is optional; If the event occurs on an endpoint, `service` and `endpoint` are mandatory, `serviceInstance` is optional;
func (*Source) Descriptor
deprecated
func (*Source) GetEndpoint ¶
func (*Source) GetService ¶
func (*Source) GetServiceInstance ¶
func (*Source) ProtoMessage ¶
func (*Source) ProtoMessage()
func (*Source) ProtoReflect ¶
func (x *Source) ProtoReflect() protoreflect.Message
type Type ¶
type Type int32
func (Type) Descriptor ¶
func (Type) Descriptor() protoreflect.EnumDescriptor
func (Type) EnumDescriptor
deprecated
func (Type) Number ¶
func (x Type) Number() protoreflect.EnumNumber
func (Type) Type ¶
func (Type) Type() protoreflect.EnumType
type UnimplementedEventServiceServer ¶
type UnimplementedEventServiceServer struct { }
UnimplementedEventServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedEventServiceServer) Collect ¶
func (UnimplementedEventServiceServer) Collect(EventService_CollectServer) error
type UnsafeEventServiceServer ¶
type UnsafeEventServiceServer interface {
// contains filtered or unexported methods
}
UnsafeEventServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EventServiceServer will result in compilation errors.