graphql

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 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 AlertAttribute

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

type AlertsResponse added in v0.1.0

type AlertsResponse struct {
	Alerts     []*alert.Alert `json:"alerts"`
	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 {
	Category string   `json:"category"`
	Title    string   `json:"title"`
	Claim    string   `json:"claim"`
	Tags     []string `json:"tags"`
	Message  string   `json:"message"`
	TicketID *string  `json:"ticketID,omitempty"`
}

type CreateKnowledgeTagInput added in v0.14.0

type CreateKnowledgeTagInput struct {
	Name        string  `json:"name"`
	Description *string `json:"description,omitempty"`
}

type DashboardStats

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

type DiagnosesResponse added in v0.13.0

type DiagnosesResponse struct {
	Diagnoses  []*Diagnosis `json:"diagnoses"`
	TotalCount int          `json:"totalCount"`
}

type Diagnosis added in v0.13.0

type Diagnosis struct {
	ID           string `json:"id"`
	Status       string `json:"status"`
	TotalCount   int    `json:"totalCount"`
	PendingCount int    `json:"pendingCount"`
	FixedCount   int    `json:"fixedCount"`
	FailedCount  int    `json:"failedCount"`
	CreatedAt    string `json:"createdAt"`
	UpdatedAt    string `json:"updatedAt"`
}

type DiagnosisIssue added in v0.13.0

type DiagnosisIssue struct {
	ID          string  `json:"id"`
	DiagnosisID string  `json:"diagnosisID"`
	RuleID      string  `json:"ruleID"`
	TargetID    string  `json:"targetID"`
	Description string  `json:"description"`
	Status      string  `json:"status"`
	FixedAt     *string `json:"fixedAt,omitempty"`
	FailReason  *string `json:"failReason,omitempty"`
	CreatedAt   string  `json:"createdAt"`
}

type DiagnosisIssuesResponse added in v0.13.0

type DiagnosisIssuesResponse struct {
	Issues     []*DiagnosisIssue `json:"issues"`
	TotalCount int               `json:"totalCount"`
}

type Knowledge added in v0.8.0

type Knowledge struct {
	ID        string          `json:"id"`
	Category  string          `json:"category"`
	Title     string          `json:"title"`
	Claim     string          `json:"claim"`
	Tags      []*KnowledgeTag `json:"tags"`
	AuthorID  string          `json:"authorID"`
	Author    *User           `json:"author"`
	CreatedAt string          `json:"createdAt"`
	UpdatedAt string          `json:"updatedAt"`
}

type KnowledgeLog added in v0.14.0

type KnowledgeLog struct {
	ID          string  `json:"id"`
	KnowledgeID string  `json:"knowledgeID"`
	Title       string  `json:"title"`
	Claim       string  `json:"claim"`
	AuthorID    string  `json:"authorID"`
	Author      *User   `json:"author"`
	TicketID    *string `json:"ticketID,omitempty"`
	Message     string  `json:"message"`
	CreatedAt   string  `json:"createdAt"`
}

type KnowledgeTag added in v0.14.0

type KnowledgeTag struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
	CreatedAt   string `json:"createdAt"`
	UpdatedAt   string `json:"updatedAt"`
}

type Mutation

type Mutation struct {
}

type Query

type Query struct {
}

type QueuedAlertsResponse added in v0.14.0

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

type ReprocessJobStatus added in v0.14.0

type ReprocessJobStatus string
const (
	ReprocessJobStatusPending   ReprocessJobStatus = "PENDING"
	ReprocessJobStatusRunning   ReprocessJobStatus = "RUNNING"
	ReprocessJobStatusCompleted ReprocessJobStatus = "COMPLETED"
	ReprocessJobStatusFailed    ReprocessJobStatus = "FAILED"
)

func (ReprocessJobStatus) IsValid added in v0.14.0

func (e ReprocessJobStatus) IsValid() bool

func (ReprocessJobStatus) MarshalGQL added in v0.14.0

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

func (ReprocessJobStatus) MarshalJSON added in v0.14.0

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

func (ReprocessJobStatus) String added in v0.14.0

func (e ReprocessJobStatus) String() string

func (*ReprocessJobStatus) UnmarshalGQL added in v0.14.0

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

func (*ReprocessJobStatus) UnmarshalJSON added in v0.14.0

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

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 UpdateKnowledgeInput added in v0.8.0

type UpdateKnowledgeInput struct {
	ID       string   `json:"id"`
	Title    string   `json:"title"`
	Claim    string   `json:"claim"`
	Tags     []string `json:"tags"`
	Message  string   `json:"message"`
	TicketID *string  `json:"ticketID,omitempty"`
}

type UpdateKnowledgeTagInput added in v0.14.0

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

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