events

package
v0.0.0-...-3c0e1c2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 857

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Envelope_EventType_name = map[int32]string{
		4: "HttpStartStop",
		5: "LogMessage",
		6: "ValueMetric",
		7: "CounterEvent",
		8: "Error",
		9: "ContainerMetric",
	}
	Envelope_EventType_value = map[string]int32{
		"HttpStartStop":   4,
		"LogMessage":      5,
		"ValueMetric":     6,
		"CounterEvent":    7,
		"Error":           8,
		"ContainerMetric": 9,
	}
)

Enum value maps for Envelope_EventType.

View Source
var (
	PeerType_name = map[int32]string{
		1: "Client",
		2: "Server",
	}
	PeerType_value = map[string]int32{
		"Client": 1,
		"Server": 2,
	}
)

Enum value maps for PeerType.

View Source
var (
	Method_name = map[int32]string{
		1:  "GET",
		2:  "POST",
		3:  "PUT",
		4:  "DELETE",
		5:  "HEAD",
		6:  "ACL",
		7:  "BASELINE_CONTROL",
		8:  "BIND",
		9:  "CHECKIN",
		10: "CHECKOUT",
		11: "CONNECT",
		12: "COPY",
		13: "DEBUG",
		14: "LABEL",
		15: "LINK",
		16: "LOCK",
		17: "MERGE",
		18: "MKACTIVITY",
		19: "MKCALENDAR",
		20: "MKCOL",
		21: "MKREDIRECTREF",
		22: "MKWORKSPACE",
		23: "MOVE",
		24: "OPTIONS",
		25: "ORDERPATCH",
		26: "PATCH",
		27: "PRI",
		28: "PROPFIND",
		29: "PROPPATCH",
		30: "REBIND",
		31: "REPORT",
		32: "SEARCH",
		33: "SHOWMETHOD",
		34: "SPACEJUMP",
		35: "TEXTSEARCH",
		36: "TRACE",
		37: "TRACK",
		38: "UNBIND",
		39: "UNCHECKOUT",
		40: "UNLINK",
		41: "UNLOCK",
		42: "UPDATE",
		43: "UPDATEREDIRECTREF",
		44: "VERSION_CONTROL",
	}
	Method_value = map[string]int32{
		"GET":               1,
		"POST":              2,
		"PUT":               3,
		"DELETE":            4,
		"HEAD":              5,
		"ACL":               6,
		"BASELINE_CONTROL":  7,
		"BIND":              8,
		"CHECKIN":           9,
		"CHECKOUT":          10,
		"CONNECT":           11,
		"COPY":              12,
		"DEBUG":             13,
		"LABEL":             14,
		"LINK":              15,
		"LOCK":              16,
		"MERGE":             17,
		"MKACTIVITY":        18,
		"MKCALENDAR":        19,
		"MKCOL":             20,
		"MKREDIRECTREF":     21,
		"MKWORKSPACE":       22,
		"MOVE":              23,
		"OPTIONS":           24,
		"ORDERPATCH":        25,
		"PATCH":             26,
		"PRI":               27,
		"PROPFIND":          28,
		"PROPPATCH":         29,
		"REBIND":            30,
		"REPORT":            31,
		"SEARCH":            32,
		"SHOWMETHOD":        33,
		"SPACEJUMP":         34,
		"TEXTSEARCH":        35,
		"TRACE":             36,
		"TRACK":             37,
		"UNBIND":            38,
		"UNCHECKOUT":        39,
		"UNLINK":            40,
		"UNLOCK":            41,
		"UPDATE":            42,
		"UPDATEREDIRECTREF": 43,
		"VERSION_CONTROL":   44,
	}
)

Enum value maps for Method.

View Source
var (
	LogMessage_MessageType_name = map[int32]string{
		1: "OUT",
		2: "ERR",
	}
	LogMessage_MessageType_value = map[string]int32{
		"OUT": 1,
		"ERR": 2,
	}
)

