protocol

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EventType_name = map[int32]string{
		0: "CLRMetricType",
		1: "JVMMetricType",
		2: "MeterType",
		3: "TracingType",
		4: "Logging",
		5: "ManagementType",
		6: "ProfileType",
		7: "ServiceMeshType",
	}
	EventType_value = map[string]int32{
		"CLRMetricType":   0,
		"JVMMetricType":   1,
		"MeterType":       2,
		"TracingType":     3,
		"Logging":         4,
		"ManagementType":  5,
		"ProfileType":     6,
		"ServiceMeshType": 7,
	}
)

Enum value maps for EventType.

View Source
var File_event_Event_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Event

type Event struct {

	// The occur time.
	Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// unique event name.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// The data type.
	Type EventType `protobuf:"varint,3,opt,name=type,proto3,enum=skywalking.v3.EventType" json:"type,omitempty"`
	// Whether to send to remote. It is used in sampling.
	Remote bool `protobuf:"varint,4,opt,name=remote,proto3" json:"remote,omitempty"`
	// Additional meta-information.
	Meta map[string]string `` /* 149-byte string literal not displayed */
	// Transfer data.
	//
	// Types that are assignable to Data:
	//	*Event_Clr
	//	*Event_Jvm
	//	*Event_Meter
	//	*Event_Segment
	//	*Event_Log
	//	*Event_Instance
	//	*Event_Profile
	//	*Event_ServiceMesh
	Data isEvent_Data `protobuf_oneof:"data"`
	// contains filtered or unexported fields
}

Event is the transfer unit in Satellite.

func (*Event) Descriptor deprecated

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

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetClr

func (x *Event) GetClr() *v3.CLRMetricCollection

func (*Event) GetData

func (m *Event) GetData() isEvent_Data

func (*Event) GetInstance

func (x *Event) GetInstance() *v32.InstanceProperties

func (*Event) GetJvm

func (x *Event) GetJvm() *v3.JVMMetricCollection

func (*Event) GetLog

func (x *Event) GetLog() *v31.LogData

func (*Event) GetMeta

func (x *Event) GetMeta() map[string]string

func (*Event) GetMeter

func (x *Event) GetMeter() *v3.MeterData

func (*Event) GetName

func (x *Event) GetName() string

func (*Event) GetProfile

func (x *Event) GetProfile() *v33.ThreadSnapshot

func (*Event) GetRemote

func (x *Event) GetRemote() bool

func (*Event) GetSegment

func (x *Event) GetSegment() *v3.SegmentObject

func (*Event) GetServiceMesh

func (x *Event) GetServiceMesh() *v34.ServiceMeshMetric

func (*Event) GetTimestamp

func (x *Event) GetTimestamp() int64

func (*Event) GetType

func (x *Event) GetType() EventType

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

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

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

type EventType

type EventType int32

EventType declares the supported transfer data type.

const (
	EventType_CLRMetricType   EventType = 0
	EventType_JVMMetricType   EventType = 1
	EventType_MeterType       EventType = 2
	EventType_TracingType     EventType = 3
	EventType_Logging         EventType = 4
	EventType_ManagementType  EventType = 5
	EventType_ProfileType     EventType = 6
	EventType_ServiceMeshType EventType = 7
)

func (EventType) Descriptor

func (EventType) Descriptor() protoreflect.EnumDescriptor

func (EventType) Enum

func (x EventType) Enum() *EventType

func (EventType) EnumDescriptor deprecated

func (EventType) EnumDescriptor() ([]byte, []int)

Deprecated: Use EventType.Descriptor instead.

func (EventType) Number

func (x EventType) Number() protoreflect.EnumNumber

func (EventType) String

func (x EventType) String() string

func (EventType) Type

type Event_Clr

type Event_Clr struct {
	Clr *v3.CLRMetricCollection `protobuf:"bytes,6,opt,name=clr,proto3,oneof"`
}

type Event_Instance

type Event_Instance struct {
	Instance *v32.InstanceProperties `protobuf:"bytes,11,opt,name=instance,proto3,oneof"`
}

type Event_Jvm

type Event_Jvm struct {
	Jvm *v3.JVMMetricCollection `protobuf:"bytes,7,opt,name=jvm,proto3,oneof"`
}

type Event_Log

type Event_Log struct {
	Log *v31.LogData `protobuf:"bytes,10,opt,name=log,proto3,oneof"`
}

type Event_Meter

type Event_Meter struct {
	Meter *v3.MeterData `protobuf:"bytes,8,opt,name=meter,proto3,oneof"`
}

type Event_Profile

type Event_Profile struct {
	Profile *v33.ThreadSnapshot `protobuf:"bytes,12,opt,name=profile,proto3,oneof"`
}

type Event_Segment

type Event_Segment struct {
	Segment *v3.SegmentObject `protobuf:"bytes,9,opt,name=segment,proto3,oneof"`
}

type Event_ServiceMesh

type Event_ServiceMesh struct {
	ServiceMesh *v34.ServiceMeshMetric `protobuf:"bytes,13,opt,name=serviceMesh,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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