Documentation ¶
Index ¶
- Constants
- func AssertRecordFound(result *gorm.DB) error
- func CacheServiceKey(name string, projectID int) string
- type ListServicesParams
- type Store
- func (store *Store) BuildIssueTitleAndDescription(title string, description *string) (string, string)
- func (store *Store) CreateErrorGroupActivityLog(ctx context.Context, params model.ErrorGroupActivityLog) error
- func (store *Store) DeleteServiceCache(ctx context.Context, name string, projectID int) error
- func (store *Store) EnhanceTrace(ctx context.Context, trace *privateModel.ErrorTrace, service *model.Service, ...) (*privateModel.ErrorTrace, bool, bool)
- func (store *Store) EnhanceTraceWithGitHub(ctx context.Context, trace *privateModel.ErrorTrace, service *model.Service, ...) (*privateModel.ErrorTrace, error)
- func (store *Store) EnhancedStackTrace(ctx context.Context, stackTrace string, workspace *model.Workspace, ...) (*string, []*privateModel.ErrorTrace, error)
- func (store *Store) ExpandedStackTrace(ctx context.Context, lines []string, lineNumber int) (*string, *string, *string, error)
- func (store *Store) FetchFileFromGitHub(ctx context.Context, trace *privateModel.ErrorTrace, service *model.Service, ...) (*string, error)
- func (store *Store) FindProjectsWithAutoResolveSetting(ctx context.Context) ([]*model.ProjectFilterSettings, error)
- func (store *Store) FindService(ctx context.Context, projectID int, name string) (*model.Service, error)
- func (store *Store) GetAllWorkspaceSettings(ctx context.Context, workspaceID int) (*model.AllWorkspaceSettings, error)
- func (store *Store) GetAllWorkspaceSettingsByProject(ctx context.Context, projectID int) (*model.AllWorkspaceSettings, error)
- func (store *Store) GetErrorGroupActivityLogs(ctx context.Context, errorGroupID int) ([]model.ErrorGroupActivityLog, error)
- func (store *Store) GetOAuth(ctx context.Context, id string) (*model.OAuthClientStore, error)
- func (store *Store) GetProject(ctx context.Context, id int) (*model.Project, error)
- func (store *Store) GetProjectAssetTransform(ctx context.Context, projectID int, scheme string) (*model.ProjectAssetTransform, error)
- func (store *Store) GetProjectFilterSettings(ctx context.Context, projectID int, opts ...redis.Option) (*model.ProjectFilterSettings, error)
- func (store *Store) GetSession(ctx context.Context, sessionID int) (*model.Session, error)
- func (store *Store) GetSessionFromSecureID(ctx context.Context, secureID string) (*model.Session, error)
- func (store *Store) GetSystemConfiguration(ctx context.Context) (*model.SystemConfiguration, error)
- func (store *Store) GetWorkspace(ctx context.Context, id int) (*model.Workspace, error)
- func (store *Store) GetWorkspaceAdminCount(ctx context.Context, id int) (int64, error)
- func (store *Store) GitHubEnhancedStackTrace(ctx context.Context, stackTrace []*privateModel.ErrorTrace, ...) ([]*privateModel.ErrorTrace, error)
- func (store *Store) GitHubFilePath(ctx context.Context, fileName string, buildPrefix *string, ...) string
- func (store *Store) GitHubGitSHA(ctx context.Context, gitHubRepoPath string, serviceVersion string, ...) (*string, error)
- func (store *Store) ListErrorObjects(ctx context.Context, ids []int64, totalCount int64) (privateModel.ErrorObjectResults, error)
- func (store *Store) ListServices(ctx context.Context, project model.Project, params ListServicesParams) (privateModel.ServiceConnection, error)
- func (store *Store) StructuredStackTrace(ctx context.Context, stackTrace string) ([]*privateModel.ErrorTrace, error)
- func (store *Store) UpdateAllWorkspaceSettings(ctx context.Context, workspaceID int, ...) (*model.AllWorkspaceSettings, error)
- func (store *Store) UpdateErrorGroupStateByAdmin(ctx context.Context, admin model.Admin, params UpdateErrorGroupParams) (*model.ErrorGroup, error)
- func (store *Store) UpdateErrorGroupStateBySystem(ctx context.Context, params UpdateErrorGroupParams) error
- func (store *Store) UpdateProjectFilterSettings(ctx context.Context, projectID int, updates UpdateProjectFilterSettingsParams) (*model.ProjectFilterSettings, error)
- func (store *Store) UpdateServiceErrorState(ctx context.Context, serviceID int, errorDetails []string) error
- func (store *Store) UpsertService(ctx context.Context, project model.Project, name string, ...) (*model.Service, error)
- type UpdateErrorGroupParams
- type UpdateProjectFilterSettingsParams
Constants ¶
View Source
const GITHUB_ERROR_CONTEXT_LINES = 5
View Source
const MAX_ERROR_KILLSWITCH = 5
View Source
const MAX_ISSUE_TITLE_LENGTH = 200
View Source
const SERVICE_LIMIT = 10
Number of results per page
Variables ¶
This section is empty.
Functions ¶
func AssertRecordFound ¶
func CacheServiceKey ¶
Types ¶
type ListServicesParams ¶
type Store ¶
type Store struct { DB *gorm.DB Redis *redis.Client IntegrationsClient *integrations.Client StorageClient storage.Client DataSyncQueue kafka_queue.MessageQueue ClickhouseClient *clickhouse.Client }
func NewStore ¶
func NewStore(db *gorm.DB, redis *redis.Client, integrationsClient *integrations.Client, storageClient storage.Client, dataSyncQueue kafka_queue.MessageQueue, clickhouseClient *clickhouse.Client) *Store
func (*Store) BuildIssueTitleAndDescription ¶
func (*Store) CreateErrorGroupActivityLog ¶
func (*Store) DeleteServiceCache ¶
func (*Store) EnhanceTrace ¶
func (store *Store) EnhanceTrace(ctx context.Context, trace *privateModel.ErrorTrace, service *model.Service, serviceVersion string, ignoredFiles []string, gitHubClient github.ClientInterface) (*privateModel.ErrorTrace, bool, bool)
returns (1) trace to be use, (2) if the trace was attempted to be enhanced, and (3) if the trace was successfully enhanced
func (*Store) EnhanceTraceWithGitHub ¶
func (store *Store) EnhanceTraceWithGitHub(ctx context.Context, trace *privateModel.ErrorTrace, service *model.Service, serviceVersion string, fileName string, gitHubClient github.ClientInterface) (*privateModel.ErrorTrace, error)
func (*Store) EnhancedStackTrace ¶
func (store *Store) EnhancedStackTrace(ctx context.Context, stackTrace string, workspace *model.Workspace, project *model.Project, errorObj *model.ErrorObject, validateService *model.Service) (*string, []*privateModel.ErrorTrace, error)
should always return error stacktrace, returned error will be logged, return enhanced stacktrace string when successfully enhanced
func (*Store) ExpandedStackTrace ¶
func (*Store) FetchFileFromGitHub ¶
func (store *Store) FetchFileFromGitHub(ctx context.Context, trace *privateModel.ErrorTrace, service *model.Service, fileName string, serviceVersion string, gitHubClient github.ClientInterface) (*string, error)
func (*Store) FindProjectsWithAutoResolveSetting ¶
func (*Store) FindService ¶
func (*Store) GetAllWorkspaceSettings ¶
func (*Store) GetAllWorkspaceSettingsByProject ¶
func (*Store) GetErrorGroupActivityLogs ¶
func (*Store) GetProject ¶
func (*Store) GetProjectAssetTransform ¶
func (*Store) GetProjectFilterSettings ¶
func (*Store) GetSession ¶
func (*Store) GetSessionFromSecureID ¶
func (*Store) GetSystemConfiguration ¶
func (*Store) GetWorkspace ¶
func (*Store) GetWorkspaceAdminCount ¶
func (*Store) GitHubEnhancedStackTrace ¶
func (store *Store) GitHubEnhancedStackTrace(ctx context.Context, stackTrace []*privateModel.ErrorTrace, workspace *model.Workspace, project *model.Project, errorObj *model.ErrorObject, validateService *model.Service) ([]*privateModel.ErrorTrace, error)
func (*Store) GitHubFilePath ¶
func (*Store) GitHubGitSHA ¶
func (*Store) ListErrorObjects ¶
func (store *Store) ListErrorObjects(ctx context.Context, ids []int64, totalCount int64) (privateModel.ErrorObjectResults, error)
func (*Store) ListServices ¶
func (store *Store) ListServices(ctx context.Context, project model.Project, params ListServicesParams) (privateModel.ServiceConnection, error)
func (*Store) StructuredStackTrace ¶
func (store *Store) StructuredStackTrace(ctx context.Context, stackTrace string) ([]*privateModel.ErrorTrace, error)
func (*Store) UpdateAllWorkspaceSettings ¶
func (*Store) UpdateErrorGroupStateByAdmin ¶
func (store *Store) UpdateErrorGroupStateByAdmin(ctx context.Context, admin model.Admin, params UpdateErrorGroupParams) (*model.ErrorGroup, error)
func (*Store) UpdateErrorGroupStateBySystem ¶
func (store *Store) UpdateErrorGroupStateBySystem(ctx context.Context, params UpdateErrorGroupParams) error
func (*Store) UpdateProjectFilterSettings ¶
func (store *Store) UpdateProjectFilterSettings(ctx context.Context, projectID int, updates UpdateProjectFilterSettingsParams) (*model.ProjectFilterSettings, error)
func (*Store) UpdateServiceErrorState ¶
type UpdateErrorGroupParams ¶
type UpdateErrorGroupParams struct { ID int State privateModel.ErrorState SnoozedUntil *time.Time }
type UpdateProjectFilterSettingsParams ¶
type UpdateProjectFilterSettingsParams struct { AutoResolveStaleErrorsDayInterval *int FilterSessionsWithoutError *bool Sampling *modelInputs.SamplingInput }
Click to show internal directories.
Click to hide internal directories.