types

package
v0.43.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UseSeqQLHeader = "use-seq-ql"
)

Variables

View Source
var (
	ErrUnauthenticated     = errors.New("unauthenticated")
	ErrBadUserKeyValueType = errors.New("invalid JWT token")
)
View Source
var (
	ErrEmptyUpdateRequest    = errors.New("empty update request")
	ErrInvalidRequestField   = errors.New("invalid request field")
	ErrNotFound              = errors.New("not found")
	ErrPermissionDenied      = errors.New("permission denied")
	ErrAsyncSearchesDisabled = errors.New("async searches disabled")
)

Functions

func GetUseSeqQL

func GetUseSeqQL(ctx context.Context) string

GetUseSeqQL returns header `use-seq-ql` from context.

func GetUserKey

func GetUserKey(ctx context.Context) (string, error)

GetUserKey returns username from context.

func NewErrInvalidRequestField

func NewErrInvalidRequestField(err string) error

func NewErrNotFound

func NewErrNotFound(obj string) error

func NewErrPermissionDenied

func NewErrPermissionDenied(operation string) error

Types

type AsyncSearchInfo

type AsyncSearchInfo struct {
	SearchID  string
	OwnerID   int64
	OwnerName string
	CreatedAt time.Time
	ExpiresAt time.Time
}

type CreateDashboardRequest

type CreateDashboardRequest struct {
	ProfileID int64
	Name      string
	Meta      string
}

type Dashboard

type Dashboard struct {
	Name      string
	Meta      string
	OwnerName string
}

type DashboardInfo

type DashboardInfo struct {
	UUID string
	Name string
}

type DashboardInfoWithOwner

type DashboardInfoWithOwner struct {
	DashboardInfo
	OwnerName string
}

type DashboardInfos

type DashboardInfos []DashboardInfo

type DashboardInfosWithOwner

type DashboardInfosWithOwner []DashboardInfoWithOwner

type DeleteDashboardRequest

type DeleteDashboardRequest struct {
	UUID      string
	ProfileID int64
}

type DeleteFavoriteQueryRequest

type DeleteFavoriteQueryRequest struct {
	ID        int64 `json:"id"`
	ProfileID int64 `json:"profile_id"`
}

type ErrorGroup

type ErrorGroup struct {
	Hash        uint64
	Message     string
	SeenTotal   uint64
	FirstSeenAt time.Time
	LastSeenAt  time.Time
	Source      string
}

type ErrorGroupCount

type ErrorGroupCount map[string]uint64

type ErrorGroupCounts

type ErrorGroupCounts struct {
	ByEnv     ErrorGroupCount
	ByRelease ErrorGroupCount
}

type ErrorGroupDetails

type ErrorGroupDetails struct {
	GroupHash     uint64
	Message       string
	SeenTotal     uint64
	FirstSeenAt   time.Time
	LastSeenAt    time.Time
	Source        string
	LogTags       map[string]string
	Distributions ErrorGroupDistributions
}

type ErrorGroupDistribution

type ErrorGroupDistribution struct {
	Value   string
	Percent uint64
}

type ErrorGroupDistributions

type ErrorGroupDistributions struct {
	ByEnv     []ErrorGroupDistribution
	ByRelease []ErrorGroupDistribution
}

type ErrorGroupsOrder

type ErrorGroupsOrder int
const (
	OrderFrequent ErrorGroupsOrder = iota
	OrderLatest
	OrderOldest
)

type ErrorHistBucket

type ErrorHistBucket struct {
	Time  time.Time
	Count uint64
}

type ExportInfo

type ExportInfo struct {
	ID       string
	UserID   string
	Status   ExportStatus
	Error    string
	Progress float64

	CreatedAt  time.Time
	UpdatedAt  time.Time
	StartedAt  time.Time
	FinishedAt time.Time

	Links          string
	PartIsUploaded []bool

	TotalSize Size

	FileStorePathPrefix string

	From       time.Time
	To         time.Time
	Query      string
	Window     time.Duration
	BatchSize  uint64
	PartLength time.Duration
}

type ExportStatus

type ExportStatus int
const (
	ExportStatusUnspecified ExportStatus = iota
	ExportStatusStart
	ExportStatusCancel
	ExportStatusFail
	ExportStatusFinish
)

func (ExportStatus) String

func (s ExportStatus) String() string

type FavoriteQueries

type FavoriteQueries []FavoriteQuery

func (FavoriteQueries) ToProto

type FavoriteQuery

