graphql

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllSortOrder = []SortOrder{
	SortOrderAsc,
	SortOrderDesc,
}

Functions

This section is empty.

Types

type ActivitiesResponse

type ActivitiesResponse struct {
	Activities []*Activity `json:"activities"`
	TotalCount int         `json:"totalCount"`
}

type Activity

type Activity struct {
	ID        string         `json:"id"`
	Type      string         `json:"type"`
	UserID    *string        `json:"userID,omitempty"`
	AlertID   *string        `json:"alertID,omitempty"`
	TicketID  *string        `json:"ticketID,omitempty"`
	CommentID *string        `json:"commentID,omitempty"`
	CreatedAt string         `json:"createdAt"`
	Metadata  *string        `json:"metadata,omitempty"`
	User      *User          `json:"user,omitempty"`
	Alert     *alert.Alert   `json:"alert,omitempty"`
	Ticket    *ticket.Ticket `json:"ticket,omitempty"`
}

type AgentMemoriesResponse added in v0.8.0

type AgentMemoriesResponse struct {
	Memories   []*AgentMemory `json:"memories"`
	TotalCount int            `json:"totalCount"`
}

type AgentMemory added in v0.8.0

type AgentMemory struct {
	ID         string  `json:"id"`
	AgentID    string  `json:"agentID"`
	Query      string  `json:"query"`
	Claim      string  `json:"claim"`
	Score      float64 `json:"score"`
	CreatedAt  string  `json:"createdAt"`
	LastUsedAt *string `json:"lastUsedAt,omitempty"`
}

type AgentSummariesResponse added in v0.8.0

type AgentSummariesResponse struct {
	Agents     []*AgentSummary `json:"agents"`
	TotalCount int             `json:"totalCount"`
}

type AgentSummary added in v0.8.0

type AgentSummary struct {
	AgentID        string  `json:"agentID"`
	MemoriesCount  int     `json:"memoriesCount"`
	LatestMemoryAt *string `json:"latestMemoryAt,omitempty"`
}

type AlertAttribute

type AlertAttribute struct {
	Key   string  `json:"key"`
	Value string  `json:"value"`
	Link  *string `json:"link,omitempty"`
	Auto  bool    `json:"auto"`
}

type AlertCluster added in v0.1.0

type AlertCluster struct {
	ID          string         `json:"id"`
	CenterAlert *alert.Alert   `json:"centerAlert"`
	Alerts      []*alert.Alert `json:"alerts"`
	Size        int            `json:"size"`
	Keywords    []string       `json:"keywords,omitempty"`
	CreatedAt   string         `json:"createdAt"`
}

type AlertsConnection added in v0.1.0

type AlertsConnection struct {
	Alerts     []*alert.Alert `json:"alerts"`
	TotalCount int            `json:"totalCount"`
}

type AlertsResponse added in v0.1.0

type AlertsResponse struct {
	Alerts     []*alert.Alert `json:"alerts"`
	TotalCount int            `json:"totalCount"`
}

type ClusteringSummary added in v0.1.0

type ClusteringSummary struct {
	Clusters    []*AlertCluster   `json:"clusters"`
	NoiseAlerts []*alert.Alert    `json:"noiseAlerts"`
	Parameters  *DBSCANParameters `json:"parameters"`
	ComputedAt  string            `json:"computedAt"`
	TotalCount  int               `json:"totalCount"`
}

type CommentsResponse

type CommentsResponse struct {
	Comments   []*ticket.Comment `json:"comments"`
	TotalCount int               `json:"totalCount"`
}

type CreateKnowledgeInput added in v0.8.0

type CreateKnowledgeInput struct {
	Topic   string `json:"topic"`
	Slug    string `json:"slug"`
	Name    string `json:"name"`
	Content string `json:"content"`
}

type DBSCANParameters added in v0.1.0

type DBSCANParameters struct {
	Eps        float64 `json:"eps"`
	MinSamples int     `json:"minSamples"`
}

type DashboardStats

type DashboardStats struct {
	OpenTicketsCount   int              `json:"openTicketsCount"`
	UnboundAlertsCount int              `json:"unboundAlertsCount"`
	OpenTickets        []*ticket.Ticket `json:"openTickets"`
	UnboundAlerts      []*alert.Alert   `json:"unboundAlerts"`
}

type Knowledge added in v0.8.0

