Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterLogPluginServer(s grpc.ServiceRegistrar, srv LogPluginServer)
- type CloseSessionResponse
- type CreateSessionRequest
- func (*CreateSessionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSessionRequest) GetLimit() int32
- func (x *CreateSessionRequest) GetOptions() *LogSessionOptions
- func (x *CreateSessionRequest) GetOrigins() []*SourceOrigin
- func (x *CreateSessionRequest) GetSelection() *SourceSelection
- func (x *CreateSessionRequest) GetSessionId() string
- func (*CreateSessionRequest) ProtoMessage()
- func (x *CreateSessionRequest) ProtoReflect() protoreflect.Message
- func (x *CreateSessionRequest) Reset()
- func (x *CreateSessionRequest) String() string
- type CreateSessionResponse
- func (*CreateSessionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSessionResponse) GetSession() *Session
- func (*CreateSessionResponse) ProtoMessage()
- func (x *CreateSessionResponse) ProtoReflect() protoreflect.Message
- func (x *CreateSessionResponse) Reset()
- func (x *CreateSessionResponse) String() string
- type DimensionFilter
- func (*DimensionFilter) Descriptor() ([]byte, []int)deprecated
- func (x *DimensionFilter) GetKey() string
- func (x *DimensionFilter) GetNot() bool
- func (x *DimensionFilter) GetValues() []string
- func (*DimensionFilter) ProtoMessage()
- func (x *DimensionFilter) ProtoReflect() protoreflect.Message
- func (x *DimensionFilter) Reset()
- func (x *DimensionFilter) String() string
- type Facet
- type FacetValue
- type GetSessionResponse
- func (*GetSessionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetSessionResponse) GetSession() *Session
- func (*GetSessionResponse) ProtoMessage()
- func (x *GetSessionResponse) ProtoReflect() protoreflect.Message
- func (x *GetSessionResponse) Reset()
- func (x *GetSessionResponse) String() string
- type GetSupportedResourcesResponse
- func (*GetSupportedResourcesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetSupportedResourcesResponse) GetResources() []*ResourceInfo
- func (*GetSupportedResourcesResponse) ProtoMessage()
- func (x *GetSupportedResourcesResponse) ProtoReflect() protoreflect.Message
- func (x *GetSupportedResourcesResponse) Reset()
- func (x *GetSupportedResourcesResponse) String() string
- type ListFacetValuesRequest
- func (*ListFacetValuesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListFacetValuesRequest) GetCursor() string
- func (x *ListFacetValuesRequest) GetKey() string
- func (x *ListFacetValuesRequest) GetLimit() int32
- func (x *ListFacetValuesRequest) GetSessionId() string
- func (x *ListFacetValuesRequest) GetText() string
- func (*ListFacetValuesRequest) ProtoMessage()
- func (x *ListFacetValuesRequest) ProtoReflect() protoreflect.Message
- func (x *ListFacetValuesRequest) Reset()
- func (x *ListFacetValuesRequest) String() string
- type ListFacetValuesResponse
- func (*ListFacetValuesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListFacetValuesResponse) GetNext() string
- func (x *ListFacetValuesResponse) GetValues() []*FacetValue
- func (*ListFacetValuesResponse) ProtoMessage()
- func (x *ListFacetValuesResponse) ProtoReflect() protoreflect.Message
- func (x *ListFacetValuesResponse) Reset()
- func (x *ListFacetValuesResponse) String() string
- type ListSessionsResponse
- func (*ListSessionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListSessionsResponse) GetSessions() []*Session
- func (*ListSessionsResponse) ProtoMessage()
- func (x *ListSessionsResponse) ProtoReflect() protoreflect.Message
- func (x *ListSessionsResponse) Reset()
- func (x *ListSessionsResponse) String() string
- type ListSourcesRequest
- func (*ListSourcesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListSourcesRequest) GetCursor() string
- func (x *ListSourcesRequest) GetLimit() int32
- func (x *ListSourcesRequest) GetSessionId() string
- func (x *ListSourcesRequest) GetStates() []SourceState
- func (x *ListSourcesRequest) GetText() string
- func (x *ListSourcesRequest) GetWhere() []*DimensionFilter
- func (*ListSourcesRequest) ProtoMessage()
- func (x *ListSourcesRequest) ProtoReflect() protoreflect.Message
- func (x *ListSourcesRequest) Reset()
- func (x *ListSourcesRequest) String() string
- type ListSourcesResponse
- func (*ListSourcesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListSourcesResponse) GetFacets() []*Facet
- func (x *ListSourcesResponse) GetMatching() uint32
- func (x *ListSourcesResponse) GetNext() string
- func (x *ListSourcesResponse) GetRevision() uint64
- func (x *ListSourcesResponse) GetSources() []*SourceInfo
- func (x *ListSourcesResponse) GetTotal() uint32
- func (*ListSourcesResponse) ProtoMessage()
- func (x *ListSourcesResponse) ProtoReflect() protoreflect.Message
- func (x *ListSourcesResponse) Reset()
- func (x *ListSourcesResponse) String() string
- type LogLevel
- type LogLine
- func (*LogLine) Descriptor() ([]byte, []int)deprecated
- func (x *LogLine) GetContent() []byte
- func (x *LogLine) GetLevel() LogLevel
- func (x *LogLine) GetN() uint32
- func (x *LogLine) GetOrigin() LogLineOrigin
- func (x *LogLine) GetReplay() bool
- func (x *LogLine) GetTimestampUs() int64
- func (*LogLine) ProtoMessage()
- func (x *LogLine) ProtoReflect() protoreflect.Message
- func (x *LogLine) Reset()
- func (x *LogLine) String() string
- type LogLineBatch
- func (*LogLineBatch) Descriptor() ([]byte, []int)deprecated
- func (x *LogLineBatch) GetLines() []*LogLine
- func (x *LogLineBatch) GetSources() []*SourceEntry
- func (*LogLineBatch) ProtoMessage()
- func (x *LogLineBatch) ProtoReflect() protoreflect.Message
- func (x *LogLineBatch) Reset()
- func (x *LogLineBatch) String() string
- type LogLineOrigin
- func (LogLineOrigin) Descriptor() protoreflect.EnumDescriptor
- func (x LogLineOrigin) Enum() *LogLineOrigin
- func (LogLineOrigin) EnumDescriptor() ([]byte, []int)deprecated
- func (x LogLineOrigin) Number() protoreflect.EnumNumber
- func (x LogLineOrigin) String() string
- func (LogLineOrigin) Type() protoreflect.EnumType
- type LogOption
- type LogOptionKind
- func (LogOptionKind) Descriptor() protoreflect.EnumDescriptor
- func (x LogOptionKind) Enum() *LogOptionKind
- func (LogOptionKind) EnumDescriptor() ([]byte, []int)deprecated
- func (x LogOptionKind) Number() protoreflect.EnumNumber
- func (x LogOptionKind) String() string
- func (LogOptionKind) Type() protoreflect.EnumType
- type LogPluginClient
- type LogPluginServer
- type LogPlugin_StreamClient
- type LogPlugin_StreamServer
- type LogSessionOptions
- func (*LogSessionOptions) Descriptor() ([]byte, []int)deprecated
- func (x *LogSessionOptions) GetFollow() bool
- func (x *LogSessionOptions) GetPrevious() bool
- func (x *LogSessionOptions) GetReplayMarkers() bool
- func (x *LogSessionOptions) GetSinceTime() *timestamppb.Timestamp
- func (x *LogSessionOptions) GetTailBudget() int64
- func (*LogSessionOptions) ProtoMessage()
- func (x *LogSessionOptions) ProtoReflect() protoreflect.Message
- func (x *LogSessionOptions) Reset()
- func (x *LogSessionOptions) String() string
- type OriginInfo
- func (*OriginInfo) Descriptor() ([]byte, []int)deprecated
- func (x *OriginInfo) GetResourceId() string
- func (x *OriginInfo) GetResourceKey() string
- func (*OriginInfo) ProtoMessage()
- func (x *OriginInfo) ProtoReflect() protoreflect.Message
- func (x *OriginInfo) Reset()
- func (x *OriginInfo) String() string
- type ResourceInfo
- func (*ResourceInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceInfo) GetDimensions() []*SourceDimension
- func (x *ResourceInfo) GetLimitCeiling() int32
- func (x *ResourceInfo) GetOptions() []*LogOption
- func (x *ResourceInfo) GetResource() string
- func (*ResourceInfo) ProtoMessage()
- func (x *ResourceInfo) ProtoReflect() protoreflect.Message
- func (x *ResourceInfo) Reset()
- func (x *ResourceInfo) String() string
- type Session
- func (*Session) Descriptor() ([]byte, []int)deprecated
- func (x *Session) GetCreatedAt() *timestamppb.Timestamp
- func (x *Session) GetEndCause() SessionEndCause
- func (x *Session) GetEndMessage() string
- func (x *Session) GetId() string
- func (x *Session) GetOptions() *LogSessionOptions
- func (x *Session) GetOrigins() []*OriginInfo
- func (x *Session) GetReplayMarkers() bool
- func (x *Session) GetSources() []*SourceInfo
- func (x *Session) GetStatus() SessionStatus
- func (x *Session) GetSummary() *SessionSummary
- func (*Session) ProtoMessage()
- func (x *Session) ProtoReflect() protoreflect.Message
- func (x *Session) Reset()
- func (x *Session) String() string
- type SessionByIdRequest
- func (*SessionByIdRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SessionByIdRequest) GetSessionId() string
- func (*SessionByIdRequest) ProtoMessage()
- func (x *SessionByIdRequest) ProtoReflect() protoreflect.Message
- func (x *SessionByIdRequest) Reset()
- func (x *SessionByIdRequest) String() string
- type SessionEndCause
- func (SessionEndCause) Descriptor() protoreflect.EnumDescriptor
- func (x SessionEndCause) Enum() *SessionEndCause
- func (SessionEndCause) EnumDescriptor() ([]byte, []int)deprecated
- func (x SessionEndCause) Number() protoreflect.EnumNumber
- func (x SessionEndCause) String() string
- func (SessionEndCause) Type() protoreflect.EnumType
- type SessionEndedEvent
- func (*SessionEndedEvent) Descriptor() ([]byte, []int)deprecated
- func (x *SessionEndedEvent) GetCause() SessionEndCause
- func (x *SessionEndedEvent) GetMessage() string
- func (*SessionEndedEvent) ProtoMessage()
- func (x *SessionEndedEvent) ProtoReflect() protoreflect.Message
- func (x *SessionEndedEvent) Reset()
- func (x *SessionEndedEvent) String() string
- type SessionReadyEvent
- type SessionStatus
- func (SessionStatus) Descriptor() protoreflect.EnumDescriptor
- func (x SessionStatus) Enum() *SessionStatus
- func (SessionStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x SessionStatus) Number() protoreflect.EnumNumber
- func (x SessionStatus) String() string
- func (SessionStatus) Type() protoreflect.EnumType
- type SessionSummary
- func (*SessionSummary) Descriptor() ([]byte, []int)deprecated
- func (x *SessionSummary) GetCatalogStopped() bool
- func (x *SessionSummary) GetCeiling() int32
- func (x *SessionSummary) GetFailed() uint32
- func (x *SessionSummary) GetFailureClass() string
- func (x *SessionSummary) GetLimit() int32
- func (x *SessionSummary) GetPending() uint32
- func (x *SessionSummary) GetRevision() uint64
- func (x *SessionSummary) GetSelected() uint32
- func (x *SessionSummary) GetStreaming() uint32
- func (x *SessionSummary) GetTotal() uint32
- func (x *SessionSummary) GetWaiting() uint32
- func (*SessionSummary) ProtoMessage()
- func (x *SessionSummary) ProtoReflect() protoreflect.Message
- func (x *SessionSummary) Reset()
- func (x *SessionSummary) String() string
- type SourceCaughtUpEvent
- func (*SourceCaughtUpEvent) Descriptor() ([]byte, []int)deprecated
- func (x *SourceCaughtUpEvent) GetRef() *SourceRef
- func (*SourceCaughtUpEvent) ProtoMessage()
- func (x *SourceCaughtUpEvent) ProtoReflect() protoreflect.Message
- func (x *SourceCaughtUpEvent) Reset()
- func (x *SourceCaughtUpEvent) String() string
- type SourceDimension
- func (*SourceDimension) Descriptor() ([]byte, []int)deprecated
- func (x *SourceDimension) GetKey() string
- func (x *SourceDimension) GetLabel() string
- func (*SourceDimension) ProtoMessage()
- func (x *SourceDimension) ProtoReflect() protoreflect.Message
- func (x *SourceDimension) Reset()
- func (x *SourceDimension) String() string
- type SourceEntry
- func (*SourceEntry) Descriptor() ([]byte, []int)deprecated
- func (x *SourceEntry) GetId() string
- func (x *SourceEntry) GetLabel() string
- func (x *SourceEntry) GetLabels() map[string]string
- func (x *SourceEntry) GetN() uint32
- func (x *SourceEntry) GetOrigin() uint32
- func (x *SourceEntry) GetReplay() bool
- func (*SourceEntry) ProtoMessage()
- func (x *SourceEntry) ProtoReflect() protoreflect.Message
- func (x *SourceEntry) Reset()
- func (x *SourceEntry) String() string
- type SourceInfo
- func (*SourceInfo) Descriptor() ([]byte, []int)deprecated
- func (x *SourceInfo) GetEndedMessage() string
- func (x *SourceInfo) GetFailureCode() string
- func (x *SourceInfo) GetFailureMessage() string
- func (x *SourceInfo) GetIsDefault() bool
- func (x *SourceInfo) GetKind() string
- func (x *SourceInfo) GetLabel() string
- func (x *SourceInfo) GetLabels() map[string]string
- func (x *SourceInfo) GetPinned() bool
- func (x *SourceInfo) GetRef() *SourceRef
- func (x *SourceInfo) GetSelected() bool
- func (x *SourceInfo) GetState() SourceState
- func (x *SourceInfo) GetWaitingReason() WaitingReason
- func (*SourceInfo) ProtoMessage()
- func (x *SourceInfo) ProtoReflect() protoreflect.Message
- func (x *SourceInfo) Reset()
- func (x *SourceInfo) String() string
- type SourceOrigin
- func (*SourceOrigin) Descriptor() ([]byte, []int)deprecated
- func (x *SourceOrigin) GetReference() *v2.ResourceReference
- func (x *SourceOrigin) GetResourceData() *v2.Value
- func (x *SourceOrigin) GetResourceId() string
- func (x *SourceOrigin) GetResourceKey() string
- func (x *SourceOrigin) GetRoute() *v2.AccessRoute
- func (*SourceOrigin) ProtoMessage()
- func (x *SourceOrigin) ProtoReflect() protoreflect.Message
- func (x *SourceOrigin) Reset()
- func (x *SourceOrigin) String() string
- type SourceRef
- type SourceRule
- func (*SourceRule) Descriptor() ([]byte, []int)deprecated
- func (x *SourceRule) GetDefaultsOnly() bool
- func (x *SourceRule) GetText() string
- func (x *SourceRule) GetWhere() []*DimensionFilter
- func (*SourceRule) ProtoMessage()
- func (x *SourceRule) ProtoReflect() protoreflect.Message
- func (x *SourceRule) Reset()
- func (x *SourceRule) String() string
- type SourceSelection
- func (*SourceSelection) Descriptor() ([]byte, []int)deprecated
- func (x *SourceSelection) GetExclude() []*SourceRef
- func (x *SourceSelection) GetInclude() []*SourceRef
- func (x *SourceSelection) GetRules() []*SourceRule
- func (*SourceSelection) ProtoMessage()
- func (x *SourceSelection) ProtoReflect() protoreflect.Message
- func (x *SourceSelection) Reset()
- func (x *SourceSelection) String() string
- type SourceState
- func (SourceState) Descriptor() protoreflect.EnumDescriptor
- func (x SourceState) Enum() *SourceState
- func (SourceState) EnumDescriptor() ([]byte, []int)deprecated
- func (x SourceState) Number() protoreflect.EnumNumber
- func (x SourceState) String() string
- func (SourceState) Type() protoreflect.EnumType
- type SourceStateEvent
- type StreamCommand
- func (StreamCommand) Descriptor() protoreflect.EnumDescriptor
- func (x StreamCommand) Enum() *StreamCommand
- func (StreamCommand) EnumDescriptor() ([]byte, []int)deprecated
- func (x StreamCommand) Number() protoreflect.EnumNumber
- func (x StreamCommand) String() string
- func (StreamCommand) Type() protoreflect.EnumType
- type StreamInput
- func (*StreamInput) Descriptor() ([]byte, []int)deprecated
- func (x *StreamInput) GetCommand() StreamCommand
- func (x *StreamInput) GetSessionId() string
- func (*StreamInput) ProtoMessage()
- func (x *StreamInput) ProtoReflect() protoreflect.Message
- func (x *StreamInput) Reset()
- func (x *StreamInput) String() string
- type StreamOutput
- func (*StreamOutput) Descriptor() ([]byte, []int)deprecated
- func (x *StreamOutput) GetBatch() *LogLineBatch
- func (x *StreamOutput) GetCaughtUp() *SourceCaughtUpEvent
- func (x *StreamOutput) GetEnded() *SessionEndedEvent
- func (x *StreamOutput) GetPayload() isStreamOutput_Payload
- func (x *StreamOutput) GetReady() *SessionReadyEvent
- func (x *StreamOutput) GetSessionId() string
- func (x *StreamOutput) GetSourceState() *SourceStateEvent
- func (x *StreamOutput) GetSummary() *SummaryEvent
- func (*StreamOutput) ProtoMessage()
- func (x *StreamOutput) ProtoReflect() protoreflect.Message
- func (x *StreamOutput) Reset()
- func (x *StreamOutput) String() string
- type StreamOutput_Batch
- type StreamOutput_CaughtUp
- type StreamOutput_Ended
- type StreamOutput_Ready
- type StreamOutput_SourceState
- type StreamOutput_Summary
- type SummaryEvent
- type UnimplementedLogPluginServer
- func (UnimplementedLogPluginServer) CloseSession(context.Context, *SessionByIdRequest) (*CloseSessionResponse, error)
- func (UnimplementedLogPluginServer) CreateSession(context.Context, *CreateSessionRequest) (*CreateSessionResponse, error)
- func (UnimplementedLogPluginServer) GetSession(context.Context, *SessionByIdRequest) (*GetSessionResponse, error)
- func (UnimplementedLogPluginServer) GetSupportedResources(context.Context, *emptypb.Empty) (*GetSupportedResourcesResponse, error)
- func (UnimplementedLogPluginServer) ListFacetValues(context.Context, *ListFacetValuesRequest) (*ListFacetValuesResponse, error)
- func (UnimplementedLogPluginServer) ListSessions(context.Context, *emptypb.Empty) (*ListSessionsResponse, error)
- func (UnimplementedLogPluginServer) ListSources(context.Context, *ListSourcesRequest) (*ListSourcesResponse, error)
- func (UnimplementedLogPluginServer) Stream(LogPlugin_StreamServer) error
- func (UnimplementedLogPluginServer) UpdateSelection(context.Context, *UpdateSelectionRequest) (*UpdateSelectionResponse, error)
- type UnsafeLogPluginServer
- type UpdateSelectionRequest
- func (*UpdateSelectionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateSelectionRequest) GetLimit() int32
- func (x *UpdateSelectionRequest) GetSelection() *SourceSelection
- func (x *UpdateSelectionRequest) GetSessionId() string
- func (*UpdateSelectionRequest) ProtoMessage()
- func (x *UpdateSelectionRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateSelectionRequest) Reset()
- func (x *UpdateSelectionRequest) String() string
- type UpdateSelectionResponse
- func (*UpdateSelectionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateSelectionResponse) GetLimit() int32
- func (x *UpdateSelectionResponse) GetRevision() uint64
- func (*UpdateSelectionResponse) ProtoMessage()
- func (x *UpdateSelectionResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateSelectionResponse) Reset()
- func (x *UpdateSelectionResponse) String() string
- type WaitingReason
- func (WaitingReason) Descriptor() protoreflect.EnumDescriptor
- func (x WaitingReason) Enum() *WaitingReason
- func (WaitingReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x WaitingReason) Number() protoreflect.EnumNumber
- func (x WaitingReason) String() string
- func (WaitingReason) Type() protoreflect.EnumType
Constants ¶
const ( LogPlugin_GetSupportedResources_FullMethodName = "/omniview.sdk.logs.v2.LogPlugin/GetSupportedResources" LogPlugin_CreateSession_FullMethodName = "/omniview.sdk.logs.v2.LogPlugin/CreateSession" LogPlugin_UpdateSelection_FullMethodName = "/omniview.sdk.logs.v2.LogPlugin/UpdateSelection" LogPlugin_ListSources_FullMethodName = "/omniview.sdk.logs.v2.LogPlugin/ListSources" LogPlugin_ListFacetValues_FullMethodName = "/omniview.sdk.logs.v2.LogPlugin/ListFacetValues" LogPlugin_GetSession_FullMethodName = "/omniview.sdk.logs.v2.LogPlugin/GetSession" LogPlugin_ListSessions_FullMethodName = "/omniview.sdk.logs.v2.LogPlugin/ListSessions" LogPlugin_CloseSession_FullMethodName = "/omniview.sdk.logs.v2.LogPlugin/CloseSession" LogPlugin_Stream_FullMethodName = "/omniview.sdk.logs.v2.LogPlugin/Stream" )
Variables ¶
var ( LogLineOrigin_name = map[int32]string{ 0: "LOG_LINE_ORIGIN_UNSPECIFIED", 1: "LOG_LINE_ORIGIN_CURRENT", 2: "LOG_LINE_ORIGIN_PREVIOUS", 3: "LOG_LINE_ORIGIN_SYSTEM", } LogLineOrigin_value = map[string]int32{ "LOG_LINE_ORIGIN_UNSPECIFIED": 0, "LOG_LINE_ORIGIN_CURRENT": 1, "LOG_LINE_ORIGIN_PREVIOUS": 2, "LOG_LINE_ORIGIN_SYSTEM": 3, } )
Enum value maps for LogLineOrigin.
var ( LogLevel_name = map[int32]string{ 0: "LOG_LEVEL_UNSPECIFIED", 1: "LOG_LEVEL_TRACE", 2: "LOG_LEVEL_DEBUG", 3: "LOG_LEVEL_INFO", 4: "LOG_LEVEL_WARN", 5: "LOG_LEVEL_ERROR", 6: "LOG_LEVEL_FATAL", } LogLevel_value = map[string]int32{ "LOG_LEVEL_UNSPECIFIED": 0, "LOG_LEVEL_TRACE": 1, "LOG_LEVEL_DEBUG": 2, "LOG_LEVEL_INFO": 3, "LOG_LEVEL_WARN": 4, "LOG_LEVEL_ERROR": 5, "LOG_LEVEL_FATAL": 6, } )
Enum value maps for LogLevel.
var ( SourceState_name = map[int32]string{ 0: "SOURCE_STATE_UNSPECIFIED", 1: "SOURCE_STATE_AVAILABLE", 2: "SOURCE_STATE_WAITING", 3: "SOURCE_STATE_PENDING", 4: "SOURCE_STATE_CONNECTING", 5: "SOURCE_STATE_STREAMING", 6: "SOURCE_STATE_RECONNECTING", 7: "SOURCE_STATE_ENDED", 8: "SOURCE_STATE_FAILED", 9: "SOURCE_STATE_REMOVED", } SourceState_value = map[string]int32{ "SOURCE_STATE_UNSPECIFIED": 0, "SOURCE_STATE_AVAILABLE": 1, "SOURCE_STATE_WAITING": 2, "SOURCE_STATE_PENDING": 3, "SOURCE_STATE_CONNECTING": 4, "SOURCE_STATE_STREAMING": 5, "SOURCE_STATE_RECONNECTING": 6, "SOURCE_STATE_ENDED": 7, "SOURCE_STATE_FAILED": 8, "SOURCE_STATE_REMOVED": 9, } )
Enum value maps for SourceState.
var ( WaitingReason_name = map[int32]string{ 0: "WAITING_REASON_UNSPECIFIED", 1: "WAITING_REASON_LIMIT", 2: "WAITING_REASON_BREAKER", } WaitingReason_value = map[string]int32{ "WAITING_REASON_UNSPECIFIED": 0, "WAITING_REASON_LIMIT": 1, "WAITING_REASON_BREAKER": 2, } )
Enum value maps for WaitingReason.
var ( LogOptionKind_name = map[int32]string{ 0: "LOG_OPTION_KIND_UNSPECIFIED", 1: "LOG_OPTION_KIND_SINCE", 2: "LOG_OPTION_KIND_PREVIOUS", 3: "LOG_OPTION_KIND_TAIL", } LogOptionKind_value = map[string]int32{ "LOG_OPTION_KIND_UNSPECIFIED": 0, "LOG_OPTION_KIND_SINCE": 1, "LOG_OPTION_KIND_PREVIOUS": 2, "LOG_OPTION_KIND_TAIL": 3, } )
Enum value maps for LogOptionKind.
var ( SessionStatus_name = map[int32]string{ 0: "SESSION_STATUS_UNSPECIFIED", 1: "SESSION_STATUS_INITIALIZING", 2: "SESSION_STATUS_ACTIVE", 3: "SESSION_STATUS_ENDED", } SessionStatus_value = map[string]int32{ "SESSION_STATUS_UNSPECIFIED": 0, "SESSION_STATUS_INITIALIZING": 1, "SESSION_STATUS_ACTIVE": 2, "SESSION_STATUS_ENDED": 3, } )
Enum value maps for SessionStatus.
var ( SessionEndCause_name = map[int32]string{ 0: "SESSION_END_CAUSE_UNSPECIFIED", 1: "SESSION_END_CAUSE_CLOSED", 2: "SESSION_END_CAUSE_COMPLETED", 3: "SESSION_END_CAUSE_PLUGIN_STOPPED", 4: "SESSION_END_CAUSE_CONNECTION_LOST", 5: "SESSION_END_CAUSE_FAILED", } SessionEndCause_value = map[string]int32{ "SESSION_END_CAUSE_UNSPECIFIED": 0, "SESSION_END_CAUSE_CLOSED": 1, "SESSION_END_CAUSE_COMPLETED": 2, "SESSION_END_CAUSE_PLUGIN_STOPPED": 3, "SESSION_END_CAUSE_CONNECTION_LOST": 4, "SESSION_END_CAUSE_FAILED": 5, } )
Enum value maps for SessionEndCause.
var ( StreamCommand_name = map[int32]string{ 0: "STREAM_COMMAND_UNSPECIFIED", 1: "STREAM_COMMAND_CLOSE", } StreamCommand_value = map[string]int32{ "STREAM_COMMAND_UNSPECIFIED": 0, "STREAM_COMMAND_CLOSE": 1, } )
Enum value maps for StreamCommand.
var File_proto_v2_logs_logs_proto protoreflect.FileDescriptor
var LogPlugin_ServiceDesc = grpc.ServiceDesc{ ServiceName: "omniview.sdk.logs.v2.LogPlugin", HandlerType: (*LogPluginServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetSupportedResources", Handler: _LogPlugin_GetSupportedResources_Handler, }, { MethodName: "CreateSession", Handler: _LogPlugin_CreateSession_Handler, }, { MethodName: "UpdateSelection", Handler: _LogPlugin_UpdateSelection_Handler, }, { MethodName: "ListSources", Handler: _LogPlugin_ListSources_Handler, }, { MethodName: "ListFacetValues", Handler: _LogPlugin_ListFacetValues_Handler, }, { MethodName: "GetSession", Handler: _LogPlugin_GetSession_Handler, }, { MethodName: "ListSessions", Handler: _LogPlugin_ListSessions_Handler, }, { MethodName: "CloseSession", Handler: _LogPlugin_CloseSession_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Stream", Handler: _LogPlugin_Stream_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "proto/v2/logs/logs.proto", }
LogPlugin_ServiceDesc is the grpc.ServiceDesc for LogPlugin service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterLogPluginServer ¶
func RegisterLogPluginServer(s grpc.ServiceRegistrar, srv LogPluginServer)
Types ¶
type CloseSessionResponse ¶
type CloseSessionResponse struct {
// contains filtered or unexported fields
}
func (*CloseSessionResponse) Descriptor
deprecated
func (*CloseSessionResponse) Descriptor() ([]byte, []int)
Deprecated: Use CloseSessionResponse.ProtoReflect.Descriptor instead.
func (*CloseSessionResponse) ProtoMessage ¶
func (*CloseSessionResponse) ProtoMessage()
func (*CloseSessionResponse) ProtoReflect ¶
func (x *CloseSessionResponse) ProtoReflect() protoreflect.Message
func (*CloseSessionResponse) Reset ¶
func (x *CloseSessionResponse) Reset()
func (*CloseSessionResponse) String ¶
func (x *CloseSessionResponse) String() string
type CreateSessionRequest ¶
type CreateSessionRequest struct {
// Optional host-generated UUID that correlates acceptance and cleanup if the reply is lost. The
// frames of the session can reach the host on the stream before the reply to this call does, so
// a host that wants them sets it, and registers it before it makes the call.
SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
// Exactly one origin until several origins are supported.
Origins []*SourceOrigin `protobuf:"bytes,2,rep,name=origins,proto3" json:"origins,omitempty"`
// Absent: selects nothing, see SourceSelection. The default selection is one rule with
// defaults_only set.
Selection *SourceSelection `protobuf:"bytes,3,opt,name=selection,proto3" json:"selection,omitempty"`
// Zero: the default. Above the ceiling: clamped.
Limit int32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"`
Options *LogSessionOptions `protobuf:"bytes,5,opt,name=options,proto3" json:"options,omitempty"`
// contains filtered or unexported fields
}
func (*CreateSessionRequest) Descriptor
deprecated
func (*CreateSessionRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateSessionRequest.ProtoReflect.Descriptor instead.
func (*CreateSessionRequest) GetLimit ¶
func (x *CreateSessionRequest) GetLimit() int32
func (*CreateSessionRequest) GetOptions ¶
func (x *CreateSessionRequest) GetOptions() *LogSessionOptions
func (*CreateSessionRequest) GetOrigins ¶
func (x *CreateSessionRequest) GetOrigins() []*SourceOrigin
func (*CreateSessionRequest) GetSelection ¶
func (x *CreateSessionRequest) GetSelection() *SourceSelection
func (*CreateSessionRequest) GetSessionId ¶
func (x *CreateSessionRequest) GetSessionId() string
func (*CreateSessionRequest) ProtoMessage ¶
func (*CreateSessionRequest) ProtoMessage()
func (*CreateSessionRequest) ProtoReflect ¶
func (x *CreateSessionRequest) ProtoReflect() protoreflect.Message
func (*CreateSessionRequest) Reset ¶
func (x *CreateSessionRequest) Reset()
func (*CreateSessionRequest) String ¶
func (x *CreateSessionRequest) String() string
type CreateSessionResponse ¶
type CreateSessionResponse struct {
Session *Session `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"`
// contains filtered or unexported fields
}
func (*CreateSessionResponse) Descriptor
deprecated
func (*CreateSessionResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateSessionResponse.ProtoReflect.Descriptor instead.
func (*CreateSessionResponse) GetSession ¶
func (x *CreateSessionResponse) GetSession() *Session
func (*CreateSessionResponse) ProtoMessage ¶
func (*CreateSessionResponse) ProtoMessage()
func (*CreateSessionResponse) ProtoReflect ¶
func (x *CreateSessionResponse) ProtoReflect() protoreflect.Message
func (*CreateSessionResponse) Reset ¶
func (x *CreateSessionResponse) Reset()
func (*CreateSessionResponse) String ¶
func (x *CreateSessionResponse) String() string
type DimensionFilter ¶
type DimensionFilter struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Values []string `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"`
Not bool `protobuf:"varint,3,opt,name=not,proto3" json:"not,omitempty"`
// contains filtered or unexported fields
}
OR inside values, AND across filters. A source without the key fails a positive filter and passes a not filter.
func (*DimensionFilter) Descriptor
deprecated
func (*DimensionFilter) Descriptor() ([]byte, []int)
Deprecated: Use DimensionFilter.ProtoReflect.Descriptor instead.
func (*DimensionFilter) GetKey ¶
func (x *DimensionFilter) GetKey() string
func (*DimensionFilter) GetNot ¶
func (x *DimensionFilter) GetNot() bool
func (*DimensionFilter) GetValues ¶
func (x *DimensionFilter) GetValues() []string
func (*DimensionFilter) ProtoMessage ¶
func (*DimensionFilter) ProtoMessage()
func (*DimensionFilter) ProtoReflect ¶
func (x *DimensionFilter) ProtoReflect() protoreflect.Message
func (*DimensionFilter) Reset ¶
func (x *DimensionFilter) Reset()
func (*DimensionFilter) String ¶
func (x *DimensionFilter) String() string
type Facet ¶
type Facet struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// At most 20, most frequent first.
Values []*FacetValue `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"`
// There are more values than listed.
More bool `protobuf:"varint,3,opt,name=more,proto3" json:"more,omitempty"`
// contains filtered or unexported fields
}
The values of one dimension among the sources that match every filter but the dimension's own.
func (*Facet) Descriptor
deprecated
func (*Facet) GetValues ¶
func (x *Facet) GetValues() []*FacetValue
func (*Facet) ProtoMessage ¶
func (*Facet) ProtoMessage()
func (*Facet) ProtoReflect ¶
func (x *Facet) ProtoReflect() protoreflect.Message
type FacetValue ¶
type FacetValue struct {
Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
// How many sources have the value; absent when the plugin does not know. Optional like the
// counts of the summary.
Count *uint32 `protobuf:"varint,2,opt,name=count,proto3,oneof" json:"count,omitempty"`
// contains filtered or unexported fields
}
func (*FacetValue) Descriptor
deprecated
func (*FacetValue) Descriptor() ([]byte, []int)
Deprecated: Use FacetValue.ProtoReflect.Descriptor instead.
func (*FacetValue) GetCount ¶
func (x *FacetValue) GetCount() uint32
func (*FacetValue) GetValue ¶
func (x *FacetValue) GetValue() string
func (*FacetValue) ProtoMessage ¶
func (*FacetValue) ProtoMessage()
func (*FacetValue) ProtoReflect ¶
func (x *FacetValue) ProtoReflect() protoreflect.Message
func (*FacetValue) Reset ¶
func (x *FacetValue) Reset()
func (*FacetValue) String ¶
func (x *FacetValue) String() string
type GetSessionResponse ¶
type GetSessionResponse struct {
Session *Session `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"`
// contains filtered or unexported fields
}
func (*GetSessionResponse) Descriptor
deprecated
func (*GetSessionResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetSessionResponse.ProtoReflect.Descriptor instead.
func (*GetSessionResponse) GetSession ¶
func (x *GetSessionResponse) GetSession() *Session
func (*GetSessionResponse) ProtoMessage ¶
func (*GetSessionResponse) ProtoMessage()
func (*GetSessionResponse) ProtoReflect ¶
func (x *GetSessionResponse) ProtoReflect() protoreflect.Message
func (*GetSessionResponse) Reset ¶
func (x *GetSessionResponse) Reset()
func (*GetSessionResponse) String ¶
func (x *GetSessionResponse) String() string
type GetSupportedResourcesResponse ¶
type GetSupportedResourcesResponse struct {
Resources []*ResourceInfo `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"`
// contains filtered or unexported fields
}
func (*GetSupportedResourcesResponse) Descriptor
deprecated
func (*GetSupportedResourcesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetSupportedResourcesResponse.ProtoReflect.Descriptor instead.
func (*GetSupportedResourcesResponse) GetResources ¶
func (x *GetSupportedResourcesResponse) GetResources() []*ResourceInfo
func (*GetSupportedResourcesResponse) ProtoMessage ¶
func (*GetSupportedResourcesResponse) ProtoMessage()
func (*GetSupportedResourcesResponse) ProtoReflect ¶
func (x *GetSupportedResourcesResponse) ProtoReflect() protoreflect.Message
func (*GetSupportedResourcesResponse) Reset ¶
func (x *GetSupportedResourcesResponse) Reset()
func (*GetSupportedResourcesResponse) String ¶
func (x *GetSupportedResourcesResponse) String() string
type ListFacetValuesRequest ¶
type ListFacetValuesRequest struct {
SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
// Case-insensitive substring over the value.
Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"`
// The next of the previous page of a call with the same key and text; empty for the first
// page. See ListFacetValuesResponse.next.
Cursor string `protobuf:"bytes,4,opt,name=cursor,proto3" json:"cursor,omitempty"`
// At most 200; zero: 50.
Limit int32 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"`
// contains filtered or unexported fields
}
func (*ListFacetValuesRequest) Descriptor
deprecated
func (*ListFacetValuesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListFacetValuesRequest.ProtoReflect.Descriptor instead.
func (*ListFacetValuesRequest) GetCursor ¶
func (x *ListFacetValuesRequest) GetCursor() string
func (*ListFacetValuesRequest) GetKey ¶
func (x *ListFacetValuesRequest) GetKey() string
func (*ListFacetValuesRequest) GetLimit ¶
func (x *ListFacetValuesRequest) GetLimit() int32
func (*ListFacetValuesRequest) GetSessionId ¶
func (x *ListFacetValuesRequest) GetSessionId() string
func (*ListFacetValuesRequest) GetText ¶
func (x *ListFacetValuesRequest) GetText() string
func (*ListFacetValuesRequest) ProtoMessage ¶
func (*ListFacetValuesRequest) ProtoMessage()
func (*ListFacetValuesRequest) ProtoReflect ¶
func (x *ListFacetValuesRequest) ProtoReflect() protoreflect.Message
func (*ListFacetValuesRequest) Reset ¶
func (x *ListFacetValuesRequest) Reset()
func (*ListFacetValuesRequest) String ¶
func (x *ListFacetValuesRequest) String() string
type ListFacetValuesResponse ¶
type ListFacetValuesResponse struct {
// In value order.
Values []*FacetValue `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
// Empty on the last page. Otherwise a cursor: opaque text that names the last value of the page
// in the order of the values. It is good for the session that issued it for as long as the
// session lasts, and it is as long as the value, at most about 700 bytes. A host keeps it whole.
Next string `protobuf:"bytes,2,opt,name=next,proto3" json:"next,omitempty"`
// contains filtered or unexported fields
}
func (*ListFacetValuesResponse) Descriptor
deprecated
func (*ListFacetValuesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListFacetValuesResponse.ProtoReflect.Descriptor instead.
func (*ListFacetValuesResponse) GetNext ¶
func (x *ListFacetValuesResponse) GetNext() string
func (*ListFacetValuesResponse) GetValues ¶
func (x *ListFacetValuesResponse) GetValues() []*FacetValue
func (*ListFacetValuesResponse) ProtoMessage ¶
func (*ListFacetValuesResponse) ProtoMessage()
func (*ListFacetValuesResponse) ProtoReflect ¶
func (x *ListFacetValuesResponse) ProtoReflect() protoreflect.Message
func (*ListFacetValuesResponse) Reset ¶
func (x *ListFacetValuesResponse) Reset()
func (*ListFacetValuesResponse) String ¶
func (x *ListFacetValuesResponse) String() string
type ListSessionsResponse ¶
type ListSessionsResponse struct {
Sessions []*Session `protobuf:"bytes,1,rep,name=sessions,proto3" json:"sessions,omitempty"`
// contains filtered or unexported fields
}
The snapshots of every session of the plugin, without their sources: the call is not paged, and a list that held the sources of every session would grow with the sessions and their catalogs. GetSession gives the sources of one session, and ListSources pages its catalog.
func (*ListSessionsResponse) Descriptor
deprecated
func (*ListSessionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListSessionsResponse.ProtoReflect.Descriptor instead.
func (*ListSessionsResponse) GetSessions ¶
func (x *ListSessionsResponse) GetSessions() []*Session
func (*ListSessionsResponse) ProtoMessage ¶
func (*ListSessionsResponse) ProtoMessage()
func (*ListSessionsResponse) ProtoReflect ¶
func (x *ListSessionsResponse) ProtoReflect() protoreflect.Message
func (*ListSessionsResponse) Reset ¶
func (x *ListSessionsResponse) Reset()
func (*ListSessionsResponse) String ¶
func (x *ListSessionsResponse) String() string
type ListSourcesRequest ¶
type ListSourcesRequest struct {
SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
// The same matcher as SourceRule.text.
Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
Where []*DimensionFilter `protobuf:"bytes,3,rep,name=where,proto3" json:"where,omitempty"`
// Only sources in one of these states. Empty: every state but removed; a removed source is
// listed only when SOURCE_STATE_REMOVED is asked for.
States []SourceState `protobuf:"varint,4,rep,packed,name=states,proto3,enum=omniview.sdk.logs.v2.SourceState" json:"states,omitempty"`
// The next of the previous page of a call with the same text, filters and states; empty for the
// first page. See ListSourcesResponse.next.
Cursor string `protobuf:"bytes,5,opt,name=cursor,proto3" json:"cursor,omitempty"`
// At most 200; zero: 50.
Limit int32 `protobuf:"varint,6,opt,name=limit,proto3" json:"limit,omitempty"`
// contains filtered or unexported fields
}
func (*ListSourcesRequest) Descriptor
deprecated
func (*ListSourcesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListSourcesRequest.ProtoReflect.Descriptor instead.
func (*ListSourcesRequest) GetCursor ¶
func (x *ListSourcesRequest) GetCursor() string
func (*ListSourcesRequest) GetLimit ¶
func (x *ListSourcesRequest) GetLimit() int32
func (*ListSourcesRequest) GetSessionId ¶
func (x *ListSourcesRequest) GetSessionId() string
func (*ListSourcesRequest) GetStates ¶
func (x *ListSourcesRequest) GetStates() []SourceState
func (*ListSourcesRequest) GetText ¶
func (x *ListSourcesRequest) GetText() string
func (*ListSourcesRequest) GetWhere ¶
func (x *ListSourcesRequest) GetWhere() []*DimensionFilter
func (*ListSourcesRequest) ProtoMessage ¶
func (*ListSourcesRequest) ProtoMessage()
func (*ListSourcesRequest) ProtoReflect ¶
func (x *ListSourcesRequest) ProtoReflect() protoreflect.Message
func (*ListSourcesRequest) Reset ¶
func (x *ListSourcesRequest) Reset()
func (*ListSourcesRequest) String ¶
func (x *ListSourcesRequest) String() string
type ListSourcesResponse ¶
type ListSourcesResponse struct {
// In label order, then id.
Sources []*SourceInfo `protobuf:"bytes,1,rep,name=sources,proto3" json:"sources,omitempty"`
// Empty on the last page. Otherwise a cursor. A cursor is opaque text that names a position in
// the order of the catalog, the label and the id of the last source of the page, and not a
// snapshot: it does not expire when the catalog changes, and a source that joins before the
// position is not seen by the walk that holds it. It is good for the session that issued it for
// as long as the session lasts. It holds the label and the id, so it is as long as they are: at
// most about 4.2 KB. A host keeps it whole.
Next string `protobuf:"bytes,2,opt,name=next,proto3" json:"next,omitempty"`
// The revision of the catalog the page was made from; see SessionSummary.revision.
Revision uint64 `protobuf:"varint,3,opt,name=revision,proto3" json:"revision,omitempty"`
// Counts and facets are optional and come with the first page.
Total *uint32 `protobuf:"varint,4,opt,name=total,proto3,oneof" json:"total,omitempty"`
Matching *uint32 `protobuf:"varint,5,opt,name=matching,proto3,oneof" json:"matching,omitempty"`
Facets []*Facet `protobuf:"bytes,6,rep,name=facets,proto3" json:"facets,omitempty"`
// contains filtered or unexported fields
}
func (*ListSourcesResponse) Descriptor
deprecated
func (*ListSourcesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListSourcesResponse.ProtoReflect.Descriptor instead.
func (*ListSourcesResponse) GetFacets ¶
func (x *ListSourcesResponse) GetFacets() []*Facet
func (*ListSourcesResponse) GetMatching ¶
func (x *ListSourcesResponse) GetMatching() uint32
func (*ListSourcesResponse) GetNext ¶
func (x *ListSourcesResponse) GetNext() string
func (*ListSourcesResponse) GetRevision ¶
func (x *ListSourcesResponse) GetRevision() uint64
func (*ListSourcesResponse) GetSources ¶
func (x *ListSourcesResponse) GetSources() []*SourceInfo
func (*ListSourcesResponse) GetTotal ¶
func (x *ListSourcesResponse) GetTotal() uint32
func (*ListSourcesResponse) ProtoMessage ¶
func (*ListSourcesResponse) ProtoMessage()
func (*ListSourcesResponse) ProtoReflect ¶
func (x *ListSourcesResponse) ProtoReflect() protoreflect.Message
func (*ListSourcesResponse) Reset ¶
func (x *ListSourcesResponse) Reset()
func (*ListSourcesResponse) String ¶
func (x *ListSourcesResponse) String() string
type LogLevel ¶
type LogLevel int32
func (LogLevel) Descriptor ¶
func (LogLevel) Descriptor() protoreflect.EnumDescriptor
func (LogLevel) EnumDescriptor
deprecated
func (LogLevel) Number ¶
func (x LogLevel) Number() protoreflect.EnumNumber
func (LogLevel) Type ¶
func (LogLevel) Type() protoreflect.EnumType
type LogLine ¶
type LogLine struct {
// Names the line's source and instance in the batch's table. It starts at 1: 0 is never sent.
N uint32 `protobuf:"varint,1,opt,name=n,proto3" json:"n,omitempty"`
// Epoch microseconds; zero: the line has none.
TimestampUs int64 `protobuf:"varint,2,opt,name=timestamp_us,json=timestampUs,proto3" json:"timestamp_us,omitempty"`
Content []byte `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
Level LogLevel `protobuf:"varint,4,opt,name=level,proto3,enum=omniview.sdk.logs.v2.LogLevel" json:"level,omitempty"`
Origin LogLineOrigin `protobuf:"varint,5,opt,name=origin,proto3,enum=omniview.sdk.logs.v2.LogLineOrigin" json:"origin,omitempty"`
// One of the lines the source already held when its stream opened, up to its
// SourceCaughtUpEvent. Set only when the source's entry says replay.
Replay bool `protobuf:"varint,6,opt,name=replay,proto3" json:"replay,omitempty"`
// contains filtered or unexported fields
}
func (*LogLine) Descriptor
deprecated
func (*LogLine) GetContent ¶
func (*LogLine) GetOrigin ¶
func (x *LogLine) GetOrigin() LogLineOrigin
func (*LogLine) GetTimestampUs ¶
func (*LogLine) ProtoMessage ¶
func (*LogLine) ProtoMessage()
func (*LogLine) ProtoReflect ¶
func (x *LogLine) ProtoReflect() protoreflect.Message
type LogLineBatch ¶
type LogLineBatch struct {
Sources []*SourceEntry `protobuf:"bytes,1,rep,name=sources,proto3" json:"sources,omitempty"`
Lines []*LogLine `protobuf:"bytes,2,rep,name=lines,proto3" json:"lines,omitempty"`
// contains filtered or unexported fields
}
At most 100 lines, 1 MiB of content or 20 ms of lines; an oversized line travels alone. A host that drops a batch it cannot take, to bound its memory, must still keep the sources table of the batch: an n is described once, in the first batch that uses it, so the lines that use it later have no label without it.
func (*LogLineBatch) Descriptor
deprecated
func (*LogLineBatch) Descriptor() ([]byte, []int)
Deprecated: Use LogLineBatch.ProtoReflect.Descriptor instead.
func (*LogLineBatch) GetLines ¶
func (x *LogLineBatch) GetLines() []*LogLine
func (*LogLineBatch) GetSources ¶
func (x *LogLineBatch) GetSources() []*SourceEntry
func (*LogLineBatch) ProtoMessage ¶
func (*LogLineBatch) ProtoMessage()
func (*LogLineBatch) ProtoReflect ¶
func (x *LogLineBatch) ProtoReflect() protoreflect.Message
func (*LogLineBatch) Reset ¶
func (x *LogLineBatch) Reset()
func (*LogLineBatch) String ¶
func (x *LogLineBatch) String() string
type LogLineOrigin ¶
type LogLineOrigin int32
Every enum has an unspecified zero, so that a message that leaves a field out is never read as a value. A number that a reader does not know is kept as it came; see the evolution rule above.
const ( LogLineOrigin_LOG_LINE_ORIGIN_UNSPECIFIED LogLineOrigin = 0 LogLineOrigin_LOG_LINE_ORIGIN_CURRENT LogLineOrigin = 1 LogLineOrigin_LOG_LINE_ORIGIN_PREVIOUS LogLineOrigin = 2 // A line the SDK wrote itself (a lifecycle marker): resumed, restarted, removed, failed, ended // or a gap. It carries the n of the source it is about. LogLineOrigin_LOG_LINE_ORIGIN_SYSTEM LogLineOrigin = 3 )
func (LogLineOrigin) Descriptor ¶
func (LogLineOrigin) Descriptor() protoreflect.EnumDescriptor
func (LogLineOrigin) Enum ¶
func (x LogLineOrigin) Enum() *LogLineOrigin
func (LogLineOrigin) EnumDescriptor
deprecated
func (LogLineOrigin) EnumDescriptor() ([]byte, []int)
Deprecated: Use LogLineOrigin.Descriptor instead.
func (LogLineOrigin) Number ¶
func (x LogLineOrigin) Number() protoreflect.EnumNumber
func (LogLineOrigin) String ¶
func (x LogLineOrigin) String() string
func (LogLineOrigin) Type ¶
func (LogLineOrigin) Type() protoreflect.EnumType
type LogOption ¶
type LogOption struct {
Kind LogOptionKind `protobuf:"varint,1,opt,name=kind,proto3,enum=omniview.sdk.logs.v2.LogOptionKind" json:"kind,omitempty"`
// What the UI shows for the option. UTF-8, at most 256 bytes.
Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
// contains filtered or unexported fields
}
func (*LogOption) Descriptor
deprecated
func (*LogOption) GetKind ¶
func (x *LogOption) GetKind() LogOptionKind
func (*LogOption) ProtoMessage ¶
func (*LogOption) ProtoMessage()
func (*LogOption) ProtoReflect ¶
func (x *LogOption) ProtoReflect() protoreflect.Message
type LogOptionKind ¶
type LogOptionKind int32
An option of a resource kind that the UI may offer.
const ( LogOptionKind_LOG_OPTION_KIND_UNSPECIFIED LogOptionKind = 0 LogOptionKind_LOG_OPTION_KIND_SINCE LogOptionKind = 1 LogOptionKind_LOG_OPTION_KIND_PREVIOUS LogOptionKind = 2 LogOptionKind_LOG_OPTION_KIND_TAIL LogOptionKind = 3 )
func (LogOptionKind) Descriptor ¶
func (LogOptionKind) Descriptor() protoreflect.EnumDescriptor
func (LogOptionKind) Enum ¶
func (x LogOptionKind) Enum() *LogOptionKind
func (LogOptionKind) EnumDescriptor
deprecated
func (LogOptionKind) EnumDescriptor() ([]byte, []int)
Deprecated: Use LogOptionKind.Descriptor instead.
func (LogOptionKind) Number ¶
func (x LogOptionKind) Number() protoreflect.EnumNumber
func (LogOptionKind) String ¶
func (x LogOptionKind) String() string
func (LogOptionKind) Type ¶
func (LogOptionKind) Type() protoreflect.EnumType
type LogPluginClient ¶
type LogPluginClient interface {
GetSupportedResources(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetSupportedResourcesResponse, error)
CreateSession(ctx context.Context, in *CreateSessionRequest, opts ...grpc.CallOption) (*CreateSessionResponse, error)
UpdateSelection(ctx context.Context, in *UpdateSelectionRequest, opts ...grpc.CallOption) (*UpdateSelectionResponse, error)
ListSources(ctx context.Context, in *ListSourcesRequest, opts ...grpc.CallOption) (*ListSourcesResponse, error)
ListFacetValues(ctx context.Context, in *ListFacetValuesRequest, opts ...grpc.CallOption) (*ListFacetValuesResponse, error)
GetSession(ctx context.Context, in *SessionByIdRequest, opts ...grpc.CallOption) (*GetSessionResponse, error)
ListSessions(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListSessionsResponse, error)
CloseSession(ctx context.Context, in *SessionByIdRequest, opts ...grpc.CallOption) (*CloseSessionResponse, error)
// The output of every session of the plugin, and the close command for one. A plugin has at
// most one Stream open: a second one while one is open is refused with the class CONFLICT. The
// end of the stream, when the host closes its side or the RPC ends, closes every session.
Stream(ctx context.Context, opts ...grpc.CallOption) (LogPlugin_StreamClient, error)
}
LogPluginClient is the client API for LogPlugin 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 NewLogPluginClient ¶
func NewLogPluginClient(cc grpc.ClientConnInterface) LogPluginClient
type LogPluginServer ¶
type LogPluginServer interface {
GetSupportedResources(context.Context, *emptypb.Empty) (*GetSupportedResourcesResponse, error)
CreateSession(context.Context, *CreateSessionRequest) (*CreateSessionResponse, error)
UpdateSelection(context.Context, *UpdateSelectionRequest) (*UpdateSelectionResponse, error)
ListSources(context.Context, *ListSourcesRequest) (*ListSourcesResponse, error)
ListFacetValues(context.Context, *ListFacetValuesRequest) (*ListFacetValuesResponse, error)
GetSession(context.Context, *SessionByIdRequest) (*GetSessionResponse, error)
ListSessions(context.Context, *emptypb.Empty) (*ListSessionsResponse, error)
CloseSession(context.Context, *SessionByIdRequest) (*CloseSessionResponse, error)
// The output of every session of the plugin, and the close command for one. A plugin has at
// most one Stream open: a second one while one is open is refused with the class CONFLICT. The
// end of the stream, when the host closes its side or the RPC ends, closes every session.
Stream(LogPlugin_StreamServer) error
}
LogPluginServer is the server API for LogPlugin service. All implementations should embed UnimplementedLogPluginServer for forward compatibility
type LogPlugin_StreamClient ¶
type LogPlugin_StreamClient interface {
Send(*StreamInput) error
Recv() (*StreamOutput, error)
grpc.ClientStream
}
type LogPlugin_StreamServer ¶
type LogPlugin_StreamServer interface {
Send(*StreamOutput) error
Recv() (*StreamInput, error)
grpc.ServerStream
}
type LogSessionOptions ¶
type LogSessionOptions struct {
Follow bool `protobuf:"varint,1,opt,name=follow,proto3" json:"follow,omitempty"`
// Lines wanted for the whole view; each source's share is
// max(50, tail_budget / min(limit, selected)) at its first open. Zero means that no limit is
// set, not that no lines are wanted: every source is opened with no limit on its tail, and what
// that gives is for its kind to say (a kind that reads a log may send all of it). There is no
// value yet for "no backlog", what kubectl logs --tail=0 gives: a host that wants it cannot ask
// for it, and must not read zero as it.
TailBudget int64 `protobuf:"varint,2,opt,name=tail_budget,json=tailBudget,proto3" json:"tail_budget,omitempty"`
// One absolute time.
SinceTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=since_time,json=sinceTime,proto3" json:"since_time,omitempty"`
Previous bool `protobuf:"varint,4,opt,name=previous,proto3" json:"previous,omitempty"`
// Ask for replay markers: the replay flag on the lines a source already held when
// its stream opened, and a SourceCaughtUpEvent after them.
ReplayMarkers bool `protobuf:"varint,5,opt,name=replay_markers,json=replayMarkers,proto3" json:"replay_markers,omitempty"`
// contains filtered or unexported fields
}
Options fixed for the life of the session. Changing one means a new session.
func (*LogSessionOptions) Descriptor
deprecated
func (*LogSessionOptions) Descriptor() ([]byte, []int)
Deprecated: Use LogSessionOptions.ProtoReflect.Descriptor instead.
func (*LogSessionOptions) GetFollow ¶
func (x *LogSessionOptions) GetFollow() bool
func (*LogSessionOptions) GetPrevious ¶
func (x *LogSessionOptions) GetPrevious() bool
func (*LogSessionOptions) GetReplayMarkers ¶
func (x *LogSessionOptions) GetReplayMarkers() bool
func (*LogSessionOptions) GetSinceTime ¶
func (x *LogSessionOptions) GetSinceTime() *timestamppb.Timestamp
func (*LogSessionOptions) GetTailBudget ¶
func (x *LogSessionOptions) GetTailBudget() int64
func (*LogSessionOptions) ProtoMessage ¶
func (*LogSessionOptions) ProtoMessage()
func (*LogSessionOptions) ProtoReflect ¶
func (x *LogSessionOptions) ProtoReflect() protoreflect.Message
func (*LogSessionOptions) Reset ¶
func (x *LogSessionOptions) Reset()
func (*LogSessionOptions) String ¶
func (x *LogSessionOptions) String() string
type OriginInfo ¶
type OriginInfo struct {
ResourceKey string `protobuf:"bytes,1,opt,name=resource_key,json=resourceKey,proto3" json:"resource_key,omitempty"`
ResourceId string `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
// contains filtered or unexported fields
}
An origin as a session reports it: the body is not echoed.
func (*OriginInfo) Descriptor
deprecated
func (*OriginInfo) Descriptor() ([]byte, []int)
Deprecated: Use OriginInfo.ProtoReflect.Descriptor instead.
func (*OriginInfo) GetResourceId ¶
func (x *OriginInfo) GetResourceId() string
func (*OriginInfo) GetResourceKey ¶
func (x *OriginInfo) GetResourceKey() string
func (*OriginInfo) ProtoMessage ¶
func (*OriginInfo) ProtoMessage()
func (*OriginInfo) ProtoReflect ¶
func (x *OriginInfo) ProtoReflect() protoreflect.Message
func (*OriginInfo) Reset ¶
func (x *OriginInfo) Reset()
func (*OriginInfo) String ¶
func (x *OriginInfo) String() string
type ResourceInfo ¶
type ResourceInfo struct {
// The resource kind the plugin can show logs for. UTF-8, not empty, at most 256 bytes.
Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
// Label keys the UI may group and filter by, in order.
Dimensions []*SourceDimension `protobuf:"bytes,2,rep,name=dimensions,proto3" json:"dimensions,omitempty"`
// The highest limit a session of this resource accepts: at most 1000.
LimitCeiling int32 `protobuf:"varint,3,opt,name=limit_ceiling,json=limitCeiling,proto3" json:"limit_ceiling,omitempty"`
// At most one option of each kind.
Options []*LogOption `protobuf:"bytes,4,rep,name=options,proto3" json:"options,omitempty"`
// contains filtered or unexported fields
}
What a plugin registered for the logs of one resource kind. A registration whose text is not UTF-8 or is longer than its bound is refused when the plugin starts.
func (*ResourceInfo) Descriptor
deprecated
func (*ResourceInfo) Descriptor() ([]byte, []int)
Deprecated: Use ResourceInfo.ProtoReflect.Descriptor instead.
func (*ResourceInfo) GetDimensions ¶
func (x *ResourceInfo) GetDimensions() []*SourceDimension
func (*ResourceInfo) GetLimitCeiling ¶
func (x *ResourceInfo) GetLimitCeiling() int32
func (*ResourceInfo) GetOptions ¶
func (x *ResourceInfo) GetOptions() []*LogOption
func (*ResourceInfo) GetResource ¶
func (x *ResourceInfo) GetResource() string
func (*ResourceInfo) ProtoMessage ¶
func (*ResourceInfo) ProtoMessage()
func (*ResourceInfo) ProtoReflect ¶
func (x *ResourceInfo) ProtoReflect() protoreflect.Message
func (*ResourceInfo) Reset ¶
func (x *ResourceInfo) Reset()
func (*ResourceInfo) String ¶
func (x *ResourceInfo) String() string
type Session ¶
type Session struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Origins []*OriginInfo `protobuf:"bytes,2,rep,name=origins,proto3" json:"origins,omitempty"`
Options *LogSessionOptions `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"`
Status SessionStatus `protobuf:"varint,4,opt,name=status,proto3,enum=omniview.sdk.logs.v2.SessionStatus" json:"status,omitempty"`
EndCause SessionEndCause `` /* 128-byte string literal not displayed */
EndMessage string `protobuf:"bytes,6,opt,name=end_message,json=endMessage,proto3" json:"end_message,omitempty"`
Summary *SessionSummary `protobuf:"bytes,7,opt,name=summary,proto3" json:"summary,omitempty"`
// The whole catalog while the total is known and at most 50 sources, otherwise the selected
// sources: every source that holds a slot, then the rest in streaming order, at
// most limit + 100 in all. The replies of CreateSession and GetSession carry it; ListSessions
// leaves it out, and ListSources pages the catalog.
Sources []*SourceInfo `protobuf:"bytes,8,rep,name=sources,proto3" json:"sources,omitempty"`
// The plugin accepted the request for replay markers.
ReplayMarkers bool `protobuf:"varint,9,opt,name=replay_markers,json=replayMarkers,proto3" json:"replay_markers,omitempty"`
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
// contains filtered or unexported fields
}
func (*Session) Descriptor
deprecated
func (*Session) GetCreatedAt ¶
func (x *Session) GetCreatedAt() *timestamppb.Timestamp
func (*Session) GetEndCause ¶
func (x *Session) GetEndCause() SessionEndCause
func (*Session) GetEndMessage ¶
func (*Session) GetOptions ¶
func (x *Session) GetOptions() *LogSessionOptions
func (*Session) GetOrigins ¶
func (x *Session) GetOrigins() []*OriginInfo
func (*Session) GetReplayMarkers ¶
func (*Session) GetSources ¶
func (x *Session) GetSources() []*SourceInfo
func (*Session) GetStatus ¶
func (x *Session) GetStatus() SessionStatus
func (*Session) GetSummary ¶
func (x *Session) GetSummary() *SessionSummary
func (*Session) ProtoMessage ¶
func (*Session) ProtoMessage()
func (*Session) ProtoReflect ¶
func (x *Session) ProtoReflect() protoreflect.Message
type SessionByIdRequest ¶
type SessionByIdRequest struct {
SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
// contains filtered or unexported fields
}
func (*SessionByIdRequest) Descriptor
deprecated
func (*SessionByIdRequest) Descriptor() ([]byte, []int)
Deprecated: Use SessionByIdRequest.ProtoReflect.Descriptor instead.
func (*SessionByIdRequest) GetSessionId ¶
func (x *SessionByIdRequest) GetSessionId() string
func (*SessionByIdRequest) ProtoMessage ¶
func (*SessionByIdRequest) ProtoMessage()
func (*SessionByIdRequest) ProtoReflect ¶
func (x *SessionByIdRequest) ProtoReflect() protoreflect.Message
func (*SessionByIdRequest) Reset ¶
func (x *SessionByIdRequest) Reset()
func (*SessionByIdRequest) String ¶
func (x *SessionByIdRequest) String() string
type SessionEndCause ¶
type SessionEndCause int32
const ( SessionEndCause_SESSION_END_CAUSE_UNSPECIFIED SessionEndCause = 0 // CloseSession was called. SessionEndCause_SESSION_END_CAUSE_CLOSED SessionEndCause = 1 // A session that does not follow ran out of work. SessionEndCause_SESSION_END_CAUSE_COMPLETED SessionEndCause = 2 // The plugin is stopping. SessionEndCause_SESSION_END_CAUSE_PLUGIN_STOPPED SessionEndCause = 3 // The connection the session ran on was retired. SessionEndCause_SESSION_END_CAUSE_CONNECTION_LOST SessionEndCause = 4 // The session cannot go on. SessionEndCause_SESSION_END_CAUSE_FAILED SessionEndCause = 5 )
func (SessionEndCause) Descriptor ¶
func (SessionEndCause) Descriptor() protoreflect.EnumDescriptor
func (SessionEndCause) Enum ¶
func (x SessionEndCause) Enum() *SessionEndCause
func (SessionEndCause) EnumDescriptor
deprecated
func (SessionEndCause) EnumDescriptor() ([]byte, []int)
Deprecated: Use SessionEndCause.Descriptor instead.
func (SessionEndCause) Number ¶
func (x SessionEndCause) Number() protoreflect.EnumNumber
func (SessionEndCause) String ¶
func (x SessionEndCause) String() string
func (SessionEndCause) Type ¶
func (SessionEndCause) Type() protoreflect.EnumType
type SessionEndedEvent ¶
type SessionEndedEvent struct {
Cause SessionEndCause `protobuf:"varint,1,opt,name=cause,proto3,enum=omniview.sdk.logs.v2.SessionEndCause" json:"cause,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*SessionEndedEvent) Descriptor
deprecated
func (*SessionEndedEvent) Descriptor() ([]byte, []int)
Deprecated: Use SessionEndedEvent.ProtoReflect.Descriptor instead.
func (*SessionEndedEvent) GetCause ¶
func (x *SessionEndedEvent) GetCause() SessionEndCause
func (*SessionEndedEvent) GetMessage ¶
func (x *SessionEndedEvent) GetMessage() string
func (*SessionEndedEvent) ProtoMessage ¶
func (*SessionEndedEvent) ProtoMessage()
func (*SessionEndedEvent) ProtoReflect ¶
func (x *SessionEndedEvent) ProtoReflect() protoreflect.Message
func (*SessionEndedEvent) Reset ¶
func (x *SessionEndedEvent) Reset()
func (*SessionEndedEvent) String ¶
func (x *SessionEndedEvent) String() string
type SessionReadyEvent ¶
type SessionReadyEvent struct {
// contains filtered or unexported fields
}
Every source given a slot at the start has opened, ended, failed or turned pending.
func (*SessionReadyEvent) Descriptor
deprecated
func (*SessionReadyEvent) Descriptor() ([]byte, []int)
Deprecated: Use SessionReadyEvent.ProtoReflect.Descriptor instead.
func (*SessionReadyEvent) ProtoMessage ¶
func (*SessionReadyEvent) ProtoMessage()
func (*SessionReadyEvent) ProtoReflect ¶
func (x *SessionReadyEvent) ProtoReflect() protoreflect.Message
func (*SessionReadyEvent) Reset ¶
func (x *SessionReadyEvent) Reset()
func (*SessionReadyEvent) String ¶
func (x *SessionReadyEvent) String() string
type SessionStatus ¶
type SessionStatus int32
const ( SessionStatus_SESSION_STATUS_UNSPECIFIED SessionStatus = 0 // The sources given a slot at the start have not all opened yet. SessionStatus_SESSION_STATUS_INITIALIZING SessionStatus = 1 SessionStatus_SESSION_STATUS_ACTIVE SessionStatus = 2 SessionStatus_SESSION_STATUS_ENDED SessionStatus = 3 )
func (SessionStatus) Descriptor ¶
func (SessionStatus) Descriptor() protoreflect.EnumDescriptor
func (SessionStatus) Enum ¶
func (x SessionStatus) Enum() *SessionStatus
func (SessionStatus) EnumDescriptor
deprecated
func (SessionStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use SessionStatus.Descriptor instead.
func (SessionStatus) Number ¶
func (x SessionStatus) Number() protoreflect.EnumNumber
func (SessionStatus) String ¶
func (x SessionStatus) String() string
func (SessionStatus) Type ¶
func (SessionStatus) Type() protoreflect.EnumType
type SessionSummary ¶
type SessionSummary struct {
// The counts of sources are optional. A plugin whose catalog is paged by its provider may not
// know them: an absent count is unknown, never zero.
Total *uint32 `protobuf:"varint,1,opt,name=total,proto3,oneof" json:"total,omitempty"`
Selected *uint32 `protobuf:"varint,2,opt,name=selected,proto3,oneof" json:"selected,omitempty"`
// Sources that hold a slot: connecting, streaming or reconnecting. Always known.
Streaming uint32 `protobuf:"varint,3,opt,name=streaming,proto3" json:"streaming,omitempty"`
Waiting *uint32 `protobuf:"varint,4,opt,name=waiting,proto3,oneof" json:"waiting,omitempty"`
Pending *uint32 `protobuf:"varint,5,opt,name=pending,proto3,oneof" json:"pending,omitempty"`
Failed *uint32 `protobuf:"varint,6,opt,name=failed,proto3,oneof" json:"failed,omitempty"`
// The class of the failure that holds promotions back, or of the latest failed source.
FailureClass string `protobuf:"bytes,7,opt,name=failure_class,json=failureClass,proto3" json:"failure_class,omitempty"`
Limit int32 `protobuf:"varint,8,opt,name=limit,proto3" json:"limit,omitempty"`
Ceiling int32 `protobuf:"varint,9,opt,name=ceiling,proto3" json:"ceiling,omitempty"`
// Counts the changes of the selection, the limit and the catalog. It starts at 1, and 0 is never
// sent. A state change does not count.
Revision uint64 `protobuf:"varint,10,opt,name=revision,proto3" json:"revision,omitempty"`
// The plugin has stopped following its catalog: the resolver of a session that follows closed
// its events, so a source that comes or goes from now on is not seen and the list is no longer
// live. The sources that stream keep streaming. It stays set for the rest of the session. A
// summary that leaves it out says the catalog is followed.
CatalogStopped bool `protobuf:"varint,11,opt,name=catalog_stopped,json=catalogStopped,proto3" json:"catalog_stopped,omitempty"`
// contains filtered or unexported fields
}
func (*SessionSummary) Descriptor
deprecated
func (*SessionSummary) Descriptor() ([]byte, []int)
Deprecated: Use SessionSummary.ProtoReflect.Descriptor instead.
func (*SessionSummary) GetCatalogStopped ¶
func (x *SessionSummary) GetCatalogStopped() bool
func (*SessionSummary) GetCeiling ¶
func (x *SessionSummary) GetCeiling() int32
func (*SessionSummary) GetFailed ¶
func (x *SessionSummary) GetFailed() uint32
func (*SessionSummary) GetFailureClass ¶
func (x *SessionSummary) GetFailureClass() string
func (*SessionSummary) GetLimit ¶
func (x *SessionSummary) GetLimit() int32
func (*SessionSummary) GetPending ¶
func (x *SessionSummary) GetPending() uint32
func (*SessionSummary) GetRevision ¶
func (x *SessionSummary) GetRevision() uint64
func (*SessionSummary) GetSelected ¶
func (x *SessionSummary) GetSelected() uint32
func (*SessionSummary) GetStreaming ¶
func (x *SessionSummary) GetStreaming() uint32
func (*SessionSummary) GetTotal ¶
func (x *SessionSummary) GetTotal() uint32
func (*SessionSummary) GetWaiting ¶
func (x *SessionSummary) GetWaiting() uint32
func (*SessionSummary) ProtoMessage ¶
func (*SessionSummary) ProtoMessage()
func (*SessionSummary) ProtoReflect ¶
func (x *SessionSummary) ProtoReflect() protoreflect.Message
func (*SessionSummary) Reset ¶
func (x *SessionSummary) Reset()
func (*SessionSummary) String ¶
func (x *SessionSummary) String() string
type SourceCaughtUpEvent ¶
type SourceCaughtUpEvent struct {
Ref *SourceRef `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"`
// contains filtered or unexported fields
}
A source's replay has been delivered: the lines it sends after this are live.
func (*SourceCaughtUpEvent) Descriptor
deprecated
func (*SourceCaughtUpEvent) Descriptor() ([]byte, []int)
Deprecated: Use SourceCaughtUpEvent.ProtoReflect.Descriptor instead.
func (*SourceCaughtUpEvent) GetRef ¶
func (x *SourceCaughtUpEvent) GetRef() *SourceRef
func (*SourceCaughtUpEvent) ProtoMessage ¶
func (*SourceCaughtUpEvent) ProtoMessage()
func (*SourceCaughtUpEvent) ProtoReflect ¶
func (x *SourceCaughtUpEvent) ProtoReflect() protoreflect.Message
func (*SourceCaughtUpEvent) Reset ¶
func (x *SourceCaughtUpEvent) Reset()
func (*SourceCaughtUpEvent) String ¶
func (x *SourceCaughtUpEvent) String() string
type SourceDimension ¶
type SourceDimension struct {
// A key of the labels of a source. UTF-8, not empty, not repeated within a resource and at most
// 64 bytes.
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// What the UI shows for the dimension. UTF-8, at most 256 bytes.
Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
// contains filtered or unexported fields
}
func (*SourceDimension) Descriptor
deprecated
func (*SourceDimension) Descriptor() ([]byte, []int)
Deprecated: Use SourceDimension.ProtoReflect.Descriptor instead.
func (*SourceDimension) GetKey ¶
func (x *SourceDimension) GetKey() string
func (*SourceDimension) GetLabel ¶
func (x *SourceDimension) GetLabel() string
func (*SourceDimension) ProtoMessage ¶
func (*SourceDimension) ProtoMessage()
func (*SourceDimension) ProtoReflect ¶
func (x *SourceDimension) ProtoReflect() protoreflect.Message
func (*SourceDimension) Reset ¶
func (x *SourceDimension) Reset()
func (*SourceDimension) String ¶
func (x *SourceDimension) String() string
type SourceEntry ¶
type SourceEntry struct {
N uint32 `protobuf:"varint,1,opt,name=n,proto3" json:"n,omitempty"`
Origin uint32 `protobuf:"varint,2,opt,name=origin,proto3" json:"origin,omitempty"`
Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
Label string `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"`
Labels map[string]string `` /* 139-byte string literal not displayed */
// The source's lines carry the replay flag and a SourceCaughtUpEvent follows its replay.
Replay bool `protobuf:"varint,6,opt,name=replay,proto3" json:"replay,omitempty"`
// contains filtered or unexported fields
}
Names one source's instance. A batch carries an entry for each n it uses for the first time in the session. One n belongs to one (source, instance) and is never reused. An n starts at 1, and 0 is never sent.
func (*SourceEntry) Descriptor
deprecated
func (*SourceEntry) Descriptor() ([]byte, []int)
Deprecated: Use SourceEntry.ProtoReflect.Descriptor instead.
func (*SourceEntry) GetId ¶
func (x *SourceEntry) GetId() string
func (*SourceEntry) GetLabel ¶
func (x *SourceEntry) GetLabel() string
func (*SourceEntry) GetLabels ¶
func (x *SourceEntry) GetLabels() map[string]string
func (*SourceEntry) GetN ¶
func (x *SourceEntry) GetN() uint32
func (*SourceEntry) GetOrigin ¶
func (x *SourceEntry) GetOrigin() uint32
func (*SourceEntry) GetReplay ¶
func (x *SourceEntry) GetReplay() bool
func (*SourceEntry) ProtoMessage ¶
func (*SourceEntry) ProtoMessage()
func (*SourceEntry) ProtoReflect ¶
func (x *SourceEntry) ProtoReflect() protoreflect.Message
func (*SourceEntry) Reset ¶
func (x *SourceEntry) Reset()
func (*SourceEntry) String ¶
func (x *SourceEntry) String() string
type SourceInfo ¶
type SourceInfo struct {
Ref *SourceRef `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"`
Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"`
// Full display name: tooltip, copy, export.
Label string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"`
// Dimension values.
Labels map[string]string `` /* 139-byte string literal not displayed */
// True when the source is inside the default rule.
IsDefault bool `protobuf:"varint,5,opt,name=is_default,json=isDefault,proto3" json:"is_default,omitempty"`
State SourceState `protobuf:"varint,6,opt,name=state,proto3,enum=omniview.sdk.logs.v2.SourceState" json:"state,omitempty"`
WaitingReason WaitingReason `` /* 141-byte string literal not displayed */
FailureCode string `protobuf:"bytes,8,opt,name=failure_code,json=failureCode,proto3" json:"failure_code,omitempty"`
FailureMessage string `protobuf:"bytes,9,opt,name=failure_message,json=failureMessage,proto3" json:"failure_message,omitempty"`
// The session's selection covers the source.
Selected bool `protobuf:"varint,10,opt,name=selected,proto3" json:"selected,omitempty"`
// The source is named in the selection's include list.
Pinned bool `protobuf:"varint,11,opt,name=pinned,proto3" json:"pinned,omitempty"`
// Set only in the state ENDED, and only when the plugin said why the source has no stream, as a
// source kind does when it has none to give: public text, valid UTF-8 and at most 256 bytes.
// Empty for a stream that finished on its own.
EndedMessage string `protobuf:"bytes,12,opt,name=ended_message,json=endedMessage,proto3" json:"ended_message,omitempty"`
// contains filtered or unexported fields
}
One source as the catalog and the scheduler know it.
func (*SourceInfo) Descriptor
deprecated
func (*SourceInfo) Descriptor() ([]byte, []int)
Deprecated: Use SourceInfo.ProtoReflect.Descriptor instead.
func (*SourceInfo) GetEndedMessage ¶
func (x *SourceInfo) GetEndedMessage() string
func (*SourceInfo) GetFailureCode ¶
func (x *SourceInfo) GetFailureCode() string
func (*SourceInfo) GetFailureMessage ¶
func (x *SourceInfo) GetFailureMessage() string
func (*SourceInfo) GetIsDefault ¶
func (x *SourceInfo) GetIsDefault() bool
func (*SourceInfo) GetKind ¶
func (x *SourceInfo) GetKind() string
func (*SourceInfo) GetLabel ¶
func (x *SourceInfo) GetLabel() string
func (*SourceInfo) GetLabels ¶
func (x *SourceInfo) GetLabels() map[string]string
func (*SourceInfo) GetPinned ¶
func (x *SourceInfo) GetPinned() bool
func (*SourceInfo) GetRef ¶
func (x *SourceInfo) GetRef() *SourceRef
func (*SourceInfo) GetSelected ¶
func (x *SourceInfo) GetSelected() bool
func (*SourceInfo) GetState ¶
func (x *SourceInfo) GetState() SourceState
func (*SourceInfo) GetWaitingReason ¶
func (x *SourceInfo) GetWaitingReason() WaitingReason
func (*SourceInfo) ProtoMessage ¶
func (*SourceInfo) ProtoMessage()
func (*SourceInfo) ProtoReflect ¶
func (x *SourceInfo) ProtoReflect() protoreflect.Message
func (*SourceInfo) Reset ¶
func (x *SourceInfo) Reset()
func (*SourceInfo) String ¶
func (x *SourceInfo) String() string
type SourceOrigin ¶
type SourceOrigin struct {
ResourceKey string `protobuf:"bytes,1,opt,name=resource_key,json=resourceKey,proto3" json:"resource_key,omitempty"`
ResourceId string `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
ResourceData *v2.Value `protobuf:"bytes,3,opt,name=resource_data,json=resourceData,proto3" json:"resource_data,omitempty"`
Reference *v2.ResourceReference `protobuf:"bytes,4,opt,name=reference,proto3" json:"reference,omitempty"`
Route *v2.AccessRoute `protobuf:"bytes,5,opt,name=route,proto3" json:"route,omitempty"`
// contains filtered or unexported fields
}
What a session shows logs for. The index of an origin in the list is its origin number.
func (*SourceOrigin) Descriptor
deprecated
func (*SourceOrigin) Descriptor() ([]byte, []int)
Deprecated: Use SourceOrigin.ProtoReflect.Descriptor instead.
func (*SourceOrigin) GetReference ¶
func (x *SourceOrigin) GetReference() *v2.ResourceReference
func (*SourceOrigin) GetResourceData ¶
func (x *SourceOrigin) GetResourceData() *v2.Value
func (*SourceOrigin) GetResourceId ¶
func (x *SourceOrigin) GetResourceId() string
func (*SourceOrigin) GetResourceKey ¶
func (x *SourceOrigin) GetResourceKey() string
func (*SourceOrigin) GetRoute ¶
func (x *SourceOrigin) GetRoute() *v2.AccessRoute
func (*SourceOrigin) ProtoMessage ¶
func (*SourceOrigin) ProtoMessage()
func (*SourceOrigin) ProtoReflect ¶
func (x *SourceOrigin) ProtoReflect() protoreflect.Message
func (*SourceOrigin) Reset ¶
func (x *SourceOrigin) Reset()
func (*SourceOrigin) String ¶
func (x *SourceOrigin) String() string
type SourceRef ¶
type SourceRef struct {
Origin uint32 `protobuf:"varint,1,opt,name=origin,proto3" json:"origin,omitempty"`
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*SourceRef) Descriptor
deprecated
func (*SourceRef) ProtoMessage ¶
func (*SourceRef) ProtoMessage()
func (*SourceRef) ProtoReflect ¶
func (x *SourceRef) ProtoReflect() protoreflect.Message
type SourceRule ¶
type SourceRule struct {
DefaultsOnly bool `protobuf:"varint,1,opt,name=defaults_only,json=defaultsOnly,proto3" json:"defaults_only,omitempty"`
// Case-insensitive substring over label, id and dimension values.
Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
Where []*DimensionFilter `protobuf:"bytes,3,rep,name=where,proto3" json:"where,omitempty"`
// contains filtered or unexported fields
}
A source matches when every part that is set matches.
func (*SourceRule) Descriptor
deprecated
func (*SourceRule) Descriptor() ([]byte, []int)
Deprecated: Use SourceRule.ProtoReflect.Descriptor instead.
func (*SourceRule) GetDefaultsOnly ¶
func (x *SourceRule) GetDefaultsOnly() bool
func (*SourceRule) GetText ¶
func (x *SourceRule) GetText() string
func (*SourceRule) GetWhere ¶
func (x *SourceRule) GetWhere() []*DimensionFilter
func (*SourceRule) ProtoMessage ¶
func (*SourceRule) ProtoMessage()
func (*SourceRule) ProtoReflect ¶
func (x *SourceRule) ProtoReflect() protoreflect.Message
func (*SourceRule) Reset ¶
func (x *SourceRule) Reset()
func (*SourceRule) String ¶
func (x *SourceRule) String() string
type SourceSelection ¶
type SourceSelection struct {
// OR.
Rules []*SourceRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
Include []*SourceRef `protobuf:"bytes,2,rep,name=include,proto3" json:"include,omitempty"`
Exclude []*SourceRef `protobuf:"bytes,3,rep,name=exclude,proto3" json:"exclude,omitempty"`
// contains filtered or unexported fields
}
A source is selected when it is not excluded and is included or matches a rule. A selection without a rule is fixed: new sources do not join it. A selection with nothing in it selects nothing, and so does an absent one: an UpdateSelectionRequest that leaves the selection out deselects every source and stops every stream, and a CreateSessionRequest that leaves it out opens a session that streams nothing. The default selection is one rule with defaults_only set.
func (*SourceSelection) Descriptor
deprecated
func (*SourceSelection) Descriptor() ([]byte, []int)
Deprecated: Use SourceSelection.ProtoReflect.Descriptor instead.
func (*SourceSelection) GetExclude ¶
func (x *SourceSelection) GetExclude() []*SourceRef
func (*SourceSelection) GetInclude ¶
func (x *SourceSelection) GetInclude() []*SourceRef
func (*SourceSelection) GetRules ¶
func (x *SourceSelection) GetRules() []*SourceRule
func (*SourceSelection) ProtoMessage ¶
func (*SourceSelection) ProtoMessage()
func (*SourceSelection) ProtoReflect ¶
func (x *SourceSelection) ProtoReflect() protoreflect.Message
func (*SourceSelection) Reset ¶
func (x *SourceSelection) Reset()
func (*SourceSelection) String ¶
func (x *SourceSelection) String() string
type SourceState ¶
type SourceState int32
The state of one source, owned by the session scheduler.
const ( SourceState_SOURCE_STATE_UNSPECIFIED SourceState = 0 // In the catalog and not selected. SourceState_SOURCE_STATE_AVAILABLE SourceState = 1 // Selected and without a slot; waiting_reason says why. SourceState_SOURCE_STATE_WAITING SourceState = 2 // Selected and not openable yet (it has no instance). SourceState_SOURCE_STATE_PENDING SourceState = 3 // Holds a slot; its stream is being opened. SourceState_SOURCE_STATE_CONNECTING SourceState = 4 SourceState_SOURCE_STATE_STREAMING SourceState = 5 // Holds a slot; its stream broke with a transient failure and opens again. SourceState_SOURCE_STATE_RECONNECTING SourceState = 6 // The source has no stream to give: its stream finished on its own, or its kind said that it // has none and will have none (ended_message says why, and a system line "ended: <reason>" // follows the lines of the source). Not a failure; the source holds no slot and is not tried again. SourceState_SOURCE_STATE_ENDED SourceState = 7 // A permanent failure; failure_code and failure_message say which. SourceState_SOURCE_STATE_FAILED SourceState = 8 // Left the catalog. SourceState_SOURCE_STATE_REMOVED SourceState = 9 )
func (SourceState) Descriptor ¶
func (SourceState) Descriptor() protoreflect.EnumDescriptor
func (SourceState) Enum ¶
func (x SourceState) Enum() *SourceState
func (SourceState) EnumDescriptor
deprecated
func (SourceState) EnumDescriptor() ([]byte, []int)
Deprecated: Use SourceState.Descriptor instead.
func (SourceState) Number ¶
func (x SourceState) Number() protoreflect.EnumNumber
func (SourceState) String ¶
func (x SourceState) String() string
func (SourceState) Type ¶
func (SourceState) Type() protoreflect.EnumType
type SourceStateEvent ¶
type SourceStateEvent struct {
Source *SourceInfo `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
// contains filtered or unexported fields
}
func (*SourceStateEvent) Descriptor
deprecated
func (*SourceStateEvent) Descriptor() ([]byte, []int)
Deprecated: Use SourceStateEvent.ProtoReflect.Descriptor instead.
func (*SourceStateEvent) GetSource ¶
func (x *SourceStateEvent) GetSource() *SourceInfo
func (*SourceStateEvent) ProtoMessage ¶
func (*SourceStateEvent) ProtoMessage()
func (*SourceStateEvent) ProtoReflect ¶
func (x *SourceStateEvent) ProtoReflect() protoreflect.Message
func (*SourceStateEvent) Reset ¶
func (x *SourceStateEvent) Reset()
func (*SourceStateEvent) String ¶
func (x *SourceStateEvent) String() string
type StreamCommand ¶
type StreamCommand int32
const ( StreamCommand_STREAM_COMMAND_UNSPECIFIED StreamCommand = 0 // Same effect as CloseSession, on the open stream. StreamCommand_STREAM_COMMAND_CLOSE StreamCommand = 1 )
func (StreamCommand) Descriptor ¶
func (StreamCommand) Descriptor() protoreflect.EnumDescriptor
func (StreamCommand) Enum ¶
func (x StreamCommand) Enum() *StreamCommand
func (StreamCommand) EnumDescriptor
deprecated
func (StreamCommand) EnumDescriptor() ([]byte, []int)
Deprecated: Use StreamCommand.Descriptor instead.
func (StreamCommand) Number ¶
func (x StreamCommand) Number() protoreflect.EnumNumber
func (StreamCommand) String ¶
func (x StreamCommand) String() string
func (StreamCommand) Type ¶
func (StreamCommand) Type() protoreflect.EnumType
type StreamInput ¶
type StreamInput struct {
SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
Command StreamCommand `protobuf:"varint,2,opt,name=command,proto3,enum=omniview.sdk.logs.v2.StreamCommand" json:"command,omitempty"`
// contains filtered or unexported fields
}
func (*StreamInput) Descriptor
deprecated
func (*StreamInput) Descriptor() ([]byte, []int)
Deprecated: Use StreamInput.ProtoReflect.Descriptor instead.
func (*StreamInput) GetCommand ¶
func (x *StreamInput) GetCommand() StreamCommand
func (*StreamInput) GetSessionId ¶
func (x *StreamInput) GetSessionId() string
func (*StreamInput) ProtoMessage ¶
func (*StreamInput) ProtoMessage()
func (*StreamInput) ProtoReflect ¶
func (x *StreamInput) ProtoReflect() protoreflect.Message
func (*StreamInput) Reset ¶
func (x *StreamInput) Reset()
func (*StreamInput) String ¶
func (x *StreamInput) String() string
type StreamOutput ¶
type StreamOutput struct {
// The session the message is about. It can be a session that CreateSession has not returned
// for yet.
SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
// Types that are valid to be assigned to Payload:
//
// *StreamOutput_Batch
// *StreamOutput_SourceState
// *StreamOutput_CaughtUp
// *StreamOutput_Summary
// *StreamOutput_Ready
// *StreamOutput_Ended
Payload isStreamOutput_Payload `protobuf_oneof:"payload"`
// contains filtered or unexported fields
}
A message of the stream. A message with none of the members of the payload set carries a payload of a newer plugin that this reader does not know, and a reader ignores it: it is not an error, and it is not a batch with no lines.
func (*StreamOutput) Descriptor
deprecated
func (*StreamOutput) Descriptor() ([]byte, []int)
Deprecated: Use StreamOutput.ProtoReflect.Descriptor instead.
func (*StreamOutput) GetBatch ¶
func (x *StreamOutput) GetBatch() *LogLineBatch
func (*StreamOutput) GetCaughtUp ¶
func (x *StreamOutput) GetCaughtUp() *SourceCaughtUpEvent
func (*StreamOutput) GetEnded ¶
func (x *StreamOutput) GetEnded() *SessionEndedEvent
func (*StreamOutput) GetPayload ¶
func (x *StreamOutput) GetPayload() isStreamOutput_Payload
func (*StreamOutput) GetReady ¶
func (x *StreamOutput) GetReady() *SessionReadyEvent
func (*StreamOutput) GetSessionId ¶
func (x *StreamOutput) GetSessionId() string
func (*StreamOutput) GetSourceState ¶
func (x *StreamOutput) GetSourceState() *SourceStateEvent
func (*StreamOutput) GetSummary ¶
func (x *StreamOutput) GetSummary() *SummaryEvent
func (*StreamOutput) ProtoMessage ¶
func (*StreamOutput) ProtoMessage()
func (*StreamOutput) ProtoReflect ¶
func (x *StreamOutput) ProtoReflect() protoreflect.Message
func (*StreamOutput) Reset ¶
func (x *StreamOutput) Reset()
func (*StreamOutput) String ¶
func (x *StreamOutput) String() string
type StreamOutput_Batch ¶
type StreamOutput_Batch struct {
Batch *LogLineBatch `protobuf:"bytes,2,opt,name=batch,proto3,oneof"`
}
type StreamOutput_CaughtUp ¶
type StreamOutput_CaughtUp struct {
CaughtUp *SourceCaughtUpEvent `protobuf:"bytes,4,opt,name=caught_up,json=caughtUp,proto3,oneof"`
}
type StreamOutput_Ended ¶
type StreamOutput_Ended struct {
Ended *SessionEndedEvent `protobuf:"bytes,7,opt,name=ended,proto3,oneof"`
}
type StreamOutput_Ready ¶
type StreamOutput_Ready struct {
Ready *SessionReadyEvent `protobuf:"bytes,6,opt,name=ready,proto3,oneof"`
}
type StreamOutput_SourceState ¶
type StreamOutput_SourceState struct {
SourceState *SourceStateEvent `protobuf:"bytes,3,opt,name=source_state,json=sourceState,proto3,oneof"`
}
type StreamOutput_Summary ¶
type StreamOutput_Summary struct {
Summary *SummaryEvent `protobuf:"bytes,5,opt,name=summary,proto3,oneof"`
}
type SummaryEvent ¶
type SummaryEvent struct {
Summary *SessionSummary `protobuf:"bytes,1,opt,name=summary,proto3" json:"summary,omitempty"`
// contains filtered or unexported fields
}
The catalog or the counts changed. At most one every 250 ms.
func (*SummaryEvent) Descriptor
deprecated
func (*SummaryEvent) Descriptor() ([]byte, []int)
Deprecated: Use SummaryEvent.ProtoReflect.Descriptor instead.
func (*SummaryEvent) GetSummary ¶
func (x *SummaryEvent) GetSummary() *SessionSummary
func (*SummaryEvent) ProtoMessage ¶
func (*SummaryEvent) ProtoMessage()
func (*SummaryEvent) ProtoReflect ¶
func (x *SummaryEvent) ProtoReflect() protoreflect.Message
func (*SummaryEvent) Reset ¶
func (x *SummaryEvent) Reset()
func (*SummaryEvent) String ¶
func (x *SummaryEvent) String() string
type UnimplementedLogPluginServer ¶
type UnimplementedLogPluginServer struct {
}
UnimplementedLogPluginServer should be embedded to have forward compatible implementations.
func (UnimplementedLogPluginServer) CloseSession ¶
func (UnimplementedLogPluginServer) CloseSession(context.Context, *SessionByIdRequest) (*CloseSessionResponse, error)
func (UnimplementedLogPluginServer) CreateSession ¶
func (UnimplementedLogPluginServer) CreateSession(context.Context, *CreateSessionRequest) (*CreateSessionResponse, error)
func (UnimplementedLogPluginServer) GetSession ¶
func (UnimplementedLogPluginServer) GetSession(context.Context, *SessionByIdRequest) (*GetSessionResponse, error)
func (UnimplementedLogPluginServer) GetSupportedResources ¶
func (UnimplementedLogPluginServer) GetSupportedResources(context.Context, *emptypb.Empty) (*GetSupportedResourcesResponse, error)
func (UnimplementedLogPluginServer) ListFacetValues ¶
func (UnimplementedLogPluginServer) ListFacetValues(context.Context, *ListFacetValuesRequest) (*ListFacetValuesResponse, error)
func (UnimplementedLogPluginServer) ListSessions ¶
func (UnimplementedLogPluginServer) ListSessions(context.Context, *emptypb.Empty) (*ListSessionsResponse, error)
func (UnimplementedLogPluginServer) ListSources ¶
func (UnimplementedLogPluginServer) ListSources(context.Context, *ListSourcesRequest) (*ListSourcesResponse, error)
func (UnimplementedLogPluginServer) Stream ¶
func (UnimplementedLogPluginServer) Stream(LogPlugin_StreamServer) error
func (UnimplementedLogPluginServer) UpdateSelection ¶
func (UnimplementedLogPluginServer) UpdateSelection(context.Context, *UpdateSelectionRequest) (*UpdateSelectionResponse, error)
type UnsafeLogPluginServer ¶
type UnsafeLogPluginServer interface {
// contains filtered or unexported methods
}
UnsafeLogPluginServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LogPluginServer will result in compilation errors.
type UpdateSelectionRequest ¶
type UpdateSelectionRequest struct {
SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
// Replaces the selection. Absent: selects nothing, see SourceSelection.
Selection *SourceSelection `protobuf:"bytes,2,opt,name=selection,proto3" json:"selection,omitempty"`
// Zero keeps the current limit.
Limit int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateSelectionRequest) Descriptor
deprecated
func (*UpdateSelectionRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateSelectionRequest.ProtoReflect.Descriptor instead.
func (*UpdateSelectionRequest) GetLimit ¶
func (x *UpdateSelectionRequest) GetLimit() int32
func (*UpdateSelectionRequest) GetSelection ¶
func (x *UpdateSelectionRequest) GetSelection() *SourceSelection
func (*UpdateSelectionRequest) GetSessionId ¶
func (x *UpdateSelectionRequest) GetSessionId() string
func (*UpdateSelectionRequest) ProtoMessage ¶
func (*UpdateSelectionRequest) ProtoMessage()
func (*UpdateSelectionRequest) ProtoReflect ¶
func (x *UpdateSelectionRequest) ProtoReflect() protoreflect.Message
func (*UpdateSelectionRequest) Reset ¶
func (x *UpdateSelectionRequest) Reset()
func (*UpdateSelectionRequest) String ¶
func (x *UpdateSelectionRequest) String() string
type UpdateSelectionResponse ¶
type UpdateSelectionResponse struct {
// The revision the update produced; a summary with this revision or a later one
// reflects it.
Revision uint64 `protobuf:"varint,1,opt,name=revision,proto3" json:"revision,omitempty"`
// The limit after clamping.
Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateSelectionResponse) Descriptor
deprecated
func (*UpdateSelectionResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateSelectionResponse.ProtoReflect.Descriptor instead.
func (*UpdateSelectionResponse) GetLimit ¶
func (x *UpdateSelectionResponse) GetLimit() int32
func (*UpdateSelectionResponse) GetRevision ¶
func (x *UpdateSelectionResponse) GetRevision() uint64
func (*UpdateSelectionResponse) ProtoMessage ¶
func (*UpdateSelectionResponse) ProtoMessage()
func (*UpdateSelectionResponse) ProtoReflect ¶
func (x *UpdateSelectionResponse) ProtoReflect() protoreflect.Message
func (*UpdateSelectionResponse) Reset ¶
func (x *UpdateSelectionResponse) Reset()
func (*UpdateSelectionResponse) String ¶
func (x *UpdateSelectionResponse) String() string
type WaitingReason ¶
type WaitingReason int32
const ( WaitingReason_WAITING_REASON_UNSPECIFIED WaitingReason = 0 // Every slot of the session's limit is taken. WaitingReason_WAITING_REASON_LIMIT WaitingReason = 1 // Repeated failures hold promotions back; the summary carries the class. WaitingReason_WAITING_REASON_BREAKER WaitingReason = 2 )
func (WaitingReason) Descriptor ¶
func (WaitingReason) Descriptor() protoreflect.EnumDescriptor
func (WaitingReason) Enum ¶
func (x WaitingReason) Enum() *WaitingReason
func (WaitingReason) EnumDescriptor
deprecated
func (WaitingReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use WaitingReason.Descriptor instead.
func (WaitingReason) Number ¶
func (x WaitingReason) Number() protoreflect.EnumNumber
func (WaitingReason) String ¶
func (x WaitingReason) String() string
func (WaitingReason) Type ¶
func (WaitingReason) Type() protoreflect.EnumType