Enum value maps for LogMessage_MessageType.

View Source
var File_dropsonde_protocol_events_envelope_proto protoreflect.FileDescriptor
View Source
var File_dropsonde_protocol_events_error_proto protoreflect.FileDescriptor
View Source
var File_dropsonde_protocol_events_http_proto protoreflect.FileDescriptor
View Source
var File_dropsonde_protocol_events_log_proto protoreflect.FileDescriptor
View Source
var File_dropsonde_protocol_events_metric_proto protoreflect.FileDescriptor
View Source
var File_dropsonde_protocol_events_uuid_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ContainerMetric

type ContainerMetric struct {

	// ID of the contained application.
	ApplicationId *string `protobuf:"bytes,1,req,name=applicationId" json:"applicationId,omitempty"`
	// Instance index of the contained application. (This, with applicationId,
	// should uniquely identify a container.)
	InstanceIndex *int32 `protobuf:"varint,2,req,name=instanceIndex" json:"instanceIndex,omitempty"`
	// CPU based on number of cores.
	CpuPercentage *float64 `protobuf:"fixed64,3,req,name=cpuPercentage" json:"cpuPercentage,omitempty"`
	// Bytes of memory used.
	MemoryBytes *uint64 `protobuf:"varint,4,req,name=memoryBytes" json:"memoryBytes,omitempty"`
	// Bytes of disk used.
	DiskBytes *uint64 `protobuf:"varint,5,req,name=diskBytes" json:"diskBytes,omitempty"`
	// Maximum bytes of memory allocated to container.
	MemoryBytesQuota *uint64 `protobuf:"varint,6,opt,name=memoryBytesQuota" json:"memoryBytesQuota,omitempty"`
	// Maximum bytes of disk allocated to container.
	DiskBytesQuota *uint64 `protobuf:"varint,7,opt,name=diskBytesQuota" json:"diskBytesQuota,omitempty"`
	// contains filtered or unexported fields
}

A ContainerMetric records resource usage of an app in a container.

func (*ContainerMetric) Descriptor deprecated

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

Deprecated: Use ContainerMetric.ProtoReflect.Descriptor instead.

func (*ContainerMetric) GetApplicationId

func (x *ContainerMetric) GetApplicationId() string

func (*ContainerMetric) GetCpuPercentage

func (x *ContainerMetric) GetCpuPercentage() float64

func (*ContainerMetric) GetDiskBytes

func (x *ContainerMetric) GetDiskBytes() uint64

func (*ContainerMetric) GetDiskBytesQuota

func (x *ContainerMetric) GetDiskBytesQuota() uint64

func (*ContainerMetric) GetInstanceIndex

func (x *ContainerMetric) GetInstanceIndex() int32

func (*ContainerMetric) GetMemoryBytes

func (x *ContainerMetric) GetMemoryBytes() uint64

func (*ContainerMetric) GetMemoryBytesQuota

func (x *ContainerMetric) GetMemoryBytesQuota() uint64

func (*ContainerMetric) ProtoMessage

func (*ContainerMetric) ProtoMessage()

func (*ContainerMetric) ProtoReflect

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

func (*ContainerMetric) Reset

func (x *ContainerMetric) Reset()

func (*ContainerMetric) String

func (x *ContainerMetric) String() string

type CounterEvent

type CounterEvent struct {

	// Name of the counter. Must be consistent for downstream consumers to
	// associate events semantically.
	Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
	// Amount by which to increment the counter.
	Delta *uint64 `protobuf:"varint,2,req,name=delta" json:"delta,omitempty"`
	// Total value of the counter. This will be overridden by Metron, which
	// internally tracks the total of each named Counter it receives.
	Total *uint64 `protobuf:"varint,3,opt,name=total" json:"total,omitempty"`
	// contains filtered or unexported fields
}

A CounterEvent represents the increment of a counter. It contains only the change in the value; it is the responsibility of downstream consumers to maintain the value of the counter.