type Knowledge struct {
	Slug      string `json:"slug"`
	Name      string `json:"name"`
	Topic     string `json:"topic"`
	Content   string `json:"content"`
	CommitID  string `json:"commitID"`
	AuthorID  string `json:"authorID"`
	Author    *User  `json:"author"`
	CreatedAt string `json:"createdAt"`
	UpdatedAt string `json:"updatedAt"`
	State     string `json:"state"`
}

type MemorySortField added in v0.8.0

type MemorySortField string
const (
	MemorySortFieldScore      MemorySortField = "SCORE"
	MemorySortFieldCreatedAt  MemorySortField = "CREATED_AT"
	MemorySortFieldLastUsedAt MemorySortField = "LAST_USED_AT"
)

func (MemorySortField) IsValid added in v0.8.0

func (e MemorySortField) IsValid() bool

func (MemorySortField) MarshalGQL added in v0.8.0

func (e MemorySortField) MarshalGQL(w io.Writer)

func (MemorySortField) MarshalJSON added in v0.8.0

func (e MemorySortField) MarshalJSON() ([]byte, error)

func (MemorySortField) String added in v0.8.0

func (e MemorySortField) String() string

func (*MemorySortField) UnmarshalGQL added in v0.8.0

func (e *MemorySortField) UnmarshalGQL(v any) error

func (*MemorySortField) UnmarshalJSON added in v0.8.0

func (e *MemorySortField) UnmarshalJSON(b []byte) error

type Mutation

type Mutation struct {
}

type Query

type Query struct {
}

type Session added in v0.8.0

type Session struct {
	ID        string  `json:"id"`
	TicketID  string  `json:"ticketID"`
	Status    string  `json:"status"`
	UserID    *string `json:"userID,omitempty"`
	User      *User   `json:"user,omitempty"`
	Query     *string `json:"query,omitempty"`
	SlackURL  *string `json:"slackURL,omitempty"`
	Intent    *string `json:"intent,omitempty"`
	CreatedAt string  `json:"createdAt"`
	UpdatedAt string  `json:"updatedAt"`
}

type SessionMessage added in v0.8.0

type SessionMessage struct {
	ID        string `json:"id"`
	SessionID string `json:"sessionID"`
	Type      string `json:"type"`
	Content   string `json:"content"`
	CreatedAt string `json:"createdAt"`
	UpdatedAt string `json:"updatedAt"`
}

type SortOrder added in v0.8.0

type SortOrder string
const (
	SortOrderAsc  SortOrder = "ASC"
	SortOrderDesc SortOrder = "DESC"
)

func (SortOrder) IsValid added in v0.8.0

func (e SortOrder) IsValid() bool

func (SortOrder) MarshalGQL added in v0.8.0

func (e SortOrder) MarshalGQL(w io.Writer)

func (SortOrder) MarshalJSON added in v0.8.0

func (e SortOrder) MarshalJSON() ([]byte, error)

func (SortOrder) String added in v0.8.0

func (e SortOrder) String() string

func (*SortOrder) UnmarshalGQL added in v0.8.0

func (e *SortOrder) UnmarshalGQL(v any) error

func (*SortOrder) UnmarshalJSON added in v0.8.0

func (e *SortOrder) UnmarshalJSON(b []byte) error

type TagMetadata added in v0.2.0

type TagMetadata struct {
	ID          string  `json:"id"`
	Name        string  `json:"name"`
	Description *string `json:"description,omitempty"`
	Color       string  `json:"color"`
	CreatedAt   string  `json:"createdAt"`
	UpdatedAt   string  `json:"updatedAt"`
}

type TagObject added in v0.2.0

type TagObject struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type TicketsResponse

type TicketsResponse struct {
	Tickets    []*ticket.Ticket `json:"tickets"`
	TotalCount int              `json:"totalCount"`
}

type TopicSummary added in v0.8.0

type TopicSummary struct {
	Topic string `json:"topic"`
	Count int    `json:"count"`
}

type UpdateKnowledgeInput added in v0.8.0

type UpdateKnowledgeInput struct {
	Topic   string `json:"topic"`
	Slug    string `json:"slug"`
	Name    string `json:"name"`
	Content string `json:"content"`
}

type UpdateTagInput added in v0.2.0

type UpdateTagInput struct {
	ID          string  `json:"id"`
	Name        string  `json:"name"`
	Color       string  `json:"color"`
	Description *string `json:"description,omitempty"`
}

type User

type User struct {
	ID   string  `json:"id"`
	Name string  `json:"name"`
	Icon *string `json:"icon,omitempty"`
}

Jump to

Keyboard shortcuts

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