proto

package
v0.0.0-...-fe78729 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pkg_sinks_plugin_proto_metrics_proto protoreflect.FileDescriptor
View Source
var KafkaPlugin_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.KafkaPlugin",
	HandlerType: (*KafkaPluginServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "WriteKafkaMetrics",
			Handler:    _KafkaPlugin_WriteKafkaMetrics_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/sinks/plugin/proto/metrics.proto",
}

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

Functions

func RegisterKafkaPluginServer

func RegisterKafkaPluginServer(s grpc.ServiceRegistrar, srv KafkaPluginServer)

Types

type Empty

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

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type KafkaGauge

type KafkaGauge struct {
	Name      string                 `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"`
	Meta      map[string]string      `` /* 149-byte string literal not displayed */
	Value     int64                  `protobuf:"varint,4,opt,name=Value,proto3" json:"Value,omitempty"`
	// contains filtered or unexported fields
}

func (*KafkaGauge) Descriptor deprecated

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

Deprecated: Use KafkaGauge.ProtoReflect.Descriptor instead.

func (*KafkaGauge) GetMeta

func (x *KafkaGauge) GetMeta() map[string]string

func (*KafkaGauge) GetName

func (x *KafkaGauge) GetName() string

func (*KafkaGauge) GetTimestamp

func (x *KafkaGauge) GetTimestamp() *timestamppb.Timestamp

func (*KafkaGauge) GetValue

func (x *KafkaGauge) GetValue() int64

func (*KafkaGauge) ProtoMessage

func (*KafkaGauge) ProtoMessage()

func (*KafkaGauge) ProtoReflect

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

func (*KafkaGauge) Reset

func (x *KafkaGauge) Reset()

func (*KafkaGauge) String

func (x *KafkaGauge) String() string

type KafkaMeter

type KafkaMeter struct {
	Name      string                 `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"`
	Meta      map[string]string      `` /* 149-byte string literal not displayed */
	Rate1     float64                `protobuf:"fixed64,4,opt,name=Rate1,proto3" json:"Rate1,omitempty"`
	Rate5     float64                `protobuf:"fixed64,5,opt,name=Rate5,proto3" json:"Rate5,omitempty"`
	Rate15    float64                `protobuf:"fixed64,6,opt,name=Rate15,proto3" json:"Rate15,omitempty"`
	RateMean  float64                `protobuf:"fixed64,7,opt,name=RateMean,proto3" json:"RateMean,omitempty"`
	Count     int64                  `protobuf:"varint,8,opt,name=Count,proto3" json:"Count,omitempty"`
	// contains filtered or unexported fields
}

func (*KafkaMeter) Descriptor deprecated

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

Deprecated: Use KafkaMeter.ProtoReflect.Descriptor instead.

func (*KafkaMeter) GetCount

func (x *KafkaMeter) GetCount() int64

func (*KafkaMeter) GetMeta

func (x *KafkaMeter) GetMeta() map[string]string

func (*KafkaMeter) GetName

func (x *KafkaMeter) GetName() string

func (*KafkaMeter) GetRate1

func (x *KafkaMeter) GetRate1() float64

func (*KafkaMeter) GetRate15

func (x *KafkaMeter) GetRate15() float64

func (*KafkaMeter) GetRate5

func (x *KafkaMeter) GetRate5() float64

func (*KafkaMeter) GetRateMean

func (x *KafkaMeter) GetRateMean() float64

func (*KafkaMeter) GetTimestamp

func (x *KafkaMeter) GetTimestamp() *timestamppb.Timestamp

func (*KafkaMeter) ProtoMessage

func (*KafkaMeter) ProtoMessage()

func (*KafkaMeter) ProtoReflect

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

func (*KafkaMeter) Reset

func (x *KafkaMeter) Reset()

func (*KafkaMeter) String

func (x *KafkaMeter) String() string

type KafkaPluginClient

type KafkaPluginClient interface {
	WriteKafkaMetrics(ctx context.Context, in *WriteKafkaMetricsRequest, opts ...grpc.CallOption) (*Empty, error)
}

KafkaPluginClient is the client API for KafkaPlugin 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 KafkaPluginServer

type KafkaPluginServer interface {
	WriteKafkaMetrics(context.Context, *WriteKafkaMetricsRequest) (*Empty, error)
	// contains filtered or unexported methods
}

KafkaPluginServer is the server API for KafkaPlugin service. All implementations must embed UnimplementedKafkaPluginServer for forward compatibility

type UnimplementedKafkaPluginServer

type UnimplementedKafkaPluginServer struct {
}

UnimplementedKafkaPluginServer must be embedded to have forward compatible implementations.

func (UnimplementedKafkaPluginServer) WriteKafkaMetrics

type UnsafeKafkaPluginServer

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

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

type WriteKafkaMetricsRequest

type WriteKafkaMetricsRequest struct {
	Metrics []*anypb.Any `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty"`
	// contains filtered or unexported fields
}

func (*WriteKafkaMetricsRequest) Descriptor deprecated

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

Deprecated: Use WriteKafkaMetricsRequest.ProtoReflect.Descriptor instead.

func (*WriteKafkaMetricsRequest) GetMetrics

func (x *WriteKafkaMetricsRequest) GetMetrics() []*anypb.Any

func (*WriteKafkaMetricsRequest) ProtoMessage

func (*WriteKafkaMetricsRequest) ProtoMessage()

func (*WriteKafkaMetricsRequest) ProtoReflect

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

func (*WriteKafkaMetricsRequest) Reset

func (x *WriteKafkaMetricsRequest) Reset()

func (*WriteKafkaMetricsRequest) String

func (x *WriteKafkaMetricsRequest) String() string

Jump to

Keyboard shortcuts

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