func (*CounterEvent) Descriptor deprecated

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

Deprecated: Use CounterEvent.ProtoReflect.Descriptor instead.

func (*CounterEvent) GetDelta

func (x *CounterEvent) GetDelta() uint64

func (*CounterEvent) GetName

func (x *CounterEvent) GetName() string

func (*CounterEvent) GetTotal

func (x *CounterEvent) GetTotal() uint64

func (*CounterEvent) ProtoMessage

func (*CounterEvent) ProtoMessage()

func (*CounterEvent) ProtoReflect

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

func (*CounterEvent) Reset

func (x *CounterEvent) Reset()

func (*CounterEvent) String

func (x *CounterEvent) String() string

type Envelope

type Envelope struct {

	// Unique description of the origin of this event.
	Origin *string `protobuf:"bytes,1,req,name=origin" json:"origin,omitempty"`
	// Type of wrapped event. Only the optional field corresponding to the
	// value of eventType should be set.
	EventType *Envelope_EventType `protobuf:"varint,2,req,name=eventType,enum=events.Envelope_EventType" json:"eventType,omitempty"`
	// UNIX timestamp (in nanoseconds) event was wrapped in this Envelope.
	Timestamp *int64 `protobuf:"varint,6,opt,name=timestamp" json:"timestamp,omitempty"`
	// Deployment name (used to uniquely identify source).
	Deployment *string `protobuf:"bytes,13,opt,name=deployment" json:"deployment,omitempty"`
	// Job name (used to uniquely identify source).
	Job *string `protobuf:"bytes,14,opt,name=job" json:"job,omitempty"`
	// Index of job (used to uniquely identify source).
	Index *string `protobuf:"bytes,15,opt,name=index" json:"index,omitempty"`
	// IP address (used to uniquely identify source).
	Ip *string `protobuf:"bytes,16,opt,name=ip" json:"ip,omitempty"`
	// key/value tags to include additional identifying information.
	Tags            map[string]string `` /* 129-byte string literal not displayed */
	HttpStartStop   *HttpStartStop    `protobuf:"bytes,7,opt,name=httpStartStop" json:"httpStartStop,omitempty"`
	LogMessage      *LogMessage       `protobuf:"bytes,8,opt,name=logMessage" json:"logMessage,omitempty"`
	ValueMetric     *ValueMetric      `protobuf:"bytes,9,opt,name=valueMetric" json:"valueMetric,omitempty"`
	CounterEvent    *CounterEvent     `protobuf:"bytes,10,opt,name=counterEvent" json:"counterEvent,omitempty"`
	Error           *Error            `protobuf:"bytes,11,opt,name=error" json:"error,omitempty"`
	ContainerMetric *ContainerMetric  `protobuf:"bytes,12,opt,name=containerMetric" json:"containerMetric,omitempty"`
	// contains filtered or unexported fields
}

Envelope wraps an Event and adds metadata.

func (*Envelope) Descriptor deprecated

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

Deprecated: Use Envelope.ProtoReflect.Descriptor instead.

func (*Envelope) GetContainerMetric

func (x *Envelope) GetContainerMetric() *ContainerMetric

func (*Envelope) GetCounterEvent

func (x *Envelope) GetCounterEvent() *CounterEvent

func (*Envelope) GetDeployment

func (x *Envelope) GetDeployment() string

func (*Envelope) GetError

func (x *Envelope) GetError() *Error

func (*Envelope) GetEventType

func (x *Envelope) GetEventType() Envelope_EventType

func (*Envelope) GetHttpStartStop

func (x *Envelope) GetHttpStartStop() *HttpStartStop

func (*Envelope) GetIndex

func (x *Envelope) GetIndex() string

func (*Envelope) GetIp

func (x *Envelope) GetIp() string

func (*Envelope) GetJob

func (x *Envelope) GetJob() string

func (*Envelope) GetLogMessage

func (x *Envelope) GetLogMessage() *LogMessage

