myprobe

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 License: Apache-2.0 Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ProbeConf_Op_name = map[int32]string{
		0: "GET",
		1: "SET",
		2: "DELETE",
	}
	ProbeConf_Op_value = map[string]int32{
		"GET":    0,
		"SET":    1,
		"DELETE": 2,
	}
)

Enum value maps for ProbeConf_Op.

View Source
var (
	// optional myprober.ProbeConf redis_probe = 200;
	E_RedisProbe = &file_github_com_google_cloudprober_examples_extensions_myprober_myprobe_myprobe_proto_extTypes[0]
)

Extension fields to proto.ProbeDef.

View Source
var File_github_com_google_cloudprober_examples_extensions_myprober_myprobe_myprobe_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Probe

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

Probe holds aggregate information about all probe runs, per-target.

func (*Probe) Init

func (p *Probe) Init(name string, opts *options.Options) error

Init initializes the probe with the given params.

func (*Probe) Start

func (p *Probe) Start(ctx context.Context, dataChan chan *metrics.EventMetrics)

Start starts and runs the probe indefinitely.

type ProbeConf

type ProbeConf struct {
	Op *ProbeConf_Op `protobuf:"varint,1,req,name=op,enum=myprober.ProbeConf_Op" json:"op,omitempty"`
	// Key and value for the redis operation
	Key   *string `protobuf:"bytes,2,req,name=key" json:"key,omitempty"`
	Value *string `protobuf:"bytes,3,opt,name=value" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*ProbeConf) Descriptor deprecated

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

Deprecated: Use ProbeConf.ProtoReflect.Descriptor instead.

func (*ProbeConf) GetKey

func (x *ProbeConf) GetKey() string

func (*ProbeConf) GetOp

func (x *ProbeConf) GetOp() ProbeConf_Op

func (*ProbeConf) GetValue

func (x *ProbeConf) GetValue() string

func (*ProbeConf) ProtoMessage

func (*ProbeConf) ProtoMessage()

func (*ProbeConf) ProtoReflect added in v0.10.8

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

func (*ProbeConf) Reset

func (x *ProbeConf) Reset()

func (*ProbeConf) String

func (x *ProbeConf) String() string

type ProbeConf_Op

type ProbeConf_Op int32

Redis operation

const (
	ProbeConf_GET    ProbeConf_Op = 0
	ProbeConf_SET    ProbeConf_Op = 1
	ProbeConf_DELETE ProbeConf_Op = 2
)

func (ProbeConf_Op) Descriptor added in v0.10.8

func (ProbeConf_Op) Enum

func (x ProbeConf_Op) Enum() *ProbeConf_Op

func (ProbeConf_Op) EnumDescriptor deprecated

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

Deprecated: Use ProbeConf_Op.Descriptor instead.

func (ProbeConf_Op) Number added in v0.10.8

func (ProbeConf_Op) String

func (x ProbeConf_Op) String() string

func (ProbeConf_Op) Type added in v0.10.8

func (*ProbeConf_Op) UnmarshalJSON deprecated

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

Deprecated: Do not use.

Jump to

Keyboard shortcuts

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