Documentation
¶
Index ¶
- Constants
- Variables
- func GetUseSeqQL(ctx context.Context) string
- func GetUserKey(ctx context.Context) (string, error)
- func NewErrInvalidRequestField(err string) error
- func NewErrNotFound(obj string) error
- func NewErrPermissionDenied(operation string) error
- type AsyncSearchInfo
- type CreateDashboardRequest
- type Dashboard
- type DashboardInfo
- type DashboardInfoWithOwner
- type DashboardInfos
- type DashboardInfosWithOwner
- type DeleteDashboardRequest
- type DeleteFavoriteQueryRequest
- type ErrorGroup
- type ErrorGroupCount
- type ErrorGroupCounts
- type ErrorGroupDetails
- type ErrorGroupDistribution
- type ErrorGroupDistributions
- type ErrorGroupsOrder
- type ErrorHistBucket
- type ExportInfo
- type ExportStatus
- type FavoriteQueries
- type FavoriteQuery
- type GetAllDashboardsRequest
- type GetAsyncSearchesListRequest
- type GetDashboardsRequest
- type GetErrorGroupDetailsRequest
- type GetErrorGroupReleasesRequest
- type GetErrorGroupsRequest
- type GetErrorHistRequest
- type GetFavoriteQueriesRequest
- type GetOrCreateFavoriteQueryRequest
- type GetOrCreateUserProfileRequest
- type GetServicesRequest
- type GetUserDashboardsRequest
- type LogColumns
- type SaveAsyncSearchRequest
- type SearchDashboardsFilter
- type SearchDashboardsRequest
- type Size
- type StartExportRequest
- type StartExportResponse
- type UpdateDashboardRequest
- type UpdateUserProfileRequest
- type UseSeqQL
- type UserKey
- type UserProfile
Constants ¶
View Source
const (
UseSeqQLHeader = "use-seq-ql"
)
Variables ¶
View Source
var ( ErrUnauthenticated = errors.New("unauthenticated") ErrBadUserKeyValueType = errors.New("invalid JWT token") )
Functions ¶
func GetUseSeqQL ¶
GetUseSeqQL returns header `use-seq-ql` from context.
func GetUserKey ¶
GetUserKey returns username from context.
func NewErrNotFound ¶
func NewErrPermissionDenied ¶
Types ¶
type AsyncSearchInfo ¶
type CreateDashboardRequest ¶
type DashboardInfo ¶
type DashboardInfoWithOwner ¶
type DashboardInfoWithOwner struct {
DashboardInfo
OwnerName string
}
type DashboardInfos ¶
type DashboardInfos []DashboardInfo
type DashboardInfosWithOwner ¶
type DashboardInfosWithOwner []DashboardInfoWithOwner
type DeleteDashboardRequest ¶
type ErrorGroup ¶
type ErrorGroupCount ¶
type ErrorGroupCounts ¶
type ErrorGroupCounts struct {
ByEnv ErrorGroupCount
ByRelease ErrorGroupCount
}
type ErrorGroupDetails ¶
type ErrorGroupDistribution ¶
type ErrorGroupDistributions ¶
type ErrorGroupDistributions struct {
ByEnv []ErrorGroupDistribution
ByRelease []ErrorGroupDistribution
}
type ErrorGroupsOrder ¶
type ErrorGroupsOrder int
const ( OrderFrequent ErrorGroupsOrder = iota OrderLatest OrderOldest )
type ErrorHistBucket ¶
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 ¶
func (fqs FavoriteQueries) ToProto() []*userprofile.GetFavoriteQueriesResponse_Query
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 ¶
func (fq FavoriteQuery) ToProto() *userprofile.GetFavoriteQueriesResponse_Query
type GetAllDashboardsRequest ¶
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 GetErrorGroupsRequest ¶
type GetErrorHistRequest ¶
type GetFavoriteQueriesRequest ¶
type GetFavoriteQueriesRequest struct {
ProfileID int64 `json:"profile_id"`
}
type GetOrCreateUserProfileRequest ¶
type GetOrCreateUserProfileRequest struct {
UserName string `json:"user_name"`
}
type GetServicesRequest ¶
type LogColumns ¶
type LogColumns struct {
LogColumns []string `json:"log_columns"`
}
type SaveAsyncSearchRequest ¶
type SearchDashboardsFilter ¶
type SearchDashboardsFilter struct {
OwnerName *string
}
type SearchDashboardsRequest ¶
type SearchDashboardsRequest struct {
Query string
Limit int
Offset int
Filter *SearchDashboardsFilter
}
type StartExportRequest ¶
type StartExportResponse ¶
type StartExportResponse struct {
SessionID string
}
type UpdateDashboardRequest ¶
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 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 ¶
func (up UserProfile) ToProto() *userprofile.GetUserProfileResponse
Click to show internal directories.
Click to hide internal directories.