func (*Envelope) GetOrigin

func (x *Envelope) GetOrigin() string

func (*Envelope) GetTags

func (x *Envelope) GetTags() map[string]string

func (*Envelope) GetTimestamp

func (x *Envelope) GetTimestamp() int64

func (*Envelope) GetValueMetric

func (x *Envelope) GetValueMetric() *ValueMetric

func (*Envelope) ProtoMessage

func (*Envelope) ProtoMessage()

func (*Envelope) ProtoReflect

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

func (*Envelope) Reset

func (x *Envelope) Reset()

func (*Envelope) String

func (x *Envelope) String() string

type Envelope_EventType

type Envelope_EventType int32

Type of the wrapped event.

const (
	Envelope_HttpStartStop   Envelope_EventType = 4
	Envelope_LogMessage      Envelope_EventType = 5
	Envelope_ValueMetric     Envelope_EventType = 6
	Envelope_CounterEvent    Envelope_EventType = 7
	Envelope_Error           Envelope_EventType = 8
	Envelope_ContainerMetric Envelope_EventType = 9
)

func (Envelope_EventType) Descriptor

func (Envelope_EventType) Enum

func (Envelope_EventType) EnumDescriptor deprecated

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

Deprecated: Use Envelope_EventType.Descriptor instead.

func (Envelope_EventType) Number

func (Envelope_EventType) String

func (x Envelope_EventType) String() string

func (Envelope_EventType) Type

func (*Envelope_EventType) UnmarshalJSON deprecated

func (x *Envelope_EventType) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type Error

type Error struct {

	// Source of the error. This may or may not be the same as the Origin in
	// the envelope.
	Source *string `protobuf:"bytes,1,req,name=source" json:"source,omitempty"`
	// Numeric error code. This is provided for programmatic responses to the
	// error.
	Code *int32 `protobuf:"varint,2,req,name=code" json:"code,omitempty"`
	// Error description (preferably human-readable).
	Message *string `protobuf:"bytes,3,req,name=message" json:"message,omitempty"`
	// contains filtered or unexported fields
}

An Error event represents an error in the originating process.

func (*Error) Descriptor deprecated

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

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetCode

func (x *Error) GetCode() int32

func (*Error) GetMessage

func (x *Error) GetMessage() string

func (*Error) GetSource

func (x *Error) GetSource() string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect

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

func (*Error) Reset

func (x *Error) Reset()

func (*Error) String

func (x *Error) String() string

type Event

type Event interface {
	ProtoMessage()
}

type HttpStartStop

type HttpStartStop struct {

	// UNIX timestamp (in nanoseconds) when the request was sent (by a client)
	// or received (by a server).
	StartTimestamp *int64 `protobuf:"varint,1,req,name=startTimestamp" json:"startTimestamp,omitempty"`
	// UNIX timestamp (in nanoseconds) when the request was received.
	StopTimestamp *int64 `protobuf:"varint,2,req,name=stopTimestamp" json:"stopTimestamp,omitempty"`
	// ID for tracking lifecycle of request.
	RequestId *UUID `protobuf:"bytes,3,req,name=requestId" json:"requestId,omitempty"`
	// Role of the emitting process in the request cycle.
	PeerType *PeerType `protobuf:"varint,4,req,name=peerType,enum=events.PeerType" json:"peerType,omitempty"`
	// Method of the request.
	Method *Method `protobuf:"varint,5,req,name=method,enum=events.Method" json:"method,omitempty"`
	// Destination of the request.
	Uri *string `protobuf:"bytes,6,req,name=uri" json:"uri,omitempty"`
	// Remote address of the request. (For a server, this should be the origin
	// of the request.)
	RemoteAddress *string `protobuf:"bytes,7,req,name=remoteAddress" json:"remoteAddress,omitempty"`
	// Contents of the UserAgent header on the request.
	UserAgent *string `protobuf:"bytes,8,req,name=userAgent" json:"userAgent,omitempty"`
	// Status code returned with the response to the request.
	StatusCode *int32 `protobuf:"varint,9,req,name=statusCode" json:"statusCode,omitempty"`
	// Length of response (bytes).
	ContentLength *int64 `protobuf:"varint,10,req,name=contentLength" json:"contentLength,omitempty"`
	// If this request was made in relation to an appliciation, this field
	// should track that application's ID.
	ApplicationId *UUID `protobuf:"bytes,12,opt,name=applicationId" json:"applicationId,omitempty"`
	// Index of the application instance.
	InstanceIndex *int32 `protobuf:"varint,13,opt,name=instanceIndex" json:"instanceIndex,omitempty"`
	// ID of the application instance.
	InstanceId *string `protobuf:"bytes,14,opt,name=instanceId" json:"instanceId,omitempty"`
	// This contains http forwarded-for [x-forwarded-for] header from the
	// request.
	Forwarded []string `protobuf:"bytes,15,rep,name=forwarded" json:"forwarded,omitempty"`
	// contains filtered or unexported fields
}

