Documentation ¶
Index ¶
- Variables
- func RegisterMetricsServiceServer(s *grpc.Server, srv MetricsServiceServer)
- type ExportMetricsPartialSuccess
- func (*ExportMetricsPartialSuccess) Descriptor() ([]byte, []int)
- func (m *ExportMetricsPartialSuccess) GetErrorMessage() string
- func (m *ExportMetricsPartialSuccess) GetRejectedDataPoints() int64
- func (m *ExportMetricsPartialSuccess) Marshal() (dAtA []byte, err error)
- func (m *ExportMetricsPartialSuccess) MarshalTo(dAtA []byte) (int, error)
- func (m *ExportMetricsPartialSuccess) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ExportMetricsPartialSuccess) ProtoMessage()
- func (m *ExportMetricsPartialSuccess) Reset()
- func (m *ExportMetricsPartialSuccess) Size() (n int)
- func (m *ExportMetricsPartialSuccess) String() string
- func (m *ExportMetricsPartialSuccess) Unmarshal(dAtA []byte) error
- func (m *ExportMetricsPartialSuccess) XXX_DiscardUnknown()
- func (m *ExportMetricsPartialSuccess) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ExportMetricsPartialSuccess) XXX_Merge(src proto.Message)
- func (m *ExportMetricsPartialSuccess) XXX_Size() int
- func (m *ExportMetricsPartialSuccess) XXX_Unmarshal(b []byte) error
- type ExportMetricsServiceRequest
- func (*ExportMetricsServiceRequest) Descriptor() ([]byte, []int)
- func (m *ExportMetricsServiceRequest) GetResourceMetrics() []*v1.ResourceMetrics
- func (m *ExportMetricsServiceRequest) Marshal() (dAtA []byte, err error)
- func (m *ExportMetricsServiceRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ExportMetricsServiceRequest) MarshalToSizedBuffer(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) GetPartialSuccess() ExportMetricsPartialSuccess
- func (m *ExportMetricsServiceResponse) Marshal() (dAtA []byte, err error)
- func (m *ExportMetricsServiceResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *ExportMetricsServiceResponse) MarshalToSizedBuffer(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 UnimplementedMetricsServiceServer
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterMetricsServiceServer ¶
func RegisterMetricsServiceServer(s *grpc.Server, srv MetricsServiceServer)
Types ¶
type ExportMetricsPartialSuccess ¶ added in v0.58.0
type ExportMetricsPartialSuccess struct { // The number of rejected data points. // // A `rejected_<signal>` field holding a `0` value indicates that the // request was fully accepted. RejectedDataPoints int64 `protobuf:"varint,1,opt,name=rejected_data_points,json=rejectedDataPoints,proto3" json:"rejected_data_points,omitempty"` // A developer-facing human-readable message in English. It should be used // either to explain why the server rejected parts of the data during a partial // success or to convey warnings/suggestions during a full success. The message // should offer guidance on how users can address such issues. // // error_message is an optional field. An error_message with an empty value // is equivalent to it not being set. ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` }
func (*ExportMetricsPartialSuccess) Descriptor ¶ added in v0.58.0
func (*ExportMetricsPartialSuccess) Descriptor() ([]byte, []int)
func (*ExportMetricsPartialSuccess) GetErrorMessage ¶ added in v0.58.0
func (m *ExportMetricsPartialSuccess) GetErrorMessage() string
func (*ExportMetricsPartialSuccess) GetRejectedDataPoints ¶ added in v0.58.0
func (m *ExportMetricsPartialSuccess) GetRejectedDataPoints() int64
func (*ExportMetricsPartialSuccess) Marshal ¶ added in v0.58.0
func (m *ExportMetricsPartialSuccess) Marshal() (dAtA []byte, err error)
func (*ExportMetricsPartialSuccess) MarshalTo ¶ added in v0.58.0
func (m *ExportMetricsPartialSuccess) MarshalTo(dAtA []byte) (int, error)
func (*ExportMetricsPartialSuccess) MarshalToSizedBuffer ¶ added in v0.58.0
func (m *ExportMetricsPartialSuccess) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ExportMetricsPartialSuccess) ProtoMessage ¶ added in v0.58.0
func (*ExportMetricsPartialSuccess) ProtoMessage()
func (*ExportMetricsPartialSuccess) Reset ¶ added in v0.58.0
func (m *ExportMetricsPartialSuccess) Reset()
func (*ExportMetricsPartialSuccess) Size ¶ added in v0.58.0
func (m *ExportMetricsPartialSuccess) Size() (n int)
func (*ExportMetricsPartialSuccess) String ¶ added in v0.58.0
func (m *ExportMetricsPartialSuccess) String() string
func (*ExportMetricsPartialSuccess) Unmarshal ¶ added in v0.58.0
func (m *ExportMetricsPartialSuccess) Unmarshal(dAtA []byte) error
func (*ExportMetricsPartialSuccess) XXX_DiscardUnknown ¶ added in v0.58.0
func (m *ExportMetricsPartialSuccess) XXX_DiscardUnknown()
func (*ExportMetricsPartialSuccess) XXX_Marshal ¶ added in v0.58.0
func (m *ExportMetricsPartialSuccess) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ExportMetricsPartialSuccess) XXX_Merge ¶ added in v0.58.0
func (m *ExportMetricsPartialSuccess) XXX_Merge(src proto.Message)
func (*ExportMetricsPartialSuccess) XXX_Size ¶ added in v0.58.0
func (m *ExportMetricsPartialSuccess) XXX_Size() int
func (*ExportMetricsPartialSuccess) XXX_Unmarshal ¶ added in v0.58.0
func (m *ExportMetricsPartialSuccess) XXX_Unmarshal(b []byte) error
type ExportMetricsServiceRequest ¶
type ExportMetricsServiceRequest struct { // An array of ResourceMetrics. // For data coming from a single resource this array will typically contain one // element. Intermediary nodes (such as OpenTelemetry Collector) that receive // data from multiple origins typically batch the data before forwarding further and // in that case this array will contain multiple elements. ResourceMetrics []*v1.ResourceMetrics `protobuf:"bytes,1,rep,name=resource_metrics,json=resourceMetrics,proto3" json:"resource_metrics,omitempty"` }
func (*ExportMetricsServiceRequest) Descriptor ¶
func (*ExportMetricsServiceRequest) Descriptor() ([]byte, []int)
func (*ExportMetricsServiceRequest) GetResourceMetrics ¶
func (m *ExportMetricsServiceRequest) GetResourceMetrics() []*v1.ResourceMetrics
func (*ExportMetricsServiceRequest) Marshal ¶
func (m *ExportMetricsServiceRequest) Marshal() (dAtA []byte, err error)
func (*ExportMetricsServiceRequest) MarshalTo ¶
func (m *ExportMetricsServiceRequest) MarshalTo(dAtA []byte) (int, error)
func (*ExportMetricsServiceRequest) MarshalToSizedBuffer ¶
func (m *ExportMetricsServiceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ExportMetricsServiceRequest) ProtoMessage ¶
func (*ExportMetricsServiceRequest) ProtoMessage()
func (*ExportMetricsServiceRequest) Reset ¶
func (m *ExportMetricsServiceRequest) Reset()
func (*ExportMetricsServiceRequest) Size ¶
func (m *ExportMetricsServiceRequest) Size() (n int)
func (*ExportMetricsServiceRequest) String ¶
func (m *ExportMetricsServiceRequest) String() string
func (*ExportMetricsServiceRequest) Unmarshal ¶
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 { // The details of a partially successful export request. // // If the request is only partially accepted // (i.e. when the server accepts only parts of the data and rejects the rest) // the server MUST initialize the `partial_success` field and MUST // set the `rejected_<signal>` with the number of items it rejected. // // Servers MAY also make use of the `partial_success` field to convey // warnings/suggestions to senders even when the request was fully accepted. // In such cases, the `rejected_<signal>` MUST have a value of `0` and // the `error_message` MUST be non-empty. // // A `partial_success` message with an empty value (rejected_<signal> = 0 and // `error_message` = "") is equivalent to it not being set/present. Senders // SHOULD interpret it the same way as in the full success case. PartialSuccess ExportMetricsPartialSuccess `protobuf:"bytes,1,opt,name=partial_success,json=partialSuccess,proto3" json:"partial_success"` }
func (*ExportMetricsServiceResponse) Descriptor ¶
func (*ExportMetricsServiceResponse) Descriptor() ([]byte, []int)
func (*ExportMetricsServiceResponse) GetPartialSuccess ¶ added in v0.58.0
func (m *ExportMetricsServiceResponse) GetPartialSuccess() ExportMetricsPartialSuccess
func (*ExportMetricsServiceResponse) Marshal ¶
func (m *ExportMetricsServiceResponse) Marshal() (dAtA []byte, err error)
func (*ExportMetricsServiceResponse) MarshalTo ¶
func (m *ExportMetricsServiceResponse) MarshalTo(dAtA []byte) (int, error)
func (*ExportMetricsServiceResponse) MarshalToSizedBuffer ¶
func (m *ExportMetricsServiceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ExportMetricsServiceResponse) ProtoMessage ¶
func (*ExportMetricsServiceResponse) ProtoMessage()
func (*ExportMetricsServiceResponse) Reset ¶
func (m *ExportMetricsServiceResponse) Reset()
func (*ExportMetricsServiceResponse) Size ¶
func (m *ExportMetricsServiceResponse) Size() (n int)
func (*ExportMetricsServiceResponse) String ¶
func (m *ExportMetricsServiceResponse) String() string
func (*ExportMetricsServiceResponse) Unmarshal ¶
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, in *ExportMetricsServiceRequest, opts ...grpc.CallOption) (*ExportMetricsServiceResponse, 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(context.Context, *ExportMetricsServiceRequest) (*ExportMetricsServiceResponse, error) }
MetricsServiceServer is the server API for MetricsService service.
type UnimplementedMetricsServiceServer ¶
type UnimplementedMetricsServiceServer struct { }
UnimplementedMetricsServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedMetricsServiceServer) Export ¶
func (*UnimplementedMetricsServiceServer) Export(ctx context.Context, req *ExportMetricsServiceRequest) (*ExportMetricsServiceResponse, error)
Click to show internal directories.
Click to hide internal directories.