v1

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: AGPL-3.0 Imports: 9 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MetricType_name = map[int32]string{
		0: "COUNTER",
		1: "GAUGE",
		2: "HISTOGRAM",
		3: "SUMMARY",
	}
	MetricType_value = map[string]int32{
		"COUNTER":   0,
		"GAUGE":     1,
		"HISTOGRAM": 2,
		"SUMMARY":   3,
	}
)

Enum value maps for MetricType.

View Source
var (
	WatchSource_name = map[int32]string{
		0: "WATCH",
		1: "LOG",
		2: "METRIC",
		3: "CAPTURE",
	}
	WatchSource_value = map[string]int32{
		"WATCH":   0,
		"LOG":     1,
		"METRIC":  2,
		"CAPTURE": 3,
	}
)

Enum value maps for WatchSource.

View Source
var File_deepproto_proto_tracepoint_v1_tracepoint_proto protoreflect.FileDescriptor
View Source
var SnapshotService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "deepproto.proto.tracepoint.v1.SnapshotService",
	HandlerType: (*SnapshotServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "send",
			Handler:    _SnapshotService_Send_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "deepproto/proto/tracepoint/v1/tracepoint.proto",
}

SnapshotService_ServiceDesc is the grpc.ServiceDesc for SnapshotService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterSnapshotServiceServer

func RegisterSnapshotServiceServer(s grpc.ServiceRegistrar, srv SnapshotServiceServer)

Types

type LabelExpression added in v1.0.3

