Documentation ¶
Index ¶
- Variables
- func RegisterMetricsServiceServer(s *grpc.Server, srv MetricsServiceServer)
- type ExportMetricsServiceRequest
- func (*ExportMetricsServiceRequest) Descriptor() ([]byte, []int)
- func (m *ExportMetricsServiceRequest) GetMetrics() []*v11.Metric
- func (m *ExportMetricsServiceRequest) GetNode() *v1.Node
- func (m *ExportMetricsServiceRequest) GetResource() *v12.Resource
- func (m *ExportMetricsServiceRequest) Marshal() (dAtA []byte, err error)
- func (m *ExportMetricsServiceRequest) MarshalTo(dAtA []byte) (int, error)
- func (*ExportMetricsServiceRequest) ProtoMessage()
- func (m *ExportMetricsServiceRequest) Reset()
- func (m *ExportMetricsServiceRequest) Size() (n int)
- func (m *ExportMetricsServiceRequest) String() string
- func (m *ExportMetricsServiceRequest) Unmarshal(dAtA []byte) error
- func (m *ExportMetricsServiceRequest) XXX_DiscardUnknown()
- func (m *ExportMetricsServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ExportMetricsServiceRequest) XXX_Merge(src proto.Message)
- func (m *ExportMetricsServiceRequest) XXX_Size() int
- func (m *ExportMetricsServiceRequest) XXX_Unmarshal(b []byte) error
- type ExportMetricsServiceResponse
- func (*ExportMetricsServiceResponse) Descriptor() ([]byte, []int)
- func (m *ExportMetricsServiceResponse) Marshal() (dAtA []byte, err error)
- func (m *ExportMetricsServiceResponse) MarshalTo(dAtA []byte) (int, error)
- func (*ExportMetricsServiceResponse) ProtoMessage()
- func (m *ExportMetricsServiceResponse) Reset()
- func (m *ExportMetricsServiceResponse) Size() (n int)
- func (m *ExportMetricsServiceResponse) String() string
- func (m *ExportMetricsServiceResponse) Unmarshal(dAtA []byte) error
- func (m *ExportMetricsServiceResponse) XXX_DiscardUnknown()
- func (m *ExportMetricsServiceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ExportMetricsServiceResponse) XXX_Merge(src proto.Message)
- func (m *ExportMetricsServiceResponse) XXX_Size() int
- func (m *ExportMetricsServiceResponse) XXX_Unmarshal(b []byte) error
- type MetricsServiceClient
- type MetricsServiceServer
- type MetricsService_ExportClient
- type MetricsService_ExportServer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthMetricsService = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMetricsService = fmt.Errorf("proto: integer overflow") )
Functions ¶
func RegisterMetricsServiceServer ¶
func RegisterMetricsServiceServer(s *grpc.Server, srv MetricsServiceServer)
Types ¶
type ExportMetricsServiceRequest ¶
type ExportMetricsServiceRequest struct { // This is required only in the first message on the stream or if the // previous sent ExportMetricsServiceRequest message has a different Node (e.g. // when the same RPC is used to send Metrics from multiple Applications). Node *v1.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` // A list of metrics that belong to the last received Node. Metrics []*v11.Metric `protobuf:"bytes,2,rep,name=metrics,proto3" json:"metrics,omitempty"` // The resource for the metrics in this message that do not have an explicit // resource set. // If unset, the most recently set resource in the RPC stream applies. It is // valid to never be set within a stream, e.g. when no resource info is known // at all or when all sent metrics have an explicit resource set. Resource *v12.Resource `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ExportMetricsServiceRequest) Descriptor ¶
func (*ExportMetricsServiceRequest) Descriptor() ([]byte, []int)
func (*ExportMetricsServiceRequest) GetMetrics ¶
func (m *ExportMetricsServiceRequest) GetMetrics() []*v11.Metric
func (*ExportMetricsServiceRequest) GetNode ¶
func (m *ExportMetricsServiceRequest) GetNode() *v1.Node
func (*ExportMetricsServiceRequest) GetResource ¶
func (m *ExportMetricsServiceRequest) GetResource() *v12.Resource
func (*ExportMetricsServiceRequest) Marshal ¶ added in v0.2.1
func (m *ExportMetricsServiceRequest) Marshal() (dAtA []byte, err error)
func (*ExportMetricsServiceRequest) MarshalTo ¶ added in v0.2.1
func (m *ExportMetricsServiceRequest) MarshalTo(dAtA []byte) (int, error)
func (*ExportMetricsServiceRequest) ProtoMessage ¶
func (*ExportMetricsServiceRequest) ProtoMessage()
func (*ExportMetricsServiceRequest) Reset ¶
func (m *ExportMetricsServiceRequest) Reset()
func (*ExportMetricsServiceRequest) Size ¶ added in v0.2.1
func (m *ExportMetricsServiceRequest) Size() (n int)
func (*ExportMetricsServiceRequest) String ¶
func (m *ExportMetricsServiceRequest) String() string
func (*ExportMetricsServiceRequest) Unmarshal ¶ added in v0.2.1
func (m *ExportMetricsServiceRequest) Unmarshal(dAtA []byte) error
func (*ExportMetricsServiceRequest) XXX_DiscardUnknown ¶
func (m *ExportMetricsServiceRequest) XXX_DiscardUnknown()
func (*ExportMetricsServiceRequest) XXX_Marshal ¶
func (m *ExportMetricsServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ExportMetricsServiceRequest) XXX_Merge ¶
func (m *ExportMetricsServiceRequest) XXX_Merge(src proto.Message)
func (*ExportMetricsServiceRequest) XXX_Size ¶
func (m *ExportMetricsServiceRequest) XXX_Size() int
func (*ExportMetricsServiceRequest) XXX_Unmarshal ¶
func (m *ExportMetricsServiceRequest) XXX_Unmarshal(b []byte) error
type ExportMetricsServiceResponse ¶
type ExportMetricsServiceResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ExportMetricsServiceResponse) Descriptor ¶
func (*ExportMetricsServiceResponse) Descriptor() ([]byte, []int)
func (*ExportMetricsServiceResponse) Marshal ¶ added in v0.2.1
func (m *ExportMetricsServiceResponse) Marshal() (dAtA []byte, err error)
func (*ExportMetricsServiceResponse) MarshalTo ¶ added in v0.2.1
func (m *ExportMetricsServiceResponse) MarshalTo(dAtA []byte) (int, error)
func (*ExportMetricsServiceResponse) ProtoMessage ¶
func (*ExportMetricsServiceResponse) ProtoMessage()
func (*ExportMetricsServiceResponse) Reset ¶
func (m *ExportMetricsServiceResponse) Reset()
func (*ExportMetricsServiceResponse) Size ¶ added in v0.2.1
func (m *ExportMetricsServiceResponse) Size() (n int)
func (*ExportMetricsServiceResponse) String ¶
func (m *ExportMetricsServiceResponse) String() string
func (*ExportMetricsServiceResponse) Unmarshal ¶ added in v0.2.1
func (m *ExportMetricsServiceResponse) Unmarshal(dAtA []byte) error
func (*ExportMetricsServiceResponse) XXX_DiscardUnknown ¶
func (m *ExportMetricsServiceResponse) XXX_DiscardUnknown()
func (*ExportMetricsServiceResponse) XXX_Marshal ¶
func (m *ExportMetricsServiceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ExportMetricsServiceResponse) XXX_Merge ¶
func (m *ExportMetricsServiceResponse) XXX_Merge(src proto.Message)
func (*ExportMetricsServiceResponse) XXX_Size ¶
func (m *ExportMetricsServiceResponse) XXX_Size() int
func (*ExportMetricsServiceResponse) XXX_Unmarshal ¶
func (m *ExportMetricsServiceResponse) XXX_Unmarshal(b []byte) error
type MetricsServiceClient ¶
type MetricsServiceClient interface { // For performance reasons, it is recommended to keep this RPC // alive for the entire life of the application. Export(ctx context.Context, opts ...grpc.CallOption) (MetricsService_ExportClient, 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 ¶
func NewMetricsServiceClient(cc *grpc.ClientConn) MetricsServiceClient
type MetricsServiceServer ¶
type MetricsServiceServer interface { // For performance reasons, it is recommended to keep this RPC // alive for the entire life of the application. Export(MetricsService_ExportServer) error }
MetricsServiceServer is the server API for MetricsService service.
type MetricsService_ExportClient ¶
type MetricsService_ExportClient interface { Send(*ExportMetricsServiceRequest) error Recv() (*ExportMetricsServiceResponse, error) grpc.ClientStream }
type MetricsService_ExportServer ¶
type MetricsService_ExportServer interface { Send(*ExportMetricsServiceResponse) error Recv() (*ExportMetricsServiceRequest, error) grpc.ServerStream }
Click to show internal directories.
Click to hide internal directories.