An HttpStartStop event represents the whole lifecycle of an HTTP request.

func (*HttpStartStop) Descriptor deprecated

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

Deprecated: Use HttpStartStop.ProtoReflect.Descriptor instead.

func (*HttpStartStop) GetApplicationId

func (x *HttpStartStop) GetApplicationId() *UUID

func (*HttpStartStop) GetContentLength

func (x *HttpStartStop) GetContentLength() int64

func (*HttpStartStop) GetForwarded

func (x *HttpStartStop) GetForwarded() []string

func (*HttpStartStop) GetInstanceId

func (x *HttpStartStop) GetInstanceId() string

func (*HttpStartStop) GetInstanceIndex

func (x *HttpStartStop) GetInstanceIndex() int32

func (*HttpStartStop) GetMethod

func (x *HttpStartStop) GetMethod() Method

func (*HttpStartStop) GetPeerType

func (x *HttpStartStop) GetPeerType() PeerType

func (*HttpStartStop) GetRemoteAddress

func (x *HttpStartStop) GetRemoteAddress() string

func (*HttpStartStop) GetRequestId

func (x *HttpStartStop) GetRequestId() *UUID

func (*HttpStartStop) GetStartTimestamp

func (x *HttpStartStop) GetStartTimestamp() int64

func (*HttpStartStop) GetStatusCode

func (x *HttpStartStop) GetStatusCode() int32

func (*HttpStartStop) GetStopTimestamp

func (x *HttpStartStop) GetStopTimestamp() int64

func (*HttpStartStop) GetUri

func (x *HttpStartStop) GetUri() string

func (*HttpStartStop) GetUserAgent

func (x *HttpStartStop) GetUserAgent() string

func (*HttpStartStop) ProtoMessage

func (*HttpStartStop) ProtoMessage()

func (*HttpStartStop) ProtoReflect

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

func (*HttpStartStop) Reset

func (x *HttpStartStop) Reset()

func (*HttpStartStop) String

func (x *HttpStartStop) String() string

type LogMessage

type LogMessage struct {

	// Bytes of the log message. (Note that it is not required to be a single line.)
	Message []byte `protobuf:"bytes,1,req,name=message" json:"message,omitempty"`
	// Type of the message (OUT or ERR).
	MessageType *LogMessage_MessageType `protobuf:"varint,2,req,name=message_type,json=messageType,enum=events.LogMessage_MessageType" json:"message_type,omitempty"`
	// UNIX timestamp (in nanoseconds) when the log was written.
	Timestamp *int64 `protobuf:"varint,3,req,name=timestamp" json:"timestamp,omitempty"`
	// Application that emitted the message (or to which the application is related).
	AppId *string `protobuf:"bytes,4,opt,name=app_id,json=appId" json:"app_id,omitempty"`
	// Source of the message. For Cloud Foundry, this can be "APP", "RTR", "DEA", "STG", etc.
	SourceType *string `protobuf:"bytes,5,opt,name=source_type,json=sourceType" json:"source_type,omitempty"`
	// Instance that emitted the message.
	SourceInstance *string `protobuf:"bytes,6,opt,name=source_instance,json=sourceInstance" json:"source_instance,omitempty"`
	// contains filtered or unexported fields
}

