pb

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: Apache-2.0 Imports: 18 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Event_EventKind_name = map[int32]string{
		0: "EVENT_KIND_SYSTEM",
		1: "EVENT_KIND_KUBERNETES",
		2: "EVENT_KIND_CONTAINER",
		3: "EVENT_KIND_ERDA_PLATFORM",
		4: "EVENT_KIND_EXCEPTION",
		5: "EVENT_KIND_SPAN",
		6: "EVENT_KIND_ALERT",
		7: "EVENT_KIND_CUSTOM",
	}
	Event_EventKind_value = map[string]int32{
		"EVENT_KIND_SYSTEM":        0,
		"EVENT_KIND_KUBERNETES":    1,
		"EVENT_KIND_CONTAINER":     2,
		"EVENT_KIND_ERDA_PLATFORM": 3,
		"EVENT_KIND_EXCEPTION":     4,
		"EVENT_KIND_SPAN":          5,
		"EVENT_KIND_ALERT":         6,
		"EVENT_KIND_CUSTOM":        7,
	}
)

Enum value maps for Event_EventKind.

View Source
var File_event_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Event

type Event struct {
	EventID      string          `protobuf:"bytes,1,opt,name=eventID,proto3" json:"eventID,omitempty"`
	Severity     string          `protobuf:"bytes,2,opt,name=severity,proto3" json:"severity,omitempty"`
	Name         string          `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Kind         Event_EventKind `protobuf:"varint,4,opt,name=kind,proto3,enum=erda.oap.event.Event_EventKind" json:"kind,omitempty"`
	TimeUnixNano uint64          `protobuf:"fixed64,5,opt,name=timeUnixNano,proto3" json:"timeUnixNano,omitempty"`
	// Store trace and resource pointer
	Relations *pb.Relation `protobuf:"bytes,6,opt,name=relations,proto3" json:"relations,omitempty"`
	// Including label, attributes and resource
	Attributes map[string]string `` /* 161-byte string literal not displayed */
	Message    string            `protobuf:"bytes,8,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

The event data model

of the observability analysis platform.

func (*Event) Descriptor deprecated

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

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetAttributes

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

func (*Event) GetEventID

func (x *Event) GetEventID() string

func (*Event) GetKind

func (x *Event) GetKind() Event_EventKind

func (*Event) GetMessage

func (x *Event) GetMessage() string

func (*Event) GetName

func (x *Event) GetName() string

func (*Event) GetRelations

func (x *Event) GetRelations() *pb.Relation

func (*Event) GetSeverity

func (x *Event) GetSeverity() string

func (*Event) GetTimeUnixNano

func (x *Event) GetTimeUnixNano() uint64

func (*Event) MarshalJSON

func (m *Event) MarshalJSON() ([]byte, error)

Event implement json.Marshaler.

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

func (*Event) UnmarshalJSON

func (m *Event) UnmarshalJSON(b []byte) error

Event implement json.Marshaler.

func (*Event) UnmarshalURLValues

func (m *Event) UnmarshalURLValues(prefix string, values url.Values) error

Event implement urlenc.URLValuesUnmarshaler.

func (*Event) Validate

func (this *Event) Validate() error

type Event_EventKind

type Event_EventKind int32
const (
	Event_EVENT_KIND_SYSTEM        Event_EventKind = 0
	Event_EVENT_KIND_KUBERNETES    Event_EventKind = 1
	Event_EVENT_KIND_CONTAINER     Event_EventKind = 2
	Event_EVENT_KIND_ERDA_PLATFORM Event_EventKind = 3
	Event_EVENT_KIND_EXCEPTION     Event_EventKind = 4
	Event_EVENT_KIND_SPAN          Event_EventKind = 5
	Event_EVENT_KIND_ALERT         Event_EventKind = 6
	Event_EVENT_KIND_CUSTOM        Event_EventKind = 7
)

func (Event_EventKind) Descriptor

func (Event_EventKind) Enum

func (x Event_EventKind) Enum() *Event_EventKind

func (Event_EventKind) EnumDescriptor deprecated

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

Deprecated: Use Event_EventKind.Descriptor instead.

func (Event_EventKind) Number

func (Event_EventKind) String

func (x Event_EventKind) String() string

func (Event_EventKind) Type

Jump to

Keyboard shortcuts

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