import "github.com/envoyproxy/go-control-plane/envoy/service/metrics/v4alpha"
metrics_service.pb.go metrics_service.pb.validate.go
var File_envoy_service_metrics_v4alpha_metrics_service_proto protoreflect.FileDescriptor
func RegisterMetricsServiceServer(s *grpc.Server, srv MetricsServiceServer)
type MetricsServiceClient interface { // Envoy will connect and send StreamMetricsMessage messages forever. It does not expect any // response to be sent as nothing would be done in the case of failure. StreamMetrics(ctx context.Context, opts ...grpc.CallOption) (MetricsService_StreamMetricsClient, error) }
MetricsServiceClient is the client API for MetricsService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMetricsServiceClient(cc grpc.ClientConnInterface) MetricsServiceClient
type MetricsServiceServer interface { // Envoy will connect and send StreamMetricsMessage messages forever. It does not expect any // response to be sent as nothing would be done in the case of failure. StreamMetrics(MetricsService_StreamMetricsServer) error }
MetricsServiceServer is the server API for MetricsService service.
type MetricsService_StreamMetricsClient interface { Send(*StreamMetricsMessage) error CloseAndRecv() (*StreamMetricsResponse, error) grpc.ClientStream }
type MetricsService_StreamMetricsServer interface { SendAndClose(*StreamMetricsResponse) error Recv() (*StreamMetricsMessage, error) grpc.ServerStream }
type StreamMetricsMessage struct { // Identifier data effectively is a structured metadata. As a performance optimization this will // only be sent in the first message on the stream. Identifier *StreamMetricsMessage_Identifier `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` // A list of metric entries EnvoyMetrics []*_go.MetricFamily `protobuf:"bytes,2,rep,name=envoy_metrics,json=envoyMetrics,proto3" json:"envoy_metrics,omitempty"` // contains filtered or unexported fields }
func (*StreamMetricsMessage) Descriptor() ([]byte, []int)
Deprecated: Use StreamMetricsMessage.ProtoReflect.Descriptor instead.
func (x *StreamMetricsMessage) GetEnvoyMetrics() []*_go.MetricFamily
func (x *StreamMetricsMessage) GetIdentifier() *StreamMetricsMessage_Identifier
func (*StreamMetricsMessage) ProtoMessage()
func (x *StreamMetricsMessage) ProtoReflect() protoreflect.Message
func (x *StreamMetricsMessage) Reset()
func (x *StreamMetricsMessage) String() string
func (m *StreamMetricsMessage) Validate() error
Validate checks the field values on StreamMetricsMessage with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type StreamMetricsMessageValidationError struct {
// contains filtered or unexported fields
}
StreamMetricsMessageValidationError is the validation error returned by StreamMetricsMessage.Validate if the designated constraints aren't met.
func (e StreamMetricsMessageValidationError) Cause() error
Cause function returns cause value.
func (e StreamMetricsMessageValidationError) Error() string
Error satisfies the builtin error interface
func (e StreamMetricsMessageValidationError) ErrorName() string
ErrorName returns error name.
func (e StreamMetricsMessageValidationError) Field() string
Field function returns field value.
func (e StreamMetricsMessageValidationError) Key() bool
Key function returns key value.
func (e StreamMetricsMessageValidationError) Reason() string
Reason function returns reason value.
type StreamMetricsMessage_Identifier struct { // The node sending metrics over the stream. Node *v4alpha.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` // contains filtered or unexported fields }
func (*StreamMetricsMessage_Identifier) Descriptor() ([]byte, []int)
Deprecated: Use StreamMetricsMessage_Identifier.ProtoReflect.Descriptor instead.
func (x *StreamMetricsMessage_Identifier) GetNode() *v4alpha.Node
func (*StreamMetricsMessage_Identifier) ProtoMessage()
func (x *StreamMetricsMessage_Identifier) ProtoReflect() protoreflect.Message
func (x *StreamMetricsMessage_Identifier) Reset()
func (x *StreamMetricsMessage_Identifier) String() string
func (m *StreamMetricsMessage_Identifier) Validate() error
Validate checks the field values on StreamMetricsMessage_Identifier with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type StreamMetricsMessage_IdentifierValidationError struct {
// contains filtered or unexported fields
}
StreamMetricsMessage_IdentifierValidationError is the validation error returned by StreamMetricsMessage_Identifier.Validate if the designated constraints aren't met.
func (e StreamMetricsMessage_IdentifierValidationError) Cause() error
Cause function returns cause value.
func (e StreamMetricsMessage_IdentifierValidationError) Error() string
Error satisfies the builtin error interface
func (e StreamMetricsMessage_IdentifierValidationError) ErrorName() string
ErrorName returns error name.
func (e StreamMetricsMessage_IdentifierValidationError) Field() string
Field function returns field value.
func (e StreamMetricsMessage_IdentifierValidationError) Key() bool
Key function returns key value.
func (e StreamMetricsMessage_IdentifierValidationError) Reason() string
Reason function returns reason value.
type StreamMetricsResponse struct {
// contains filtered or unexported fields
}
func (*StreamMetricsResponse) Descriptor() ([]byte, []int)
Deprecated: Use StreamMetricsResponse.ProtoReflect.Descriptor instead.
func (*StreamMetricsResponse) ProtoMessage()
func (x *StreamMetricsResponse) ProtoReflect() protoreflect.Message
func (x *StreamMetricsResponse) Reset()
func (x *StreamMetricsResponse) String() string
func (m *StreamMetricsResponse) Validate() error
Validate checks the field values on StreamMetricsResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type StreamMetricsResponseValidationError struct {
// contains filtered or unexported fields
}
StreamMetricsResponseValidationError is the validation error returned by StreamMetricsResponse.Validate if the designated constraints aren't met.
func (e StreamMetricsResponseValidationError) Cause() error
Cause function returns cause value.
func (e StreamMetricsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (e StreamMetricsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (e StreamMetricsResponseValidationError) Field() string
Field function returns field value.
func (e StreamMetricsResponseValidationError) Key() bool
Key function returns key value.
func (e StreamMetricsResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedMetricsServiceServer struct { }
UnimplementedMetricsServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedMetricsServiceServer) StreamMetrics(MetricsService_StreamMetricsServer) error
Package envoy_service_metrics_v4alpha imports 24 packages (graph) and is imported by 5 packages. Updated 2021-01-09. Refresh now. Tools for package owners.