A LogMessage contains a "log line" and associated metadata.

func (*LogMessage) Descriptor deprecated

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

Deprecated: Use LogMessage.ProtoReflect.Descriptor instead.

func (*LogMessage) GetAppId

func (x *LogMessage) GetAppId() string

func (*LogMessage) GetMessage

func (x *LogMessage) GetMessage() []byte

func (*LogMessage) GetMessageType

func (x *LogMessage) GetMessageType() LogMessage_MessageType

func (*LogMessage) GetSourceInstance

func (x *LogMessage) GetSourceInstance() string

func (*LogMessage) GetSourceType

func (x *LogMessage) GetSourceType() string

func (*LogMessage) GetTimestamp

func (x *LogMessage) GetTimestamp() int64

func (*LogMessage) ProtoMessage

func (*LogMessage) ProtoMessage()

func (*LogMessage) ProtoReflect

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

func (*LogMessage) Reset

func (x *LogMessage) Reset()

func (*LogMessage) String

func (x *LogMessage) String() string

type LogMessage_MessageType

type LogMessage_MessageType int32

MessageType stores the destination of the message (corresponding to STDOUT or STDERR).

const (
	LogMessage_OUT LogMessage_MessageType = 1
	LogMessage_ERR LogMessage_MessageType = 2
)

func (LogMessage_MessageType) Descriptor

func (LogMessage_MessageType) Enum

func (LogMessage_MessageType) EnumDescriptor deprecated

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

Deprecated: Use LogMessage_MessageType.Descriptor instead.

func (LogMessage_MessageType) Number

func (LogMessage_MessageType) String

func (x LogMessage_MessageType) String() string

func (LogMessage_MessageType) Type

func (*LogMessage_MessageType) UnmarshalJSON deprecated

func (x *LogMessage_MessageType) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type Method

type Method int32

HTTP method.

const (
	Method_GET               Method = 1
	Method_POST              Method = 2
	Method_PUT               Method = 3
	Method_DELETE            Method = 4
	Method_HEAD              Method = 5
	Method_ACL               Method = 6
	Method_BASELINE_CONTROL  Method = 7
	Method_BIND              Method = 8
	Method_CHECKIN           Method = 9
	Method_CHECKOUT          Method = 10
	Method_CONNECT           Method = 11
	Method_COPY              Method = 12
	Method_DEBUG             Method = 13
	Method_LABEL             Method = 14
	Method_LINK              Method = 15
	Method_LOCK              Method = 16
	Method_MERGE             Method = 17
	Method_MKACTIVITY        Method = 18
	Method_MKCALENDAR        Method = 19
	Method_MKCOL             Method = 20
	Method_MKREDIRECTREF     Method = 21
	Method_MKWORKSPACE       Method = 22
	Method_MOVE              Method = 23
	Method_OPTIONS           Method = 24
	Method_ORDERPATCH        Method = 25
	Method_PATCH             Method = 26
	Method_PRI               Method = 27
	Method_PROPFIND          Method = 28
	Method_PROPPATCH         Method = 29
	Method_REBIND            Method = 30
	Method_REPORT            Method = 31
	Method_SEARCH            Method = 32
	Method_SHOWMETHOD        Method = 33
	Method_SPACEJUMP         Method = 34
	Method_TEXTSEARCH        Method = 35
	Method_TRACE             Method = 36
	Method_TRACK             Method = 37
	Method_UNBIND            Method = 38
	Method_UNCHECKOUT        Method = 39
	Method_UNLINK            Method = 40
	Method_UNLOCK            Method = 41
	Method_UPDATE            Method = 42
	Method_UPDATEREDIRECTREF Method = 43
	Method_VERSION_CONTROL   Method = 44
)