type FavoriteQuery struct {
	ID           int64  `json:"id"`
	Query        string `json:"query"`
	Name         string `json:"name"`
	RelativeFrom uint64 `json:"relative_from"`
}

Favorite Queries

func (FavoriteQuery) ToProto

type GetAllDashboardsRequest

type GetAllDashboardsRequest struct {
	Limit  int
	Offset int
}

type GetAsyncSearchesListRequest

type GetAsyncSearchesListRequest struct {
	Limit  int32
	Offset int32
	Owner  *string
}

type GetDashboardsRequest

type GetDashboardsRequest struct {
	ProfileID int64
}

temporarily to maintain compatibility

type GetErrorGroupDetailsRequest

type GetErrorGroupDetailsRequest struct {
	Service   string
	GroupHash uint64
	Env       *string
	Source    *string
	Release   *string
}

func (GetErrorGroupDetailsRequest) IsFullyFilled

func (r GetErrorGroupDetailsRequest) IsFullyFilled() bool

type GetErrorGroupReleasesRequest

type GetErrorGroupReleasesRequest struct {
	Service   string
	GroupHash *uint64
	Env       *string
}

type GetErrorGroupsRequest

type GetErrorGroupsRequest struct {
	Service   string
	Env       *string
	Source    *string
	Release   *string
	Duration  *time.Duration
	Limit     uint32
	Offset    uint32
	Order     ErrorGroupsOrder
	WithTotal bool
}

type GetErrorHistRequest

type GetErrorHistRequest struct {
	Service   string
	GroupHash *uint64
	Env       *string
	Source    *string
	Release   *string
	Duration  *time.Duration
}

type GetFavoriteQueriesRequest

type GetFavoriteQueriesRequest struct {
	ProfileID int64 `json:"profile_id"`
}

type GetOrCreateFavoriteQueryRequest

type GetOrCreateFavoriteQueryRequest struct {
	ProfileID    int64  `json:"profile_id"`
	Query        string `json:"query"`
	Name         string `json:"name"`
	RelativeFrom uint64 `json:"relative_from"`
}

type GetOrCreateUserProfileRequest

type GetOrCreateUserProfileRequest struct {
	UserName string `json:"user_name"`
}

type GetServicesRequest

type GetServicesRequest struct {
	Query  string
	Env    *string
	Limit  uint32
	Offset uint32
}

type GetUserDashboardsRequest

type GetUserDashboardsRequest struct {
	ProfileID int64
	Limit     int
	Offset    int
}

type LogColumns

type LogColumns struct {
	LogColumns []string `json:"log_columns"`
}

type SaveAsyncSearchRequest

type SaveAsyncSearchRequest struct {
	SearchID  string
	OwnerID   int64
	ExpiresAt time.Time
}

type SearchDashboardsFilter

type SearchDashboardsFilter struct {
	OwnerName *string
}

type SearchDashboardsRequest

type SearchDashboardsRequest struct {
	Query  string
	Limit  int
	Offset int
	Filter *SearchDashboardsFilter
}

type Size

type Size struct {
	Unpacked int
	Packed   int
}

type StartExportRequest

type StartExportRequest struct {
	Query  string
	From   time.Time
	To     time.Time
	Window time.Duration
	Name   string
}

type StartExportResponse

type StartExportResponse struct {
	SessionID string
}

type UpdateDashboardRequest

type UpdateDashboardRequest struct {
	UUID      string
	ProfileID int64
	Name      *string
	Meta      *string
}

func (UpdateDashboardRequest) IsEmpty

func (ur UpdateDashboardRequest) IsEmpty() bool

type UpdateUserProfileRequest

type UpdateUserProfileRequest struct {
	UserName          string      `json:"user_name"`
	Timezone          *string     `json:"timezone"`
	OnboardingVersion *string     `json:"onboarding_version"`
	LogColumns        *LogColumns `json:"log_columns"`
}

func (UpdateUserProfileRequest) IsEmpty

func (ur UpdateUserProfileRequest) IsEmpty() bool

type UseSeqQL

type UseSeqQL struct{}

type UserKey

type UserKey struct{}

type UserProfile

type UserProfile struct {
	ID                int64      `json:"_id"`
	UserName          string     `json:"user_name"`
	Timezone          string     `json:"timezone"`
	OnboardingVersion string     `json:"onboarding_version"`
	LogColumns        LogColumns `json:"log_columns"`
}

User Profile

func (UserProfile) ToProto

Jump to

Keyboard shortcuts

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