Documentation
¶
Index ¶
- Variables
- func RegisterServiceMeshMetricServiceServer(s grpc.ServiceRegistrar, srv ServiceMeshMetricServiceServer)
- type MeshProbeDownstream
- type Protocol
- type ServiceMeshMetric
- func (*ServiceMeshMetric) Descriptor() ([]byte, []int)deprecated
- func (x *ServiceMeshMetric) GetDestServiceInstance() string
- func (x *ServiceMeshMetric) GetDestServiceName() string
- func (x *ServiceMeshMetric) GetDetectPoint() v3.DetectPoint
- func (x *ServiceMeshMetric) GetEndTime() int64
- func (x *ServiceMeshMetric) GetEndpoint() string
- func (x *ServiceMeshMetric) GetInternalErrorCode() string
- func (x *ServiceMeshMetric) GetLatency() int32
- func (x *ServiceMeshMetric) GetProtocol() Protocol
- func (x *ServiceMeshMetric) GetResponseCode() int32
- func (x *ServiceMeshMetric) GetSourceServiceInstance() string
- func (x *ServiceMeshMetric) GetSourceServiceName() string
- func (x *ServiceMeshMetric) GetStartTime() int64
- func (x *ServiceMeshMetric) GetStatus() bool
- func (x *ServiceMeshMetric) GetTlsMode() string
- func (*ServiceMeshMetric) ProtoMessage()
- func (x *ServiceMeshMetric) ProtoReflect() protoreflect.Message
- func (x *ServiceMeshMetric) Reset()
- func (x *ServiceMeshMetric) String() string
- type ServiceMeshMetricServiceClient
- type ServiceMeshMetricServiceServer
- type ServiceMeshMetricService_CollectClient
- type ServiceMeshMetricService_CollectServer
- type UnimplementedServiceMeshMetricServiceServer
- type UnsafeServiceMeshMetricServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( Protocol_name = map[int32]string{ 0: "HTTP", 1: "gRPC", } Protocol_value = map[string]int32{ "HTTP": 0, "gRPC": 1, } )
Enum value maps for Protocol.
var File_service_mesh_probe_service_mesh_compat_proto protoreflect.FileDescriptor
var File_service_mesh_probe_service_mesh_proto protoreflect.FileDescriptor
var ServiceMeshMetricService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "ServiceMeshMetricService", HandlerType: (*ServiceMeshMetricServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "collect", Handler: _ServiceMeshMetricService_Collect_Handler, ClientStreams: true, }, }, Metadata: "service-mesh-probe/service-mesh-compat.proto", }
ServiceMeshMetricService_ServiceDesc is the grpc.ServiceDesc for ServiceMeshMetricService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var ServiceMeshMetricService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "skywalking.v3.ServiceMeshMetricService", HandlerType: (*ServiceMeshMetricServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "collect", Handler: _ServiceMeshMetricService_Collect_Handler, ClientStreams: true, }, }, Metadata: "service-mesh-probe/service-mesh.proto", }
ServiceMeshMetricService_ServiceDesc is the grpc.ServiceDesc for ServiceMeshMetricService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServiceMeshMetricServiceServer ¶
func RegisterServiceMeshMetricServiceServer(s grpc.ServiceRegistrar, srv ServiceMeshMetricServiceServer)
Types ¶
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
func (Protocol) Descriptor ¶
func (Protocol) Descriptor() protoreflect.EnumDescriptor
func (Protocol) EnumDescriptor
deprecated
func (Protocol) Number ¶
func (x Protocol) Number() protoreflect.EnumNumber
func (Protocol) Type ¶
func (Protocol) Type() protoreflect.EnumType
type ServiceMeshMetric ¶
type ServiceMeshMetric 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"` // contains filtered or unexported fields }
func (*ServiceMeshMetric) Descriptor
deprecated
func (*ServiceMeshMetric) Descriptor() ([]byte, []int)
Deprecated: Use ServiceMeshMetric.ProtoReflect.Descriptor instead.
func (*ServiceMeshMetric) GetDestServiceInstance ¶
func (x *ServiceMeshMetric) GetDestServiceInstance() string
func (*ServiceMeshMetric) GetDestServiceName ¶
func (x *ServiceMeshMetric) GetDestServiceName() string
func (*ServiceMeshMetric) GetDetectPoint ¶
func (x *ServiceMeshMetric) GetDetectPoint() v3.DetectPoint
func (*ServiceMeshMetric) GetEndTime ¶
func (x *ServiceMeshMetric) GetEndTime() int64
func (*ServiceMeshMetric) GetEndpoint ¶
func (x *ServiceMeshMetric) GetEndpoint() string
func (*ServiceMeshMetric) GetInternalErrorCode ¶
func (x *ServiceMeshMetric) GetInternalErrorCode() string
func (*ServiceMeshMetric) GetLatency ¶
func (x *ServiceMeshMetric) GetLatency() int32
func (*ServiceMeshMetric) GetProtocol ¶
func (x *ServiceMeshMetric) GetProtocol() Protocol
func (*ServiceMeshMetric) GetResponseCode ¶
func (x *ServiceMeshMetric) GetResponseCode() int32
func (*ServiceMeshMetric) GetSourceServiceInstance ¶
func (x *ServiceMeshMetric) GetSourceServiceInstance() string
func (*ServiceMeshMetric) GetSourceServiceName ¶
func (x *ServiceMeshMetric) GetSourceServiceName() string
func (*ServiceMeshMetric) GetStartTime ¶
func (x *ServiceMeshMetric) GetStartTime() int64
func (*ServiceMeshMetric) GetStatus ¶
func (x *ServiceMeshMetric) GetStatus() bool
func (*ServiceMeshMetric) GetTlsMode ¶
func (x *ServiceMeshMetric) GetTlsMode() string
func (*ServiceMeshMetric) ProtoMessage ¶
func (*ServiceMeshMetric) ProtoMessage()
func (*ServiceMeshMetric) ProtoReflect ¶
func (x *ServiceMeshMetric) ProtoReflect() protoreflect.Message
func (*ServiceMeshMetric) Reset ¶
func (x *ServiceMeshMetric) Reset()
func (*ServiceMeshMetric) String ¶
func (x *ServiceMeshMetric) String() string
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.
func NewServiceMeshMetricServiceClient ¶
func NewServiceMeshMetricServiceClient(cc grpc.ClientConnInterface) ServiceMeshMetricServiceClient
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(*ServiceMeshMetric) error CloseAndRecv() (*MeshProbeDownstream, error) grpc.ClientStream }
type ServiceMeshMetricService_CollectServer ¶
type ServiceMeshMetricService_CollectServer interface { SendAndClose(*MeshProbeDownstream) error Recv() (*ServiceMeshMetric, error) grpc.ServerStream }
type UnimplementedServiceMeshMetricServiceServer ¶
type UnimplementedServiceMeshMetricServiceServer struct { }
UnimplementedServiceMeshMetricServiceServer must be embedded to have forward compatible implementations.
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.