api

package
v0.0.0-...-de44970 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2017 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GroupStatusChoices = map[string]int{
	"resolved":              models.GroupStatusResolved,
	"unresolved":            models.GroupStatusUnresolved,
	"ignored":               models.GroupStatusIgnored,
	"resolvedInNextRelease": models.GroupStatusUnresolved,

	"muted": models.GroupStatusIgnored,
}

TODO use const modifier

Functions

func BroadcastIndexGetEndpoint

func BroadcastIndexGetEndpoint(c echo.Context) error

func BroadcastIndexPutEndpoint

func BroadcastIndexPutEndpoint(c echo.Context) error

func GroupDetailsGetEndpoint

func GroupDetailsGetEndpoint(c echo.Context) error

func GroupEnvironmentDetailsGetEndpoint

func GroupEnvironmentDetailsGetEndpoint(c echo.Context) error

func GroupEventsLatestGetEndpoint

func GroupEventsLatestGetEndpoint(c context.Base) error

func OrganizationDetailsGetEndpoint

func OrganizationDetailsGetEndpoint(c context.Organization) error

func OrganizationIndexGetEndpoint

func OrganizationIndexGetEndpoint(c context.Base) error

func ProjectEnvironmentsGetEndpoint

func ProjectEnvironmentsGetEndpoint(c context.Project) error

func ProjectGroupIndexGetEndpoint

func ProjectGroupIndexGetEndpoint(c context.Project) error

func ProjectMemberIndexGetEndpoint

func ProjectMemberIndexGetEndpoint(c context.Project) error

func ProjectSearchesGetEndpoint

func ProjectSearchesGetEndpoint(c context.Project) error

func ProjectSearchesPostEndpoint

func ProjectSearchesPostEndpoint(c context.Project) error

func ProjectTagsGetEndpoint

func ProjectTagsGetEndpoint(c context.Project) error

func SystemHealthGetEndpoint

func SystemHealthGetEndpoint(c echo.Context) error

TODO replace stub with real implementation

Types

type Event

type Event struct {
	models.Event
	models.EventDetails        `kv:",squash"`
	interfaces.EventInterfaces `kv:",squash"`
	PreviousEventID            *string `json:"previousEventID"`
	NextEventID                *string `json:"nextEventID"`
}

type Group

type Group struct {
	models.Group
	ShortID             string            `json:"shortId"`
	ShareID             string            `json:"shareId"`
	Status              string            `json:"status"`
	Logger              *string           `json:"logger"`
	Level               string            `json:"level"`
	Type                string            `json:"type"`
	Annotations         []string          `json:"annotations"`
	AssignedTo          *string           `json:"assignedTo"`
	Count               int               `json:"count"`
	UserCount           int               `json:"userCount"`
	HasSeen             bool              `json:"hasSeen"`
	Project             GroupProjectInfo  `json:"project"`
	IsBookmarked        bool              `json:"isBookmarked"`
	IsSubscribed        bool              `json:"isSubscribed"`
	Permalink           string            `json:"permalink"`
	Metadata            map[string]string `json:"metadata"`      // TODO check type
	StatusDetails       map[string]string `json:"statusDetails"` // TODO check type
	SubscriptionDetails *string           `json:"subscriptionDetails"`
	Stats               GroupStatistic    `json:"stats"`
}

TODO check that TimeSpent is not missing

type GroupProjectInfo

type GroupProjectInfo struct {
	Name string `json:"name"`
	Slug string `json:"slug"`
}

GroupProjectInfo ...

type GroupStatistic

type GroupStatistic struct {
	For24h []string `json:"24h"`
}

GroupStatistic ...

type OrganizationDetails

type OrganizationDetails struct {
	models.Organization
	PendingAccessRequests int      `json:"pendingAccessRequests"`
	Features              []string `json:"features"`
	Quota                 Quota    `json:"quota"`
	Access                []string `json:"access"`
	Teams                 []Team   `json:"teams"`
}

OrganizationDetails ...

type Project

type Project struct {
	models.Project
	IsPublic bool     `json:"isPublic"`
	Features []string `json:"features"`
}

Project ..

type QueryDto

type QueryDto struct {
	ProjectID         int
	Query             string // ?
	Status            *int
	Tags              string
	BookmarkedBy      string
	AssignedTo        string
	FirstRelease      *string
	SortBy            string // date (default) | priority | new | freq
	Unassigned        *bool
	AgeFrom           time.Time
	AgeFromInclusive  bool
	AgeTo             time.Time
	AgeToInclusive    bool
	DateFrom          time.Time
	DateFromInclusive bool
	DateTo            time.Time
	DateToInclusive   bool
	Cursor            string
	Limit             string
}

type Quota

type Quota struct {
	ProjectLimit int `db:"project_limit" json:"projectLimit"`
	MaxRate      int `json:"maxRate"`
}

Quota ..

type SystemHealth

type SystemHealth struct {
	Healthy  SystemHealthStatus `json:"healthy"`
	Problems []string           `json:"problems"` // TODO []SystemHealthProblem
}

SystemHealth ...

type SystemHealthStatus

type SystemHealthStatus struct {
	CeleryAppVersionCheck bool `json:"CeleryAppVersionCheck"`
	CeleryAliveCheck      bool `json:"CeleryAliveCheck"`
	WarningStatusCheck    bool `json:"WarningStatusCheck"`
}

SystemHealthStatus ..

type Team

type Team struct {
	models.Team
	HasAccess bool      `db:"has_access" json:"hasAccess"`
	IsPending bool      `db:"is_pending" json:"isPending"`
	IsMember  bool      `db:"is_member" json:"isMember"`
	Projects  []Project `json:"projects"`
}

Team ...

type User

type User struct {
	models.User
	AvatarURL string      `json:"avatarUrl"`
	Options   UserOptions `json:"options"`
}

User ..

type UserOptions

type UserOptions struct {
	Timezone        string `json:"timezone"`        // TODO double check this
	StacktraceOrder string `json:"stacktraceOrder"` // default
	Language        string `json:"language"`
	Clock24Hours    bool   `json:"clock24Hours"`
}

UserOptions ..

Jump to

Keyboard shortcuts

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