repositories

package
v1.7.21 Latest Latest
Warning

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

Go to latest
Published: May 15, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AiTraceRepository = aiTraceRepository{}
View Source
var EndpointRepository = endpointRepository{}
View Source
var ExceptionStackTraceRepository = exceptionStackTraceRepository{}
View Source
var FiredNotificationRepository = firedNotificationRepository{}
View Source
var InvitationRepository = invitationRepository{}
View Source
var LogRecordRepository = logRecordRepository{}
View Source
var MetricPointRepository = metricPointRepository{}
View Source
var MetricRegistryRepository = metricRegistryRepository{}
View Source
var NotificationChannelRepository = notificationChannelRepository{}
View Source
var NotificationHistoryRepository = notificationHistoryRepository{}
View Source
var NotificationRuleRepository = notificationRuleRepository{}
View Source
var OrganizationRepository = organizationRepository{}
View Source
var ProjectRepository = projectRepository{}
View Source
var SessionRecordingRepository = sessionRecordingRepository{}
View Source
var SessionRepository = sessionRepository{}
View Source
var SourceMapRepository = sourceMapRepository{}
View Source
var SpanRepository = spanRepository{}
View Source
var TaskRepository = taskRepository{}
View Source
var UserRepository = userRepository{}
View Source
var WidgetGroupRepository = widgetGroupRepository{}

Functions

func ComputeImpactReason

func ComputeImpactReason(
	endpoint string,
	total, satisfiedCount, toleratingCount, badCount, clientErrorCount uint64,
	p99Ns float64,
	offsetMs uint32,
) string

Types

type FiredNotification

type FiredNotification struct {
	ProjectId   uuid.UUID
	RuleId      int
	RuleType    string
	RuleName    string
	ChannelType string
	ChannelName string
	Severity    string
	Subject     string
	Body        string
	Status      string
	ErrorMsg    string
	Endpoint    string
	FiredAt     time.Time
}

type LogAttributeFilter

type LogAttributeFilter struct {
	Scope string
	Key   string
	Value string
}

LogAttributeFilter — see the ClickHouse-side definition. Kept identical here so callers don't need a build-tag guard.

type LogSearchParams

type LogSearchParams struct {
	ProjectId        uuid.UUID
	FromDate         time.Time
	ToDate           time.Time
	Search           string
	SearchType       string
	MinSeverity      uint8
	ServiceName      string
	TraceId          string
	TraceIds         []string
	AttributeFilters []LogAttributeFilter
	OrderBy          string
	SortDirection    string
	Page             int
	PageSize         int
}

type MetricRegistrationEntry

type MetricRegistrationEntry struct {
	Name       string
	Unit       string
	MetricType string
}

type SQLiteJSONMap

type SQLiteJSONMap map[string]string

SQLiteJSONMap handles scanning map[string]string from SQLite TEXT JSON columns and serializing map[string]string for SQLite inserts.

func NewSQLiteJSONMap

func NewSQLiteJSONMap(m map[string]string) SQLiteJSONMap

func (*SQLiteJSONMap) Scan

func (m *SQLiteJSONMap) Scan(src interface{}) error

func (SQLiteJSONMap) Value

func (m SQLiteJSONMap) Value() (driver.Value, error)

type SQLiteTime

type SQLiteTime struct {
	time.Time
}

SQLiteTime handles scanning time.Time from SQLite DATETIME text columns and serializing time.Time for SQLite inserts.

func NewSQLiteTime

func NewSQLiteTime(t time.Time) SQLiteTime

func (*SQLiteTime) Scan

func (t *SQLiteTime) Scan(src interface{}) error

func (SQLiteTime) Value

func (t SQLiteTime) Value() (driver.Value, error)

type SessionAttributeFilter

type SessionAttributeFilter struct {
	Key   string
	Value string
}

SessionAttributeFilter narrows the sessions list by an exact key=value match against the JSON `attributes` blob. Defined in a tag-neutral file so both the ClickHouse and SQLite repository builds see the same type.

Jump to

Keyboard shortcuts

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