type LabelExpression struct {
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // The label key
	// Types that are assignable to Value:
	//	*LabelExpression_Static
	//	*LabelExpression_Expression
	Value isLabelExpression_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

LabelExpression describes a label that should be evaluated and the value used as the label

func (*LabelExpression) Descriptor deprecated added in v1.0.3

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

Deprecated: Use LabelExpression.ProtoReflect.Descriptor instead.

func (*LabelExpression) GetExpression added in v1.0.3

func (x *LabelExpression) GetExpression() string

func (*LabelExpression) GetKey added in v1.0.3

func (x *LabelExpression) GetKey() string

func (*LabelExpression) GetStatic added in v1.0.3

func (x *LabelExpression) GetStatic() *v1.AnyValue

func (*LabelExpression) GetValue added in v1.0.3

func (m *LabelExpression) GetValue() isLabelExpression_Value

func (*LabelExpression) ProtoMessage added in v1.0.3

func (*LabelExpression) ProtoMessage()

func (*LabelExpression) ProtoReflect added in v1.0.3

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

func (*LabelExpression) Reset added in v1.0.3

func (x *LabelExpression) Reset()

func (*LabelExpression) String added in v1.0.3

func (x *LabelExpression) String() string

type LabelExpression_Expression added in v1.0.3

type LabelExpression_Expression struct {
	Expression string `protobuf:"bytes,3,opt,name=expression,proto3,oneof"` // The label expression
}

type LabelExpression_Static added in v1.0.3

type LabelExpression_Static struct {
	Static *v1.AnyValue `protobuf:"bytes,2,opt,name=static,proto3,oneof"` // The label value
}

type Metric added in v1.0.3

type Metric struct {
	Name             string             `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`                                                // The name of the metric
	LabelExpressions []*LabelExpression `protobuf:"bytes,2,rep,name=labelExpressions,proto3" json:"labelExpressions,omitempty"`                        // The metric labels
	Type             MetricType         `protobuf:"varint,3,opt,name=type,proto3,enum=deepproto.proto.tracepoint.v1.MetricType" json:"type,omitempty"` // The type of metric to generate
	Expression       *string            `protobuf:"bytes,4,opt,name=expression,proto3,oneof" json:"expression,omitempty"`                              // The result of this expression will become the metric value.
	Namespace        *string            `protobuf:"bytes,5,opt,name=namespace,proto3,oneof" json:"namespace,omitempty"`                                // The namespace to set on the metric
	Help             *string            `protobuf:"bytes,6,opt,name=help,proto3,oneof" json:"help,omitempty"`                                          // The help statement to attach to the metric
	Unit             *string            `protobuf:"bytes,7,opt,name=unit,proto3,oneof" json:"unit,omitempty"`                                          // The unit associated with this value
	// contains filtered or unexported fields
}

Metric describes a metric rule to apply at this point.

func (*Metric) Descriptor deprecated added in v1.0.3

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

Deprecated: Use Metric.ProtoReflect.Descriptor instead.

func (*Metric) GetExpression added in v1.0.3

func (x *Metric) GetExpression() string

func (*Metric) GetHelp added in v1.0.3

func (x *Metric) GetHelp() string

func (*Metric) GetLabelExpressions added in v1.0.3

func (x *Metric) GetLabelExpressions() []*LabelExpression

func (*Metric) GetName added in v1.0.3

func (x *Metric) GetName() string

func (*Metric) GetNamespace added in v1.0.3

func (x *Metric) GetNamespace() string

func (*Metric) GetType added in v1.0.3

func (x *Metric) GetType() MetricType

func (*Metric) GetUnit added in v1.0.3

func (x *Metric) GetUnit() string

func (*Metric) ProtoMessage added in v1.0.3

func (*Metric) ProtoMessage()

func (*Metric) ProtoReflect added in v1.0.3

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

func (*Metric) Reset added in v1.0.3

func (x *Metric) Reset()

func (*Metric) String added in v1.0.3

func (x *Metric) String() string

type MetricType added in v1.0.3

type MetricType int32

The types of metric to create

const (
	MetricType_COUNTER   MetricType = 0
	MetricType_GAUGE     MetricType = 1
	MetricType_HISTOGRAM MetricType = 2
	MetricType_SUMMARY   MetricType = 3
)

func (MetricType) Descriptor added in v1.0.3

func (MetricType) Descriptor() protoreflect.EnumDescriptor

func (MetricType) Enum added in v1.0.3

func (x MetricType) Enum() *MetricType

func (MetricType) EnumDescriptor deprecated added in v1.0.3

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

Deprecated: Use MetricType.Descriptor instead.

func (MetricType) Number added in v1.0.3

func (x MetricType) Number() protoreflect.EnumNumber

func (MetricType) String added in v1.0.3

func (x MetricType) String() string

func (MetricType) Type added in v1.0.3

type Snapshot

type Snapshot struct {
	ID         []byte               `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`                 // The client generated ID for this snapshot
	Tracepoint *TracePointConfig    `protobuf:"bytes,2,opt,name=tracepoint,proto3" json:"tracepoint,omitempty"` // The config that was used to generate this snapshot (it could be deleted by the time we look at the data)
	VarLookup  map[string]*Variable ``                                                                          // This is a flat list of all the collected variables for this snapshot, to reduce data size we dereference as much as we can
	/* 176-byte string literal not displayed */
	TsNanos       uint64         `protobuf:"fixed64,4,opt,name=ts_nanos,json=tsNanos,proto3" json:"ts_nanos,omitempty"`                  // The time in nanos since 1970 when this snapshot was generated
	Frames        []*StackFrame  `protobuf:"bytes,5,rep,name=frames,proto3" json:"frames,omitempty"`                                     // The active frames at the time the snapshot is generated
	Watches       []*WatchResult `protobuf:"bytes,6,rep,name=watches,proto3" json:"watches,omitempty"`                                   // The watches results
	Attributes    []*v1.KeyValue `protobuf:"bytes,7,rep,name=attributes,proto3" json:"attributes,omitempty"`                             // The attributes for this snapshot (e.g file_name or line_no)
	DurationNanos uint64         `protobuf:"varint,8,opt,name=duration_nanos,json=durationNanos,proto3" json:"duration_nanos,omitempty"` // The time in nano seconds it took to collect the data
	Resource      []*v1.KeyValue `protobuf:"bytes,9,rep,name=resource,proto3" json:"resource,omitempty"`                                 // The resource for this client, should match the resource sent with a PollRequest.
	LogMsg        *string        `protobuf:"bytes,10,opt,name=log_msg,json=logMsg,proto3,oneof" json:"log_msg,omitempty"`                // The processed log message if the tracepoint had a log message configured.
	// contains filtered or unexported fields
}

Snapshot is the result of a tracepoint being executed.

func (*Snapshot) Descriptor deprecated

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

Deprecated: Use Snapshot.ProtoReflect.Descriptor instead.

func (*Snapshot) GetAttributes

func (x *Snapshot) GetAttributes() []*v1.KeyValue

func (*Snapshot) GetDurationNanos

func (x *Snapshot) GetDurationNanos() uint64

func (*Snapshot) GetFrames

func (x *Snapshot) GetFrames() []*StackFrame

func (*Snapshot) GetID

func (x *Snapshot) GetID() []byte

func (*Snapshot) GetLogMsg added in v1.0.1

func (x *Snapshot) GetLogMsg() string

func (*Snapshot) GetResource

func (x *Snapshot) GetResource() []*v1.KeyValue

func (*Snapshot) GetTracepoint

func (x *Snapshot) GetTracepoint() *TracePointConfig

func (*Snapshot) GetTsNanos

func (x *Snapshot) GetTsNanos() uint64

func (*Snapshot) GetVarLookup

func (x *Snapshot) GetVarLookup() map[string]*Variable

func (*Snapshot) GetWatches

func (x *Snapshot) GetWatches() []*WatchResult

func (*Snapshot) ProtoMessage

func (*Snapshot) ProtoMessage()

func (*Snapshot) ProtoReflect

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

func (*Snapshot) Reset

func (x *Snapshot) Reset()

func (*Snapshot) String

func (x *Snapshot) String() string

type SnapshotResponse

type SnapshotResponse struct {
	// contains filtered or unexported fields
}

SnapshotResponse this is the response from the server, when it receives a Snapshot

func (*SnapshotResponse) Descriptor deprecated

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

Deprecated: Use SnapshotResponse.ProtoReflect.Descriptor instead.

func (*SnapshotResponse) ProtoMessage

func (*SnapshotResponse) ProtoMessage()

func (*SnapshotResponse) ProtoReflect

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

func (*SnapshotResponse) Reset

func (x *SnapshotResponse) Reset()

func (*SnapshotResponse) String

func (x *SnapshotResponse) String() string

type SnapshotServiceClient

type SnapshotServiceClient interface {
	Send(ctx context.Context, in *Snapshot, opts ...grpc.CallOption) (*SnapshotResponse, error)
}

SnapshotServiceClient is the client API for SnapshotService 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.

type SnapshotServiceServer

type SnapshotServiceServer interface {
	Send(context.Context, *Snapshot) (*SnapshotResponse, error)
	// contains filtered or unexported methods
}

SnapshotServiceServer is the server API for SnapshotService service. All implementations must embed UnimplementedSnapshotServiceServer for forward compatibility

type StackFrame

type StackFrame struct {
	FileName             string  `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`                                       // This is the full path of the file where the line of code is paused.
	MethodName           string  `protobuf:"bytes,2,opt,name=method_name,json=methodName,proto3" json:"method_name,omitempty"`                                 // This is the method or function name that is being called.
	LineNumber           uint32  `protobuf:"varint,3,opt,name=line_number,json=lineNumber,proto3" json:"line_number,omitempty"`                                // This is the line number where the program is paused.
	ClassName            *string `protobuf:"bytes,4,opt,name=class_name,json=className,proto3,oneof" json:"class_name,omitempty"`                              // The class name of where the method is defined
	IsAsync              *bool   `protobuf:"varint,5,opt,name=is_async,json=isAsync,proto3,oneof" json:"is_async,omitempty"`                                   // This indicates that the frame is an async frame
	ColumnNumber         *uint32 `protobuf:"varint,6,opt,name=column_number,json=columnNumber,proto3,oneof" json:"column_number,omitempty"`                    // This is the column number for the line, primarily used in node.
	TranspiledFileName   *string `protobuf:"bytes,7,opt,name=transpiled_file_name,json=transpiledFileName,proto3,oneof" json:"transpiled_file_name,omitempty"` // The name of the transpiled file. If we have mappings available we can map the file 'something.js' to the original typescript. This will be the transpiled file name e.g. something.js
	TranspiledLineNumber *uint32 ``                                                                                                                            // The transpiled line number
	/* 130-byte string literal not displayed */
	TranspiledColumnNumber *uint32 `` // The transpiled column number
	/* 136-byte string literal not displayed */
	Variables   []*VariableID `protobuf:"bytes,10,rep,name=variables,proto3" json:"variables,omitempty"`                               // This is the list of variables (using var ids) that are present at this point in the code.
	AppFrame    *bool         `protobuf:"varint,11,opt,name=app_frame,json=appFrame,proto3,oneof" json:"app_frame,omitempty"`          // This indicates if the frame is from inside the app, or is from a library
	NativeFrame *bool         `protobuf:"varint,12,opt,name=native_frame,json=nativeFrame,proto3,oneof" json:"native_frame,omitempty"` // This indicates if the frame, from a native library (primarily used in Java)
	ShortPath   *string       `protobuf:"bytes,13,opt,name=short_path,json=shortPath,proto3,oneof" json:"short_path,omitempty"`        // This is the short path to the file (e.g. /simple-app/main.py instead of /home/ben/repo/app/simple-app/main.py).
	// contains filtered or unexported fields
}

StackFrame is the description of a executing code frame that has been captured by the tracepoint.

func (*StackFrame) Descriptor deprecated

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

Deprecated: Use StackFrame.ProtoReflect.Descriptor instead.

func (*StackFrame) GetAppFrame

func (x *StackFrame) GetAppFrame() bool

func (*StackFrame) GetClassName

func (x *StackFrame) GetClassName() string

func (*StackFrame) GetColumnNumber

func (x *StackFrame) GetColumnNumber() uint32

func (*StackFrame) GetFileName

func (x *StackFrame) GetFileName() string

func (*StackFrame) GetIsAsync

func (x *StackFrame) GetIsAsync() bool

func (*StackFrame) GetLineNumber

func (x *StackFrame) GetLineNumber() uint32

func (*StackFrame) GetMethodName

func (x *StackFrame) GetMethodName() string

func (*StackFrame) GetNativeFrame

func (x *StackFrame) GetNativeFrame() bool

func (*StackFrame) GetShortPath added in v1.0.2

func (x *StackFrame) GetShortPath() string

func (*StackFrame) GetTranspiledColumnNumber

func (x *StackFrame) GetTranspiledColumnNumber() uint32

func (*StackFrame) GetTranspiledFileName

func (x *StackFrame) GetTranspiledFileName() string

func (*StackFrame) GetTranspiledLineNumber

func (x *StackFrame) GetTranspiledLineNumber() uint32

func (*StackFrame) GetVariables

func (x *StackFrame) GetVariables() []*VariableID

func (*StackFrame) ProtoMessage

func (*StackFrame) ProtoMessage()

func (*StackFrame) ProtoReflect

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

func (*StackFrame) Reset

func (x *StackFrame) Reset()

func (*StackFrame) String

func (x *StackFrame) String() string

type TracePointConfig

type TracePointConfig struct {
	ID         string            `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`                                    // The ID of the config
	Path       string            `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`                                // The path for the file to install in
	LineNumber uint32            `protobuf:"varint,3,opt,name=line_number,json=lineNumber,proto3" json:"line_number,omitempty"` // The line number to install on
	Args       map[string]string ``                                                                                             // Arbitrary key/kay of config values (this can contain conditions, logs, fire counts etc)
	/* 149-byte string literal not displayed */
	Watches   []string       `protobuf:"bytes,5,rep,name=watches,proto3" json:"watches,omitempty"`     // Expressions to evaluate at the this point of the code
	Targeting []*v1.KeyValue `protobuf:"bytes,6,rep,name=targeting,proto3" json:"targeting,omitempty"` // The targeting config for this tracepoint, used by the server to filter response.
	Metrics   []*Metric      `protobuf:"bytes,7,rep,name=metrics,proto3" json:"metrics,omitempty"`     // List of metric rules to apply at this point in the code
	// contains filtered or unexported fields
}

This is the config of a tracepoint that should be installed by the application agent.

func (*TracePointConfig) Descriptor deprecated

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

Deprecated: Use TracePointConfig.ProtoReflect.Descriptor instead.

func (*TracePointConfig) GetArgs

func (x *TracePointConfig) GetArgs() map[string]string

func (*TracePointConfig) GetID

func (x *TracePointConfig) GetID() string

func (*TracePointConfig) GetLineNumber

func (x *TracePointConfig) GetLineNumber() uint32

func (*TracePointConfig) GetMetrics added in v1.0.3

func (x *TracePointConfig) GetMetrics() []*Metric

func (*TracePointConfig) GetPath

func (x *TracePointConfig) GetPath() string

func (*TracePointConfig) GetTargeting

func (x *TracePointConfig) GetTargeting() []*v1.KeyValue

func (*TracePointConfig) GetWatches

func (x *TracePointConfig) GetWatches() []string

func (*TracePointConfig) ProtoMessage

func (*TracePointConfig) ProtoMessage()

func (*TracePointConfig) ProtoReflect

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

func (*TracePointConfig) Reset

func (x *TracePointConfig) Reset()

func (*TracePointConfig) String

func (x *TracePointConfig) String() string

type UnimplementedSnapshotServiceServer

type UnimplementedSnapshotServiceServer struct {
}

UnimplementedSnapshotServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedSnapshotServiceServer) Send

