proto

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: 9 Imported by: 6

Documentation

Index

Constants

View Source
const (
	Default_SurfacerDef_MetricsBufferSize = int64(10000)
)

Default values for SurfacerDef fields.

Variables

View Source
var (
	Type_name = map[int32]string{
		0:  "NONE",
		1:  "PROMETHEUS",
		2:  "STACKDRIVER",
		3:  "FILE",
		4:  "POSTGRES",
		5:  "PUBSUB",
		99: "USER_DEFINED",
	}
	Type_value = map[string]int32{
		"NONE":         0,
		"PROMETHEUS":   1,
		"STACKDRIVER":  2,
		"FILE":         3,
		"POSTGRES":     4,
		"PUBSUB":       5,
		"USER_DEFINED": 99,
	}
)

Enum value maps for Type.

View Source
var File_github_com_google_cloudprober_surfacers_proto_config_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type SurfacerDef

type SurfacerDef struct {

	// This name is used for logging. If not defined, it's derived from the type.
	// Note that this field is required for the USER_DEFINED surfacer type and
	// should match with the name that you used while registering the user defined
	// surfacer.
	Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Type *Type   `protobuf:"varint,2,opt,name=type,enum=cloudprober.surfacer.Type" json:"type,omitempty"`
	// How many metrics entries (EventMetrics) to buffer. This is the buffer
	// between incoming metrics and the metrics that are being processed. Default
	// value should work in most cases. You may need to increase it on a busy
	// system, but that's usually a sign that you metrics processing pipeline is
	// slow for some reason, e.g. slow writes to a remote file.
	// Note: Only file and pubsub surfacer supports this option right now.
	MetricsBufferSize *int64 `protobuf:"varint,3,opt,name=metrics_buffer_size,json=metricsBufferSize,def=10000" json:"metrics_buffer_size,omitempty"`
	// Matching surfacer specific configuration (one for each type in the above
	// enum)
	//
	// Types that are assignable to Surfacer:
	//	*SurfacerDef_PrometheusSurfacer
	//	*SurfacerDef_StackdriverSurfacer
	//	*SurfacerDef_FileSurfacer
	//	*SurfacerDef_PostgresSurfacer
	//	*SurfacerDef_PubsubSurfacer
	Surfacer isSurfacerDef_Surfacer `protobuf_oneof:"surfacer"`
	// contains filtered or unexported fields
}

func (*SurfacerDef) Descriptor deprecated

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

Deprecated: Use SurfacerDef.ProtoReflect.Descriptor instead.

func (*SurfacerDef) GetFileSurfacer

func (x *SurfacerDef) GetFileSurfacer() *proto2.SurfacerConf

func (*SurfacerDef) GetMetricsBufferSize added in v0.11.2

func (x *SurfacerDef) GetMetricsBufferSize() int64

func (*SurfacerDef) GetName

func (x *SurfacerDef) GetName() string

func (*SurfacerDef) GetPostgresSurfacer

func (x *SurfacerDef) GetPostgresSurfacer() *proto3.SurfacerConf

func (*SurfacerDef) GetPrometheusSurfacer

func (x *SurfacerDef) GetPrometheusSurfacer() *proto.SurfacerConf

func (*SurfacerDef) GetPubsubSurfacer added in v0.11.0

func (x *SurfacerDef) GetPubsubSurfacer() *proto4.SurfacerConf

func (*SurfacerDef) GetStackdriverSurfacer

func (x *SurfacerDef) GetStackdriverSurfacer() *proto1.SurfacerConf

func (*SurfacerDef) GetSurfacer

func (m *SurfacerDef) GetSurfacer() isSurfacerDef_Surfacer

func (*SurfacerDef) GetType

func (x *SurfacerDef) GetType() Type

func (*SurfacerDef) ProtoMessage

func (*SurfacerDef) ProtoMessage()

func (*SurfacerDef) ProtoReflect added in v0.10.8

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

func (*SurfacerDef) Reset

func (x *SurfacerDef) Reset()

func (*SurfacerDef) String

func (x *SurfacerDef) String() string

type SurfacerDef_FileSurfacer

type SurfacerDef_FileSurfacer struct {
	FileSurfacer *proto2.SurfacerConf `protobuf:"bytes,12,opt,name=file_surfacer,json=fileSurfacer,oneof"`
}

type SurfacerDef_PostgresSurfacer

type SurfacerDef_PostgresSurfacer struct {
	PostgresSurfacer *proto3.SurfacerConf `protobuf:"bytes,13,opt,name=postgres_surfacer,json=postgresSurfacer,oneof"`
}

type SurfacerDef_PrometheusSurfacer

type SurfacerDef_PrometheusSurfacer struct {
	PrometheusSurfacer *proto.SurfacerConf `protobuf:"bytes,10,opt,name=prometheus_surfacer,json=prometheusSurfacer,oneof"`
}

type SurfacerDef_PubsubSurfacer added in v0.11.0

type SurfacerDef_PubsubSurfacer struct {
	PubsubSurfacer *proto4.SurfacerConf `protobuf:"bytes,14,opt,name=pubsub_surfacer,json=pubsubSurfacer,oneof"`
}

type SurfacerDef_StackdriverSurfacer

type SurfacerDef_StackdriverSurfacer struct {
	StackdriverSurfacer *proto1.SurfacerConf `protobuf:"bytes,11,opt,name=stackdriver_surfacer,json=stackdriverSurfacer,oneof"`
}

type Type

type Type int32

Enumeration for each type of surfacer we can parse and create

const (
	Type_NONE         Type = 0
	Type_PROMETHEUS   Type = 1
	Type_STACKDRIVER  Type = 2
	Type_FILE         Type = 3
	Type_POSTGRES     Type = 4
	Type_PUBSUB       Type = 5
	Type_USER_DEFINED Type = 99
)

func (Type) Descriptor added in v0.10.8

func (Type) Descriptor() protoreflect.EnumDescriptor

func (Type) Enum

func (x Type) Enum() *Type

func (Type) EnumDescriptor deprecated

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

Deprecated: Use Type.Descriptor instead.

func (Type) Number added in v0.10.8

func (x Type) Number() protoreflect.EnumNumber

func (Type) String

func (x Type) String() string

func (Type) Type added in v0.10.8

func (Type) Type() protoreflect.EnumType

func (*Type) UnmarshalJSON deprecated

func (x *Type) 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