v3

package
v0.0.0-...-6cb6b35 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Protocol_name = map[int32]string{
		0: "HTTP",
		1: "gRPC",
	}
	Protocol_value = map[string]int32{
		"HTTP": 0,
		"gRPC": 1,
	}
)

Enum value maps for Protocol.

View Source
var File_service_mesh_probe_service_mesh_proto protoreflect.FileDescriptor

Functions

func RegisterServiceMeshMetricServiceServer

func RegisterServiceMeshMetricServiceServer(s grpc.ServiceRegistrar, srv ServiceMeshMetricServiceServer)

Types

type HTTPServiceMeshMetric

type HTTPServiceMeshMetric struct {

	// Start timestamp in milliseconds of this RPC,
	// measured between the current time and midnight, January 1, 1970 UTC.
	StartTime int64 `protobuf:"varint,1,opt,name=startTime,proto3" json:"startTime,omitempty"`
	// End timestamp in milliseconds of this RPC,
	// measured between the current time and midnight, January 1, 1970 UTC.
	EndTime               int64  `protobuf:"varint,2,opt,name=endTime,proto3" json:"endTime,omitempty"`
	SourceServiceName     string `protobuf:"bytes,3,opt,name=sourceServiceName,proto3" json:"sourceServiceName,omitempty"`
	SourceServiceInstance string `protobuf:"bytes,4,opt,name=sourceServiceInstance,proto3" json:"sourceServiceInstance,omitempty"`
	DestServiceName       string `protobuf:"bytes,5,opt,name=destServiceName,proto3" json:"destServiceName,omitempty"`
	DestServiceInstance   string `protobuf:"bytes,6,opt,name=destServiceInstance,proto3" json:"destServiceInstance,omitempty"`
	Endpoint              string `protobuf:"bytes,7,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	Latency               int32  `protobuf:"varint,8,opt,name=latency,proto3" json:"latency,omitempty"`
	ResponseCode          int32  `protobuf:"varint,9,opt,name=responseCode,proto3" json:"responseCode,omitempty"`
	// Status represents the response status of this calling.
	Status      bool           `protobuf:"varint,10,opt,name=status,proto3" json:"status,omitempty"`
	Protocol    Protocol       `protobuf:"varint,11,opt,name=protocol,proto3,enum=skywalking.v3.Protocol" json:"protocol,omitempty"`
	DetectPoint v3.DetectPoint `protobuf:"varint,12,opt,name=detectPoint,proto3,enum=skywalking.v3.DetectPoint" json:"detectPoint,omitempty"`
	// NONE, mTLS, or TLS
	TlsMode string `protobuf:"bytes,13,opt,name=tlsMode,proto3" json:"tlsMode,omitempty"`
	// The sidecar/proxy internal error code, the value bases on the
	// implementation. The envoy internal error codes are listed here,
	// https://www.envoyproxy.io/docs/envoy/latest/api-v2/data/accesslog/v2/accesslog.proto#data-accesslog-v2-responseflags
	InternalErrorCode string `protobuf:"bytes,14,opt,name=internalErrorCode,proto3" json:"internalErrorCode,omitempty"`
	// Internal request(response) latency is the time cost inside the Envoy
	// sidecar proxy. For more details, check
	// https://www.envoyproxy.io/docs/envoy/v1.22.0/api-v3/data/accesslog/v3/accesslog.proto.html#data-accesslog-v3-accesslogcommon.
	// internalRequestLatencyNanos is the interval between the first downstream
	// byte received and the first upstream byte sent
	InternalRequestLatencyNanos int64 `protobuf:"varint,15,opt,name=internalRequestLatencyNanos,proto3" json:"internalRequestLatencyNanos,omitempty"`
	// internalResponseLatencyNanos = time_to_first_downstream_tx_byte -
	// time_to_first_upstream_rx_byte; | ... request workflow  ... | upstream |
	// ----- response -----> |                proxy                | -------
	// response -------> | client  | | time_to_first_upstream_rx_byte | |
	// time_to_last_downstream_tx_byte |
	//                                                                |
	//                                                                internalResponseLatencyNanos
	//                                                                |
	InternalResponseLatencyNanos int64                    `protobuf:"varint,16,opt,name=internalResponseLatencyNanos,proto3" json:"internalResponseLatencyNanos,omitempty"`
	SourceInstanceProperties     []*v3.KeyStringValuePair `protobuf:"bytes,17,rep,name=sourceInstanceProperties,proto3" json:"sourceInstanceProperties,omitempty"`
	DestInstanceProperties       []*v3.KeyStringValuePair `protobuf:"bytes,18,rep,name=destInstanceProperties,proto3" json:"destInstanceProperties,omitempty"`
	// contains filtered or unexported fields
}

func (*HTTPServiceMeshMetric) Descriptor deprecated

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

Deprecated: Use HTTPServiceMeshMetric.ProtoReflect.Descriptor instead.

func (*HTTPServiceMeshMetric) GetDestInstanceProperties

func (x *HTTPServiceMeshMetric) GetDestInstanceProperties() []*v3.KeyStringValuePair

func (*HTTPServiceMeshMetric) GetDestServiceInstance

func (x *HTTPServiceMeshMetric) GetDestServiceInstance() string

func (*HTTPServiceMeshMetric) GetDestServiceName

func (x *HTTPServiceMeshMetric) GetDestServiceName() string

func (*HTTPServiceMeshMetric) GetDetectPoint

func (x *HTTPServiceMeshMetric) GetDetectPoint() v3.DetectPoint

func (*HTTPServiceMeshMetric) GetEndTime

func (x *HTTPServiceMeshMetric) GetEndTime() int64

func (*HTTPServiceMeshMetric) GetEndpoint

func (x *HTTPServiceMeshMetric) GetEndpoint() string

func (*HTTPServiceMeshMetric) GetInternalErrorCode

func (x *HTTPServiceMeshMetric) GetInternalErrorCode() string

func (*HTTPServiceMeshMetric) GetInternalRequestLatencyNanos

func (x *HTTPServiceMeshMetric) GetInternalRequestLatencyNanos() int64

func (*HTTPServiceMeshMetric) GetInternalResponseLatencyNanos

func (x *HTTPServiceMeshMetric) GetInternalResponseLatencyNanos() int64

func (*HTTPServiceMeshMetric) GetLatency

func (x *HTTPServiceMeshMetric) GetLatency() int32

func (*HTTPServiceMeshMetric) GetProtocol

func (x *HTTPServiceMeshMetric) GetProtocol() Protocol

func (*HTTPServiceMeshMetric) GetResponseCode

func (x *HTTPServiceMeshMetric) GetResponseCode() int32

func (*HTTPServiceMeshMetric) GetSourceInstanceProperties

func (x *HTTPServiceMeshMetric) GetSourceInstanceProperties() []*v3.KeyStringValuePair

func (*HTTPServiceMeshMetric) GetSourceServiceInstance

func (x *HTTPServiceMeshMetric) GetSourceServiceInstance() string

func (*HTTPServiceMeshMetric) GetSourceServiceName

func (x *HTTPServiceMeshMetric) GetSourceServiceName() string

func (*HTTPServiceMeshMetric) GetStartTime

func (x *HTTPServiceMeshMetric) GetStartTime() int64

func (*HTTPServiceMeshMetric) GetStatus

func (x *HTTPServiceMeshMetric) GetStatus() bool

func (*HTTPServiceMeshMetric) GetTlsMode

func (x *HTTPServiceMeshMetric) GetTlsMode() string

func (*HTTPServiceMeshMetric) ProtoMessage

func (*HTTPServiceMeshMetric) ProtoMessage()

func (*HTTPServiceMeshMetric) ProtoReflect

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

func (*HTTPServiceMeshMetric) Reset

func (x *HTTPServiceMeshMetric) Reset()

func (*HTTPServiceMeshMetric) String

func (x *HTTPServiceMeshMetric) String() string

type HTTPServiceMeshMetrics

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

func (*HTTPServiceMeshMetrics) Descriptor deprecated

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

Deprecated: Use HTTPServiceMeshMetrics.ProtoReflect.Descriptor instead.

func (*HTTPServiceMeshMetrics) GetMetrics

func (x *HTTPServiceMeshMetrics) GetMetrics() []*HTTPServiceMeshMetric

func (*HTTPServiceMeshMetrics) ProtoMessage

func (*HTTPServiceMeshMetrics) ProtoMessage()

func (*HTTPServiceMeshMetrics) ProtoReflect

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

func (*HTTPServiceMeshMetrics) Reset

func (x *HTTPServiceMeshMetrics) Reset()

func (*HTTPServiceMeshMetrics) String

func (x *HTTPServiceMeshMetrics) String() string

type MeshProbeDownstream

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

func (*MeshProbeDownstream) Descriptor deprecated

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

Deprecated: Use MeshProbeDownstream.ProtoReflect.Descriptor instead.

func (*MeshProbeDownstream) ProtoMessage

func (*MeshProbeDownstream) ProtoMessage()

func (*MeshProbeDownstream) ProtoReflect

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

func (*MeshProbeDownstream) Reset

func (x *MeshProbeDownstream) Reset()

func (*MeshProbeDownstream) String

func (x *MeshProbeDownstream) String() string

type Protocol

type Protocol int32
const (
	Protocol_HTTP Protocol = 0
	Protocol_gRPC Protocol = 1
)

func (Protocol) Descriptor

func (Protocol) Descriptor() protoreflect.EnumDescriptor

func (Protocol) Enum

func (x Protocol) Enum() *Protocol

func (Protocol) EnumDescriptor deprecated

func (Protocol) EnumDescriptor() ([]byte, []int)

Deprecated: Use Protocol.Descriptor instead.

func (Protocol) Number

func (x Protocol) Number() protoreflect.EnumNumber

func (Protocol) String

func (x Protocol) String() string

func (Protocol) Type

type ServiceMeshMetricServiceClient

type ServiceMeshMetricServiceClient interface {
	Collect(ctx context.Context, opts ...grpc.CallOption) (ServiceMeshMetricService_CollectClient, error)
}

ServiceMeshMetricServiceClient is the client API for ServiceMeshMetricService 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 ServiceMeshMetricServiceServer

type ServiceMeshMetricServiceServer interface {
	Collect(ServiceMeshMetricService_CollectServer) error
	// contains filtered or unexported methods
}

ServiceMeshMetricServiceServer is the server API for ServiceMeshMetricService service. All implementations must embed UnimplementedServiceMeshMetricServiceServer for forward compatibility

type ServiceMeshMetricService_CollectClient

type ServiceMeshMetricService_CollectClient interface {
	Send(*ServiceMeshMetrics) error
	CloseAndRecv() (*MeshProbeDownstream, error)
	grpc.ClientStream
}

type ServiceMeshMetricService_CollectServer

type ServiceMeshMetricService_CollectServer interface {
	SendAndClose(*MeshProbeDownstream) error
	Recv() (*ServiceMeshMetrics, error)
	grpc.ServerStream
}

type ServiceMeshMetrics

type ServiceMeshMetrics struct {

	// Types that are assignable to Metrics:
	//	*ServiceMeshMetrics_HttpMetrics
	//	*ServiceMeshMetrics_TcpMetrics
	Metrics isServiceMeshMetrics_Metrics `protobuf_oneof:"metrics"`
	// contains filtered or unexported fields
}

func (*ServiceMeshMetrics) Descriptor deprecated

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

Deprecated: Use ServiceMeshMetrics.ProtoReflect.Descriptor instead.

func (*ServiceMeshMetrics) GetHttpMetrics

func (x *ServiceMeshMetrics) GetHttpMetrics() *HTTPServiceMeshMetrics

func (*ServiceMeshMetrics) GetMetrics

func (m *ServiceMeshMetrics) GetMetrics() isServiceMeshMetrics_Metrics

func (*ServiceMeshMetrics) GetTcpMetrics

func (x *ServiceMeshMetrics) GetTcpMetrics() *TCPServiceMeshMetrics

func (*ServiceMeshMetrics) ProtoMessage

func (*ServiceMeshMetrics) ProtoMessage()

func (*ServiceMeshMetrics) ProtoReflect

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

func (*ServiceMeshMetrics) Reset

func (x *ServiceMeshMetrics) Reset()

func (*ServiceMeshMetrics) String

func (x *ServiceMeshMetrics) String() string

type ServiceMeshMetrics_HttpMetrics

type ServiceMeshMetrics_HttpMetrics struct {
	HttpMetrics *HTTPServiceMeshMetrics `protobuf:"bytes,1,opt,name=httpMetrics,proto3,oneof"`
}

type ServiceMeshMetrics_TcpMetrics

type ServiceMeshMetrics_TcpMetrics struct {
	TcpMetrics *TCPServiceMeshMetrics `protobuf:"bytes,2,opt,name=tcpMetrics,proto3,oneof"`
}

type TCPServiceMeshMetric

type TCPServiceMeshMetric struct {

	// Start timestamp in milliseconds of this RPC,
	// measured between the current time and midnight, January 1, 1970 UTC.
	StartTime int64 `protobuf:"varint,1,opt,name=startTime,proto3" json:"startTime,omitempty"`
	// End timestamp in milliseconds of this RPC,
	// measured between the current time and midnight, January 1, 1970 UTC.
	EndTime               int64          `protobuf:"varint,2,opt,name=endTime,proto3" json:"endTime,omitempty"`
	SourceServiceName     string         `protobuf:"bytes,3,opt,name=sourceServiceName,proto3" json:"sourceServiceName,omitempty"`
	SourceServiceInstance string         `protobuf:"bytes,4,opt,name=sourceServiceInstance,proto3" json:"sourceServiceInstance,omitempty"`
	DestServiceName       string         `protobuf:"bytes,5,opt,name=destServiceName,proto3" json:"destServiceName,omitempty"`
	DestServiceInstance   string         `protobuf:"bytes,6,opt,name=destServiceInstance,proto3" json:"destServiceInstance,omitempty"`
	DetectPoint           v3.DetectPoint `protobuf:"varint,7,opt,name=detectPoint,proto3,enum=skywalking.v3.DetectPoint" json:"detectPoint,omitempty"`
	// NONE, mTLS, or TLS
	TlsMode string `protobuf:"bytes,8,opt,name=tlsMode,proto3" json:"tlsMode,omitempty"`
	// The sidecar/proxy internal error code, the value bases on the
	// implementation. The envoy internal error codes are listed here,
	// https://www.envoyproxy.io/docs/envoy/latest/api-v2/data/accesslog/v2/accesslog.proto#data-accesslog-v2-responseflags
	InternalErrorCode string `protobuf:"bytes,9,opt,name=internalErrorCode,proto3" json:"internalErrorCode,omitempty"`
	// Internal request(response) latency is the time cost inside the Envoy
	// sidecar proxy. For more details, check
	// https://www.envoyproxy.io/docs/envoy/v1.22.0/api-v3/data/accesslog/v3/accesslog.proto.html#data-accesslog-v3-accesslogcommon.
	// internalRequestLatencyNanos is the interval between the first downstream
	// byte received and the first upstream byte sent
	InternalRequestLatencyNanos int64 `protobuf:"varint,10,opt,name=internalRequestLatencyNanos,proto3" json:"internalRequestLatencyNanos,omitempty"`
	// internalResponseLatencyNanos = time_to_first_downstream_tx_byte -
	// time_to_first_upstream_rx_byte; | ... request workflow  ... | upstream |
	// ----- response -----> |                proxy                | -------
	// response -------> | client  | | time_to_first_upstream_rx_byte | |
	// time_to_last_downstream_tx_byte |
	//                                                                |
	//                                                                internalResponseLatencyNanos
	//                                                                |
	InternalResponseLatencyNanos int64                    `protobuf:"varint,11,opt,name=internalResponseLatencyNanos,proto3" json:"internalResponseLatencyNanos,omitempty"`
	SourceInstanceProperties     []*v3.KeyStringValuePair `protobuf:"bytes,12,rep,name=sourceInstanceProperties,proto3" json:"sourceInstanceProperties,omitempty"`
	DestInstanceProperties       []*v3.KeyStringValuePair `protobuf:"bytes,13,rep,name=destInstanceProperties,proto3" json:"destInstanceProperties,omitempty"`
	// The received data in bytes
	ReceivedBytes int64 `protobuf:"varint,14,opt,name=receivedBytes,proto3" json:"receivedBytes,omitempty"`
	// The sent data in bytes
	SentBytes int64 `protobuf:"varint,15,opt,name=sentBytes,proto3" json:"sentBytes,omitempty"`
	// contains filtered or unexported fields
}

func (*TCPServiceMeshMetric) Descriptor deprecated

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

Deprecated: Use TCPServiceMeshMetric.ProtoReflect.Descriptor instead.

func (*TCPServiceMeshMetric) GetDestInstanceProperties

func (x *TCPServiceMeshMetric) GetDestInstanceProperties() []*v3.KeyStringValuePair

func (*TCPServiceMeshMetric) GetDestServiceInstance

func (x *TCPServiceMeshMetric) GetDestServiceInstance() string

func (*TCPServiceMeshMetric) GetDestServiceName

func (x *TCPServiceMeshMetric) GetDestServiceName() string

func (*TCPServiceMeshMetric) GetDetectPoint

func (x *TCPServiceMeshMetric) GetDetectPoint() v3.DetectPoint

func (*TCPServiceMeshMetric) GetEndTime

func (x *TCPServiceMeshMetric) GetEndTime() int64

func (*TCPServiceMeshMetric) GetInternalErrorCode

func (x *TCPServiceMeshMetric) GetInternalErrorCode() string

func (*TCPServiceMeshMetric) GetInternalRequestLatencyNanos

func (x *TCPServiceMeshMetric) GetInternalRequestLatencyNanos() int64

func (*TCPServiceMeshMetric) GetInternalResponseLatencyNanos

func (x *TCPServiceMeshMetric) GetInternalResponseLatencyNanos() int64

func (*TCPServiceMeshMetric) GetReceivedBytes

func (x *TCPServiceMeshMetric) GetReceivedBytes() int64

func (*TCPServiceMeshMetric) GetSentBytes

func (x *TCPServiceMeshMetric) GetSentBytes() int64

func (*TCPServiceMeshMetric) GetSourceInstanceProperties

func (x *TCPServiceMeshMetric) GetSourceInstanceProperties() []*v3.KeyStringValuePair

func (*TCPServiceMeshMetric) GetSourceServiceInstance

func (x *TCPServiceMeshMetric) GetSourceServiceInstance() string

func (*TCPServiceMeshMetric) GetSourceServiceName

func (x *TCPServiceMeshMetric) GetSourceServiceName() string

func (*TCPServiceMeshMetric) GetStartTime

func (x *TCPServiceMeshMetric) GetStartTime() int64

func (*TCPServiceMeshMetric) GetTlsMode

func (x *TCPServiceMeshMetric) GetTlsMode() string

func (*TCPServiceMeshMetric) ProtoMessage

func (*TCPServiceMeshMetric) ProtoMessage()

func (*TCPServiceMeshMetric) ProtoReflect

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

func (*TCPServiceMeshMetric) Reset

func (x *TCPServiceMeshMetric) Reset()

func (*TCPServiceMeshMetric) String

func (x *TCPServiceMeshMetric) String() string

type TCPServiceMeshMetrics

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

func (*TCPServiceMeshMetrics) Descriptor deprecated

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

Deprecated: Use TCPServiceMeshMetrics.ProtoReflect.Descriptor instead.

func (*TCPServiceMeshMetrics) GetMetrics

func (x *TCPServiceMeshMetrics) GetMetrics() []*TCPServiceMeshMetric

func (*TCPServiceMeshMetrics) ProtoMessage

func (*TCPServiceMeshMetrics) ProtoMessage()

func (*TCPServiceMeshMetrics) ProtoReflect

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

func (*TCPServiceMeshMetrics) Reset

func (x *TCPServiceMeshMetrics) Reset()

func (*TCPServiceMeshMetrics) String

func (x *TCPServiceMeshMetrics) String() string

type UnimplementedServiceMeshMetricServiceServer

type UnimplementedServiceMeshMetricServiceServer struct {
}

UnimplementedServiceMeshMetricServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedServiceMeshMetricServiceServer) Collect

type UnsafeServiceMeshMetricServiceServer

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

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

Jump to

Keyboard shortcuts

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