type UnsafeSnapshotServiceServer

type UnsafeSnapshotServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeSnapshotServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SnapshotServiceServer will result in compilation errors.

type Variable

type Variable struct {
	Type      string        `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`                  // The type/class of the variable (e.g string)
	Value     string        `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`                // The value of the variable as a string. All values are converted to string for simplicity. This can also result in the value being truncated if it is a very large string. Collection types should not be to stringed, instead a summary should be given as the value 'HashSet of size: 10'.
	Hash      string        `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"`                  // This should be the object identity, and not the hashcode of the object. Use object hashcode if other info is not available.
	Children  []*VariableID `protobuf:"bytes,4,rep,name=children,proto3" json:"children,omitempty"`          // This is a list of the any variables that this variable references. To reduce duplication we use var_lookup to store and process variables by reference.
	Truncated *bool         `protobuf:"varint,5,opt,name=truncated,proto3,oneof" json:"truncated,omitempty"` // True if the value has been truncated
	// contains filtered or unexported fields
}

Variable is the description of am actual value, that is referenced by a VariableID

func (*Variable) Descriptor deprecated

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

Deprecated: Use Variable.ProtoReflect.Descriptor instead.

func (*Variable) GetChildren

func (x *Variable) GetChildren() []*VariableID

func (*Variable) GetHash

