Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterStatisticsServer(s grpc.ServiceRegistrar, srv StatisticsServer)
- type EventStatisticsResponse
- func (*EventStatisticsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EventStatisticsResponse) GetEventTypes() int32
- func (x *EventStatisticsResponse) GetNamespaces() int32
- func (x *EventStatisticsResponse) GetPerEventType() []*EventTypeCount
- func (x *EventStatisticsResponse) GetTotalEvents() int64
- func (*EventStatisticsResponse) ProtoMessage()
- func (x *EventStatisticsResponse) ProtoReflect() protoreflect.Message
- func (x *EventStatisticsResponse) Reset()
- func (x *EventStatisticsResponse) String() string
- type EventTypeCount
- func (*EventTypeCount) Descriptor() ([]byte, []int)deprecated
- func (x *EventTypeCount) GetCount() int64
- func (x *EventTypeCount) GetEventType() string
- func (*EventTypeCount) ProtoMessage()
- func (x *EventTypeCount) ProtoReflect() protoreflect.Message
- func (x *EventTypeCount) Reset()
- func (x *EventTypeCount) String() string
- type QueryResult_EventStatisticsResponse
- func (*QueryResult_EventStatisticsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryResult_EventStatisticsResponse) GetCorrelationId() *bcl.Guid
- func (x *QueryResult_EventStatisticsResponse) GetData() *EventStatisticsResponse
- func (x *QueryResult_EventStatisticsResponse) GetExceptionMessages() []string
- func (x *QueryResult_EventStatisticsResponse) GetExceptionStackTrace() string
- func (x *QueryResult_EventStatisticsResponse) GetIsAuthorized() bool
- func (x *QueryResult_EventStatisticsResponse) GetValidationResults() []*ValidationResult
- func (*QueryResult_EventStatisticsResponse) ProtoMessage()
- func (x *QueryResult_EventStatisticsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryResult_EventStatisticsResponse) Reset()
- func (x *QueryResult_EventStatisticsResponse) String() string
- type StatisticsClient
- type StatisticsForEventStoreRequest
- func (*StatisticsForEventStoreRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StatisticsForEventStoreRequest) GetEventStore() string
- func (*StatisticsForEventStoreRequest) ProtoMessage()
- func (x *StatisticsForEventStoreRequest) ProtoReflect() protoreflect.Message
- func (x *StatisticsForEventStoreRequest) Reset()
- func (x *StatisticsForEventStoreRequest) String() string
- type StatisticsForNamespaceRequest
- func (*StatisticsForNamespaceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StatisticsForNamespaceRequest) GetEventStore() string
- func (x *StatisticsForNamespaceRequest) GetNamespace() string
- func (*StatisticsForNamespaceRequest) ProtoMessage()
- func (x *StatisticsForNamespaceRequest) ProtoReflect() protoreflect.Message
- func (x *StatisticsForNamespaceRequest) Reset()
- func (x *StatisticsForNamespaceRequest) String() string
- type StatisticsServer
- type UnimplementedStatisticsServer
- func (UnimplementedStatisticsServer) StatisticsForEventStore(context.Context, *StatisticsForEventStoreRequest) (*QueryResult_EventStatisticsResponse, error)
- func (UnimplementedStatisticsServer) StatisticsForNamespace(context.Context, *StatisticsForNamespaceRequest) (*QueryResult_EventStatisticsResponse, error)
- type UnsafeStatisticsServer
- type ValidationResult
- func (*ValidationResult) Descriptor() ([]byte, []int)deprecated
- func (x *ValidationResult) GetMembers() []string
- func (x *ValidationResult) GetMessage() string
- func (x *ValidationResult) GetSeverity() ValidationResultSeverity
- func (*ValidationResult) ProtoMessage()
- func (x *ValidationResult) ProtoReflect() protoreflect.Message
- func (x *ValidationResult) Reset()
- func (x *ValidationResult) String() string
- type ValidationResultSeverity
- func (ValidationResultSeverity) Descriptor() protoreflect.EnumDescriptor
- func (x ValidationResultSeverity) Enum() *ValidationResultSeverity
- func (ValidationResultSeverity) EnumDescriptor() ([]byte, []int)deprecated
- func (x ValidationResultSeverity) Number() protoreflect.EnumNumber
- func (x ValidationResultSeverity) String() string
- func (ValidationResultSeverity) Type() protoreflect.EnumType
Constants ¶
const ( Statistics_StatisticsForEventStore_FullMethodName = "/Cratis.Chronicle.Contracts.Statistics.Statistics/StatisticsForEventStore" Statistics_StatisticsForNamespace_FullMethodName = "/Cratis.Chronicle.Contracts.Statistics.Statistics/StatisticsForNamespace" )
Variables ¶
var ( ValidationResultSeverity_name = map[int32]string{ 0: "Unknown", 1: "Information", 2: "Warning", 3: "Error", } ValidationResultSeverity_value = map[string]int32{ "Unknown": 0, "Information": 1, "Warning": 2, "Error": 3, } )
Enum value maps for ValidationResultSeverity.
var File_statistics_proto protoreflect.FileDescriptor
var Statistics_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Cratis.Chronicle.Contracts.Statistics.Statistics", HandlerType: (*StatisticsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "StatisticsForEventStore", Handler: _Statistics_StatisticsForEventStore_Handler, }, { MethodName: "StatisticsForNamespace", Handler: _Statistics_StatisticsForNamespace_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "statistics.proto", }
Statistics_ServiceDesc is the grpc.ServiceDesc for Statistics service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterStatisticsServer ¶
func RegisterStatisticsServer(s grpc.ServiceRegistrar, srv StatisticsServer)
Types ¶
type EventStatisticsResponse ¶
type EventStatisticsResponse struct {
TotalEvents int64 `protobuf:"varint,1,opt,name=TotalEvents,proto3" json:"TotalEvents,omitempty"`
EventTypes int32 `protobuf:"varint,2,opt,name=EventTypes,proto3" json:"EventTypes,omitempty"`
Namespaces int32 `protobuf:"varint,3,opt,name=Namespaces,proto3" json:"Namespaces,omitempty"`
PerEventType []*EventTypeCount `protobuf:"bytes,4,rep,name=PerEventType,proto3" json:"PerEventType,omitempty"`
// contains filtered or unexported fields
}
func (*EventStatisticsResponse) Descriptor
deprecated
func (*EventStatisticsResponse) Descriptor() ([]byte, []int)
Deprecated: Use EventStatisticsResponse.ProtoReflect.Descriptor instead.
func (*EventStatisticsResponse) GetEventTypes ¶
func (x *EventStatisticsResponse) GetEventTypes() int32
func (*EventStatisticsResponse) GetNamespaces ¶
func (x *EventStatisticsResponse) GetNamespaces() int32
func (*EventStatisticsResponse) GetPerEventType ¶
func (x *EventStatisticsResponse) GetPerEventType() []*EventTypeCount
func (*EventStatisticsResponse) GetTotalEvents ¶
func (x *EventStatisticsResponse) GetTotalEvents() int64
func (*EventStatisticsResponse) ProtoMessage ¶
func (*EventStatisticsResponse) ProtoMessage()
func (*EventStatisticsResponse) ProtoReflect ¶
func (x *EventStatisticsResponse) ProtoReflect() protoreflect.Message
func (*EventStatisticsResponse) Reset ¶
func (x *EventStatisticsResponse) Reset()
func (*EventStatisticsResponse) String ¶
func (x *EventStatisticsResponse) String() string
type EventTypeCount ¶
type EventTypeCount struct {
EventType string `protobuf:"bytes,1,opt,name=EventType,proto3" json:"EventType,omitempty"`
Count int64 `protobuf:"varint,2,opt,name=Count,proto3" json:"Count,omitempty"`
// contains filtered or unexported fields
}
func (*EventTypeCount) Descriptor
deprecated
func (*EventTypeCount) Descriptor() ([]byte, []int)
Deprecated: Use EventTypeCount.ProtoReflect.Descriptor instead.
func (*EventTypeCount) GetCount ¶
func (x *EventTypeCount) GetCount() int64
func (*EventTypeCount) GetEventType ¶
func (x *EventTypeCount) GetEventType() string
func (*EventTypeCount) ProtoMessage ¶
func (*EventTypeCount) ProtoMessage()
func (*EventTypeCount) ProtoReflect ¶
func (x *EventTypeCount) ProtoReflect() protoreflect.Message
func (*EventTypeCount) Reset ¶
func (x *EventTypeCount) Reset()
func (*EventTypeCount) String ¶
func (x *EventTypeCount) String() string
type QueryResult_EventStatisticsResponse ¶
type QueryResult_EventStatisticsResponse struct {
CorrelationId *bcl.Guid `protobuf:"bytes,1,opt,name=CorrelationId,proto3" json:"CorrelationId,omitempty"` // default value could not be applied: 00000000-0000-0000-0000-000000000000
IsAuthorized bool `protobuf:"varint,2,opt,name=IsAuthorized,proto3" json:"IsAuthorized,omitempty"`
ValidationResults []*ValidationResult `protobuf:"bytes,3,rep,name=ValidationResults,proto3" json:"ValidationResults,omitempty"`
ExceptionMessages []string `protobuf:"bytes,4,rep,name=ExceptionMessages,proto3" json:"ExceptionMessages,omitempty"`
ExceptionStackTrace string `protobuf:"bytes,5,opt,name=ExceptionStackTrace,proto3" json:"ExceptionStackTrace,omitempty"`
Data *EventStatisticsResponse `protobuf:"bytes,6,opt,name=Data,proto3" json:"Data,omitempty"`
// contains filtered or unexported fields
}
func (*QueryResult_EventStatisticsResponse) Descriptor
deprecated
func (*QueryResult_EventStatisticsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryResult_EventStatisticsResponse.ProtoReflect.Descriptor instead.
func (*QueryResult_EventStatisticsResponse) GetCorrelationId ¶
func (x *QueryResult_EventStatisticsResponse) GetCorrelationId() *bcl.Guid
func (*QueryResult_EventStatisticsResponse) GetData ¶
func (x *QueryResult_EventStatisticsResponse) GetData() *EventStatisticsResponse
func (*QueryResult_EventStatisticsResponse) GetExceptionMessages ¶
func (x *QueryResult_EventStatisticsResponse) GetExceptionMessages() []string
func (*QueryResult_EventStatisticsResponse) GetExceptionStackTrace ¶
func (x *QueryResult_EventStatisticsResponse) GetExceptionStackTrace() string
func (*QueryResult_EventStatisticsResponse) GetIsAuthorized ¶
func (x *QueryResult_EventStatisticsResponse) GetIsAuthorized() bool
func (*QueryResult_EventStatisticsResponse) GetValidationResults ¶
func (x *QueryResult_EventStatisticsResponse) GetValidationResults() []*ValidationResult
func (*QueryResult_EventStatisticsResponse) ProtoMessage ¶
func (*QueryResult_EventStatisticsResponse) ProtoMessage()
func (*QueryResult_EventStatisticsResponse) ProtoReflect ¶
func (x *QueryResult_EventStatisticsResponse) ProtoReflect() protoreflect.Message
func (*QueryResult_EventStatisticsResponse) Reset ¶
func (x *QueryResult_EventStatisticsResponse) Reset()
func (*QueryResult_EventStatisticsResponse) String ¶
func (x *QueryResult_EventStatisticsResponse) String() string
type StatisticsClient ¶
type StatisticsClient interface {
StatisticsForEventStore(ctx context.Context, in *StatisticsForEventStoreRequest, opts ...grpc.CallOption) (*QueryResult_EventStatisticsResponse, error)
StatisticsForNamespace(ctx context.Context, in *StatisticsForNamespaceRequest, opts ...grpc.CallOption) (*QueryResult_EventStatisticsResponse, error)
}
StatisticsClient is the client API for Statistics 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 NewStatisticsClient ¶
func NewStatisticsClient(cc grpc.ClientConnInterface) StatisticsClient
type StatisticsForEventStoreRequest ¶
type StatisticsForEventStoreRequest struct {
EventStore string `protobuf:"bytes,1,opt,name=EventStore,proto3" json:"EventStore,omitempty"`
// contains filtered or unexported fields
}
func (*StatisticsForEventStoreRequest) Descriptor
deprecated
func (*StatisticsForEventStoreRequest) Descriptor() ([]byte, []int)
Deprecated: Use StatisticsForEventStoreRequest.ProtoReflect.Descriptor instead.
func (*StatisticsForEventStoreRequest) GetEventStore ¶
func (x *StatisticsForEventStoreRequest) GetEventStore() string
func (*StatisticsForEventStoreRequest) ProtoMessage ¶
func (*StatisticsForEventStoreRequest) ProtoMessage()
func (*StatisticsForEventStoreRequest) ProtoReflect ¶
func (x *StatisticsForEventStoreRequest) ProtoReflect() protoreflect.Message
func (*StatisticsForEventStoreRequest) Reset ¶
func (x *StatisticsForEventStoreRequest) Reset()
func (*StatisticsForEventStoreRequest) String ¶
func (x *StatisticsForEventStoreRequest) String() string
type StatisticsForNamespaceRequest ¶
type StatisticsForNamespaceRequest struct {
EventStore string `protobuf:"bytes,1,opt,name=EventStore,proto3" json:"EventStore,omitempty"`
Namespace string `protobuf:"bytes,2,opt,name=Namespace,proto3" json:"Namespace,omitempty"`
// contains filtered or unexported fields
}
func (*StatisticsForNamespaceRequest) Descriptor
deprecated
func (*StatisticsForNamespaceRequest) Descriptor() ([]byte, []int)
Deprecated: Use StatisticsForNamespaceRequest.ProtoReflect.Descriptor instead.
func (*StatisticsForNamespaceRequest) GetEventStore ¶
func (x *StatisticsForNamespaceRequest) GetEventStore() string
func (*StatisticsForNamespaceRequest) GetNamespace ¶
func (x *StatisticsForNamespaceRequest) GetNamespace() string
func (*StatisticsForNamespaceRequest) ProtoMessage ¶
func (*StatisticsForNamespaceRequest) ProtoMessage()
func (*StatisticsForNamespaceRequest) ProtoReflect ¶
func (x *StatisticsForNamespaceRequest) ProtoReflect() protoreflect.Message
func (*StatisticsForNamespaceRequest) Reset ¶
func (x *StatisticsForNamespaceRequest) Reset()
func (*StatisticsForNamespaceRequest) String ¶
func (x *StatisticsForNamespaceRequest) String() string
type StatisticsServer ¶
type StatisticsServer interface {
StatisticsForEventStore(context.Context, *StatisticsForEventStoreRequest) (*QueryResult_EventStatisticsResponse, error)
StatisticsForNamespace(context.Context, *StatisticsForNamespaceRequest) (*QueryResult_EventStatisticsResponse, error)
// contains filtered or unexported methods
}
StatisticsServer is the server API for Statistics service. All implementations must embed UnimplementedStatisticsServer for forward compatibility.
type UnimplementedStatisticsServer ¶
type UnimplementedStatisticsServer struct{}
UnimplementedStatisticsServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedStatisticsServer) StatisticsForEventStore ¶
func (UnimplementedStatisticsServer) StatisticsForEventStore(context.Context, *StatisticsForEventStoreRequest) (*QueryResult_EventStatisticsResponse, error)
func (UnimplementedStatisticsServer) StatisticsForNamespace ¶
func (UnimplementedStatisticsServer) StatisticsForNamespace(context.Context, *StatisticsForNamespaceRequest) (*QueryResult_EventStatisticsResponse, error)
type UnsafeStatisticsServer ¶
type UnsafeStatisticsServer interface {
// contains filtered or unexported methods
}
UnsafeStatisticsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StatisticsServer will result in compilation errors.
type ValidationResult ¶
type ValidationResult struct {
Severity ValidationResultSeverity `` // default value could not be applied: Error
/* 138-byte string literal not displayed */
Message string `protobuf:"bytes,2,opt,name=Message,proto3" json:"Message,omitempty"`
Members []string `protobuf:"bytes,3,rep,name=Members,proto3" json:"Members,omitempty"`
// contains filtered or unexported fields
}
func (*ValidationResult) Descriptor
deprecated
func (*ValidationResult) Descriptor() ([]byte, []int)
Deprecated: Use ValidationResult.ProtoReflect.Descriptor instead.
func (*ValidationResult) GetMembers ¶
func (x *ValidationResult) GetMembers() []string
func (*ValidationResult) GetMessage ¶
func (x *ValidationResult) GetMessage() string
func (*ValidationResult) GetSeverity ¶
func (x *ValidationResult) GetSeverity() ValidationResultSeverity
func (*ValidationResult) ProtoMessage ¶
func (*ValidationResult) ProtoMessage()
func (*ValidationResult) ProtoReflect ¶
func (x *ValidationResult) ProtoReflect() protoreflect.Message
func (*ValidationResult) Reset ¶
func (x *ValidationResult) Reset()
func (*ValidationResult) String ¶
func (x *ValidationResult) String() string
type ValidationResultSeverity ¶
type ValidationResultSeverity int32
const ( ValidationResultSeverity_Unknown ValidationResultSeverity = 0 ValidationResultSeverity_Information ValidationResultSeverity = 1 ValidationResultSeverity_Warning ValidationResultSeverity = 2 ValidationResultSeverity_Error ValidationResultSeverity = 3 )
func (ValidationResultSeverity) Descriptor ¶
func (ValidationResultSeverity) Descriptor() protoreflect.EnumDescriptor
func (ValidationResultSeverity) Enum ¶
func (x ValidationResultSeverity) Enum() *ValidationResultSeverity
func (ValidationResultSeverity) EnumDescriptor
deprecated
func (ValidationResultSeverity) EnumDescriptor() ([]byte, []int)
Deprecated: Use ValidationResultSeverity.Descriptor instead.
func (ValidationResultSeverity) Number ¶
func (x ValidationResultSeverity) Number() protoreflect.EnumNumber
func (ValidationResultSeverity) String ¶
func (x ValidationResultSeverity) String() string
func (ValidationResultSeverity) Type ¶
func (ValidationResultSeverity) Type() protoreflect.EnumType