v1

package
v0.0.0-...-73ec469 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterMetricsServiceServer

func RegisterMetricsServiceServer(s *grpc.Server, srv MetricsServiceServer)

Types

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"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func (*ExportMetricsServiceRequest) Descriptor

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

func (*ExportMetricsServiceRequest) GetResourceMetrics

func (m *ExportMetricsServiceRequest) GetResourceMetrics() []*v1.ResourceMetrics

func (*ExportMetricsServiceRequest) ProtoMessage

func (*ExportMetricsServiceRequest) ProtoMessage()

func (*ExportMetricsServiceRequest) Reset

func (m *ExportMetricsServiceRequest) Reset()

func (*ExportMetricsServiceRequest) String

func (m *ExportMetricsServiceRequest) String() string

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) ProtoMessage

func (*ExportMetricsServiceResponse) ProtoMessage()

func (*ExportMetricsServiceResponse) Reset

func (m *ExportMetricsServiceResponse) Reset()

func (*ExportMetricsServiceResponse) String

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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

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)
	// contains filtered or unexported methods
}

MetricsServiceServer is the server API for MetricsService service. All implementations must embed UnimplementedMetricsServiceServer for forward compatibility

type UnimplementedMetricsServiceServer

type UnimplementedMetricsServiceServer struct {
}

UnimplementedMetricsServiceServer must be embedded to have forward compatible implementations.

Jump to

Keyboard shortcuts

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