func (x *Variable) GetHash() string

func (*Variable) GetTruncated

func (x *Variable) GetTruncated() bool

func (*Variable) GetType

func (x *Variable) GetType() string

func (*Variable) GetValue

func (x *Variable) GetValue() string

func (*Variable) ProtoMessage

func (*Variable) ProtoMessage()

func (*Variable) ProtoReflect

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

func (*Variable) Reset

func (x *Variable) Reset()

func (*Variable) String

func (x *Variable) String() string

type VariableID

type VariableID struct {
	ID           string   `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`                                               // The ID to use to look up in the snapshot 'var_lookup'
	Name         string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`                                           // The name of the variable at the point this ID is referenced.
	Modifiers    []string `protobuf:"bytes,3,rep,name=modifiers,proto3" json:"modifiers,omitempty"`                                 // The modifiers (private, static etc) at the point this ID is referenced
	OriginalName *string  `protobuf:"bytes,4,opt,name=original_name,json=originalName,proto3,oneof" json:"original_name,omitempty"` // The unmodified name from the engine, some times a variable is renamed by the compiler, e.g. in python a field called '__someVar' is renamed for runtime to 'Class__someVar'.
	// contains filtered or unexported fields
}

VariableID is used to identify a variable on a stack frame or as a child of another variable.

func (*VariableID) Descriptor deprecated

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

Deprecated: Use VariableID.ProtoReflect.Descriptor instead.

func (*VariableID) GetID

func (x *VariableID) GetID() string

func (*VariableID) GetModifiers

func (x *VariableID) GetModifiers() []string

func (*VariableID) GetName

func (x *VariableID) GetName() string

func (*VariableID) GetOriginalName

func (x *VariableID) GetOriginalName() string

func (*VariableID) ProtoMessage

func (*VariableID) ProtoMessage()

func (*VariableID) ProtoReflect

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

func (*VariableID) Reset

func (x *VariableID) Reset()

func (*VariableID) String

func (x *VariableID) String() string

type WatchResult

type WatchResult struct {
	Expression string `protobuf:"bytes,1,opt,name=expression,proto3" json:"expression,omitempty"` // the expression executed to collect the data
	// Types that are assignable to Result:
	//	*WatchResult_GoodResult
	//	*WatchResult_ErrorResult
	Result     isWatchResult_Result `protobuf_oneof:"result"`
	FromMetric *bool                `protobuf:"varint,4,opt,name=from_metric,json=fromMetric,proto3,oneof" json:"from_metric,omitempty"`                // Is this the result of a metric, or metric tag @Deprecated
	Source     WatchSource          `protobuf:"varint,5,opt,name=source,proto3,enum=deepproto.proto.tracepoint.v1.WatchSource" json:"source,omitempty"` // This is the source of the watch result. e.g. did the watch come from a watch input, a log message or a metric
	// contains filtered or unexported fields
}

WatchResult is the result of a watch expression being executed.

func (*WatchResult) Descriptor deprecated

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

Deprecated: Use WatchResult.ProtoReflect.Descriptor instead.

func (*WatchResult) GetErrorResult

func (x *WatchResult) GetErrorResult() string

func (*WatchResult) GetExpression

func (x *WatchResult) GetExpression() string

func (*WatchResult) GetFromMetric added in v1.0.3

func (x *WatchResult) GetFromMetric() bool

func (*WatchResult) GetGoodResult

func (x *WatchResult) GetGoodResult() *VariableID

func (*WatchResult) GetResult

func (m *WatchResult) GetResult() isWatchResult_Result

func (*WatchResult) GetSource added in v1.0.3

func (x *WatchResult) GetSource() WatchSource

func (*WatchResult) ProtoMessage

func (*WatchResult) ProtoMessage()

func (*WatchResult) ProtoReflect

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

func (*WatchResult) Reset

func (x *WatchResult) Reset()

func (*WatchResult) String

func (x *WatchResult) String() string

type WatchResult_ErrorResult

type WatchResult_ErrorResult struct {
	ErrorResult string `protobuf:"bytes,3,opt,name=error_result,json=errorResult,proto3,oneof"` // This is to contain the error message generated if the watch expression fails.
}

type WatchResult_GoodResult

type WatchResult_GoodResult struct {
	GoodResult *VariableID `protobuf:"bytes,2,opt,name=good_result,json=goodResult,proto3,oneof"` // The VariableID of the variable that represents the result, if the expression completed successfully.
}

type WatchSource added in v1.0.3

type WatchSource int32

WatchSource is the logical source of the watch expression used to generate a result.

const (
	WatchSource_WATCH   WatchSource = 0 // A user attached this as an expression
	WatchSource_LOG     WatchSource = 1 // A watch expression from a log
	WatchSource_METRIC  WatchSource = 2 // A watch expression from a metric value or tag
	WatchSource_CAPTURE WatchSource = 3 // A watch expression generated from a capture: e.g. thrown, return, duration
)

func (WatchSource) Descriptor added in v1.0.3

func (WatchSource) Enum added in v1.0.3

func (x WatchSource) Enum() *WatchSource

func (WatchSource) EnumDescriptor deprecated added in v1.0.3

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

Deprecated: Use WatchSource.Descriptor instead.

func (WatchSource) Number added in v1.0.3

func (x WatchSource) Number() protoreflect.EnumNumber

func (WatchSource) String added in v1.0.3

func (x WatchSource) String() string

func (WatchSource) Type added in v1.0.3

Jump to

Keyboard shortcuts

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