Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorTrackingError ¶
type ErrorTrackingError struct { ProjectID uint64 `ch:"project_id"` Fingerprint uint32 `ch:"fingerprint"` Name string `ch:"name"` Description string `ch:"description"` Actor string `ch:"actor"` EventCount uint64 `ch:"event_count"` ApproximatedUserCount uint64 `ch:"approximated_user_count"` LastSeenAt time.Time `ch:"last_seen_at"` FirstSeenAt time.Time `ch:"first_seen_at"` Status uint8 `ch:"status"` Ignored bool `ch:"ignored"` }
ErrorTrackingError maps to the corresponding table in the clickhouse database.
type ErrorTrackingErrorEvent ¶
type ErrorTrackingErrorEvent struct { ProjectID uint64 `ch:"project_id"` Fingerprint uint32 `ch:"fingerprint"` Name string `ch:"name"` Description string `ch:"description"` Actor string `ch:"actor"` Environment string `ch:"environment"` Platform string `ch:"platform"` Level string `ch:"level"` UserIdentifier string `ch:"user_identifier"` Payload string `ch:"payload"` OccurredAt time.Time `ch:"occurred_at"` }
ErrorTrackingErrorEvent maps to the corresponding table in the clickhouse database.
func NewErrorTrackingErrorEvent ¶
func NewErrorTrackingErrorEvent(projectID uint64, e *types.Event, payload []byte) *ErrorTrackingErrorEvent
NewErrorTrackingErrorEvent is a helper that returns a ErrorTrackingErrorEvent from the given parameters and calculates a fingerprint using a 64-bit xxHash algorithm form the error event name, actor and platform.
func (ErrorTrackingErrorEvent) AsInsertStmt ¶
func (e ErrorTrackingErrorEvent) AsInsertStmt(tz *time.Location) string
type ErrorTrackingErrorStatus ¶
type ErrorTrackingErrorStatus struct { ProjectID uint64 `ch:"project_id"` Fingerprint uint32 `ch:"fingerprint"` // Status is a code: // 0 - unresolved // 1 - resolved Status uint8 `ch:"status"` UserID uint64 `ch:"user_id"` // Actor is a code: // 0 - status changed by user // 1 - status changed by system (new event happened after resolve) // 2 - status changed by computer (not a user) Actor uint8 `ch:"actor"` UpdatedAt time.Time `ch:"updated_at"` }
ErrorTrackingErrorStatus maps to the corresponding table in the clickhouse database.
func (ErrorTrackingErrorStatus) AsInsertStmt ¶
func (e ErrorTrackingErrorStatus) AsInsertStmt(tz *time.Location) string
type ErrorTrackingIgnoredError ¶
type ErrorTrackingIgnoredError struct { ProjectID uint64 `ch:"project_id"` Fingerprint uint32 `ch:"fingerprint"` UserID uint64 `ch:"user_id"` UpdatedAt time.Time `ch:"updated_at"` }
ErrorTrackingIgnoredError maps to the corresponding table in the clickhouse database.
func (ErrorTrackingIgnoredError) AsInsertStmt ¶
func (e ErrorTrackingIgnoredError) AsInsertStmt(tz *time.Location) string
type ErrorTrackingMessageEvent ¶
type ErrorTrackingMessageEvent struct { EventID string `json:"event_id,omitempty" ch:"event_id"` ProjectID uint64 `json:"project_id" ch:"project_id"` Timestamp time.Time `json:"timestamp" ch:"timestamp"` IsDeleted uint8 `ch:"is_deleted"` Fingerprint []byte `json:"fingerprint" ch:"fingerprint"` Environment string `json:"environment,omitempty" ch:"environment"` Level string `json:"level,omitempty" ch:"level"` Message string `json:"message,omitempty" ch:"message"` Actor string `ch:"actor"` Platform string `json:"platform,omitempty" ch:"platform"` Release string `json:"release,omitempty" ch:"release"` ServerName string `json:"server_name,omitempty" ch:"server_name"` // sdk and stacktrace_frames are left out for now Payload string `json:"payload,omitempty" ch:"payload"` }
ErrorTrackingMessageEvent maps to the corresponding table in the clickhouse database.
func NewErrorTrackingMessageEvent ¶
func NewErrorTrackingMessageEvent(projectID uint64, e *types.Event, payload []byte) *ErrorTrackingMessageEvent
NewErrorTrackingMessageEvent is a helper that returns an ErrorTrackingMessageEvent from the given parameters and calculates a fingerprint using a 64-bit xxHash algorithm form the message event message and platform.
func (ErrorTrackingMessageEvent) AsInsertStmt ¶
func (e ErrorTrackingMessageEvent) AsInsertStmt(tz *time.Location) string
type ErrorTrackingSession ¶
type ErrorTrackingSession struct { ProjectID uint64 `json:"project_id" ch:"project_id"` SessionID string `json:"session_id" ch:"session_id"` UserID string `json:"user_id" ch:"user_id"` Init uint8 `json:"init" ch:"init"` Payload string `json:"payload,omitempty" ch:"payload"` Started time.Time `json:"started" ch:"started"` OccurredAt time.Time `json:"occurred_at" ch:"occurred_at"` Duration float64 `json:"duration,omitempty" ch:"duration"` Status string `json:"status,omitempty" ch:"status"` Release string `json:"release,omitempty" ch:"release"` Environment string `json:"environment,omitempty" ch:"environment"` }
ErrorTrackingSession maps to the corresponding table in the clickhouse database.
func NewErrorTrackingSession ¶
func NewErrorTrackingSession(projectID uint64, e *types.Session, payload []byte) *ErrorTrackingSession
func (ErrorTrackingSession) AsInsertStmt ¶
func (e ErrorTrackingSession) AsInsertStmt(tz *time.Location) string