func (Method) Descriptor

func (Method) Descriptor() protoreflect.EnumDescriptor

func (Method) Enum

func (x Method) Enum() *Method

func (Method) EnumDescriptor deprecated

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

Deprecated: Use Method.Descriptor instead.

func (Method) Number

func (x Method) Number() protoreflect.EnumNumber

func (Method) String

func (x Method) String() string

func (Method) Type

func (Method) Type() protoreflect.EnumType

func (*Method) UnmarshalJSON deprecated

func (x *Method) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type PeerType

type PeerType int32

Type of peer handling request.

const (
	// Request is made by this process.
	PeerType_Client PeerType = 1
	// Request is received by this process.
	PeerType_Server PeerType = 2
)

func (PeerType) Descriptor

func (PeerType) Descriptor() protoreflect.EnumDescriptor

func (PeerType) Enum

func (x PeerType) Enum() *PeerType

func (PeerType) EnumDescriptor deprecated

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

Deprecated: Use PeerType.Descriptor instead.

func (PeerType) Number

func (x PeerType) Number() protoreflect.EnumNumber

func (PeerType) String

func (x PeerType) String() string

func (PeerType) Type

func (*PeerType) UnmarshalJSON deprecated

func (x *PeerType) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type UUID

type UUID struct {
	Low  *uint64 `protobuf:"varint,1,req,name=low" json:"low,omitempty"`
	High *uint64 `protobuf:"varint,2,req,name=high" json:"high,omitempty"`
	// contains filtered or unexported fields
}

Type representing a 128-bit UUID.

The bytes of the UUID should be packed in little-endian **byte** (not bit) order. For example, the UUID `f47ac10b-58cc-4372-a567-0e02b2c3d479` should be encoded as `UUID{ low: 0x7243cc580bc17af4, high: 0x79d4c3b2020e67a5 }`

func (*UUID) Descriptor deprecated

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

Deprecated: Use UUID.ProtoReflect.Descriptor instead.

func (*UUID) GetHigh

func (x *UUID) GetHigh() uint64

func (*UUID) GetLow

func (x *UUID) GetLow() uint64

func (*UUID) ProtoMessage

func (*UUID) ProtoMessage()

func (*UUID) ProtoReflect

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

func (*UUID) Reset

func (x *UUID) Reset()

func (*UUID) String

func (x *UUID) String() string

type ValueMetric

type ValueMetric struct {

	// Name of the metric. Must be consistent for downstream consumers to
	// associate events semantically.
	Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
	// Value at the time of event emission.
	Value *float64 `protobuf:"fixed64,2,req,name=value" json:"value,omitempty"`
	// Unit of the metric. Please see http://metrics20.org/spec/#units for
	// ideas; SI units/prefixes are recommended where applicable. Should be
	// consistent for the life of the metric (consumers are expected to report,
	// but not interpret, prefixes).
	Unit *string `protobuf:"bytes,3,req,name=unit" json:"unit,omitempty"`
	// contains filtered or unexported fields
}

A ValueMetric indicates the value of a metric at an instant in time.

func (*ValueMetric) Descriptor deprecated

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

Deprecated: Use ValueMetric.ProtoReflect.Descriptor instead.

func (*ValueMetric) GetName

func (x *ValueMetric) GetName() string

func (*ValueMetric) GetUnit

func (x *ValueMetric) GetUnit() string

func (*ValueMetric) GetValue

func (x *ValueMetric) GetValue() float64

func (*ValueMetric) ProtoMessage

func (*ValueMetric) ProtoMessage()

func (*ValueMetric) ProtoReflect

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

func (*ValueMetric) Reset

func (x *ValueMetric) Reset()

func (*ValueMetric) String

func (x *ValueMetric) String() string

Jump to

Keyboard shortcuts

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