types

package
v0.8.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivityID

type ActivityID string
const (
	EmptyActivityID ActivityID = ""
)

func NewActivityID

func NewActivityID() ActivityID

func (ActivityID) String

func (x ActivityID) String() string

func (ActivityID) Validate

func (x ActivityID) Validate() error

type ActivityType

type ActivityType string
const (
	ActivityTypeTicketCreated       ActivityType = "ticket_created"
	ActivityTypeTicketUpdated       ActivityType = "ticket_updated"
	ActivityTypeTicketStatusChanged ActivityType = "ticket_status_changed"
	ActivityTypeCommentAdded        ActivityType = "comment_added"
	ActivityTypeAlertBound          ActivityType = "alert_bound"
	ActivityTypeAlertsBulkBound     ActivityType = "alerts_bulk_bound"
)

func (ActivityType) Label

func (t ActivityType) Label() string

func (ActivityType) String

func (t ActivityType) String() string

func (ActivityType) Validate

func (t ActivityType) Validate() error

type AgentMemoryID added in v0.5.0

type AgentMemoryID string
const (
	EmptyAgentMemoryID AgentMemoryID = ""
)

func NewAgentMemoryID added in v0.5.0

func NewAgentMemoryID() AgentMemoryID

func (AgentMemoryID) String added in v0.5.0

func (x AgentMemoryID) String() string

type AlertConclusion

type AlertConclusion string

AlertConclusion is the conclusion of the alert. This is set by the user.

const (
	AlertConclusionIntended      AlertConclusion = "intended"
	AlertConclusionUnaffected    AlertConclusion = "unaffected"
	AlertConclusionFalsePositive AlertConclusion = "false_positive"
	AlertConclusionTruePositive  AlertConclusion = "true_positive"
	AlertConclusionEscalated     AlertConclusion = "escalated"
)

func (AlertConclusion) Label

func (r AlertConclusion) Label() string

func (AlertConclusion) String

func (r AlertConclusion) String() string

func (AlertConclusion) Validate

func (r AlertConclusion) Validate() error

type AlertID

type AlertID string

func NewAlertID

func NewAlertID() AlertID

func (AlertID) String

func (x AlertID) String() string

type AlertListID

type AlertListID string
const (
	EmptyAlertListID AlertListID = ""
)

func NewAlertListID

func NewAlertListID() AlertListID

func (AlertListID) String

func (x AlertListID) String() string

func (AlertListID) Validate

func (x AlertListID) Validate() error

type AlertSchema

type AlertSchema string

func (AlertSchema) String

func (x AlertSchema) String() string

type AlertSeverity

type AlertSeverity string

AlertSeverity is the severity of the alert. This is set by the AI.

const (
	AlertSeverityUnknown  AlertSeverity = "unknown"
	AlertSeverityLow      AlertSeverity = "low"
	AlertSeverityMedium   AlertSeverity = "medium"
	AlertSeverityHigh     AlertSeverity = "high"
	AlertSeverityCritical AlertSeverity = "critical"
)

func (AlertSeverity) Label

func (s AlertSeverity) Label() string

func (AlertSeverity) String

func (s AlertSeverity) String() string

func (AlertSeverity) Validate

func (s AlertSeverity) Validate() error

type CommentID

type CommentID string

func NewCommentID

func NewCommentID() CommentID

func (CommentID) String

func (x CommentID) String() string

type GenAIContentFormat added in v0.4.0

type GenAIContentFormat string
const (
	GenAIContentFormatText GenAIContentFormat = "text"
	GenAIContentFormatJSON GenAIContentFormat = "json"
)

func (GenAIContentFormat) Validate added in v0.4.0

func (x GenAIContentFormat) Validate() error

Validate checks if the GenAIContentFormat has a valid value

type HistoryID

type HistoryID string

func NewHistoryID

func NewHistoryID() HistoryID

func (HistoryID) String

func (x HistoryID) String() string

type KnowledgeSlug added in v0.8.0

type KnowledgeSlug string

KnowledgeSlug uniquely identifies a knowledge within a topic

func (KnowledgeSlug) String added in v0.8.0

func (s KnowledgeSlug) String() string

func (KnowledgeSlug) Validate added in v0.8.0

func (s KnowledgeSlug) Validate() error

type KnowledgeState added in v0.8.0

type KnowledgeState string

KnowledgeState represents the state of knowledge

const (
	KnowledgeStateActive   KnowledgeState = "active"
	KnowledgeStateArchived KnowledgeState = "archived"
)

func (KnowledgeState) IsActive added in v0.8.0

func (s KnowledgeState) IsActive() bool

func (KnowledgeState) IsArchived added in v0.8.0

func (s KnowledgeState) IsArchived() bool

func (KnowledgeState) String added in v0.8.0

func (s KnowledgeState) String() string

func (KnowledgeState) Validate added in v0.8.0

func (s KnowledgeState) Validate() error

type KnowledgeTopic added in v0.8.0

type KnowledgeTopic string

KnowledgeTopic is the namespace for knowledge

func (KnowledgeTopic) String added in v0.8.0

func (t KnowledgeTopic) String() string

func (KnowledgeTopic) Validate added in v0.8.0

func (t KnowledgeTopic) Validate() error

type MemoryID added in v0.5.0

type MemoryID string
const (
	EmptyMemoryID MemoryID = ""
)

func NewMemoryID added in v0.5.0

func NewMemoryID() MemoryID

func (MemoryID) String added in v0.5.0

func (x MemoryID) String() string

type MessageID added in v0.8.0

type MessageID string

func NewMessageID added in v0.8.0

func NewMessageID() MessageID

func (MessageID) String added in v0.8.0

func (x MessageID) String() string

type NoticeID added in v0.4.0

type NoticeID string

NoticeID represents a unique identifier for notice

const (
	EmptyNoticeID NoticeID = ""
)

func NewNoticeID added in v0.4.0

func NewNoticeID() NoticeID

func (NoticeID) String added in v0.4.0

func (x NoticeID) String() string

type PublishType added in v0.4.0

type PublishType string
const (
	PublishTypeDiscard PublishType = "discard" // Discard the alert
	PublishTypeNotice  PublishType = "notice"  // Send as notice
	PublishTypeAlert   PublishType = "alert"   // Send as full alert (default)
)

type RunbookID

type RunbookID string

func NewRunbookID

func NewRunbookID() RunbookID

func (RunbookID) String

func (x RunbookID) String() string

type SessionID added in v0.8.0

type SessionID string

SessionID represents a unique chat session identifier

func NewSessionID added in v0.8.0

func NewSessionID() SessionID

NewSessionID generates a new session ID

func (SessionID) String added in v0.8.0

func (x SessionID) String() string

type SessionStatus added in v0.8.0

type SessionStatus string

SessionStatus represents the status of a chat session

const (
	SessionStatusRunning   SessionStatus = "running"
	SessionStatusAborted   SessionStatus = "aborted"
	SessionStatusCompleted SessionStatus = "completed"
)

func (SessionStatus) String added in v0.8.0

func (x SessionStatus) String() string

type Source added in v0.1.0

type Source string

Source represents the source of metadata (title, description, etc.)

const (
	SourceHuman     Source = "human"     // Set by humans (manual creation, GraphQL updates, etc.)
	SourceAI        Source = "ai"        // Generated by AI/LLM
	SourceInherited Source = "inherited" // Inherited from another entity (e.g., alert)
	SourcePolicy    Source = "policy"    // Set by action policy evaluation
)

func (Source) IsAIGenerated added in v0.1.0

func (s Source) IsAIGenerated() bool

IsAIGenerated returns true if the source is AI-generated

func (Source) String added in v0.1.0

func (s Source) String() string

func (Source) Validate added in v0.1.0

func (s Source) Validate() error

type TicketID

type TicketID string
const (
	EmptyTicketID TicketID = ""
)

func NewTicketID

func NewTicketID() TicketID

func (TicketID) String

func (x TicketID) String() string

func (TicketID) Validate

func (x TicketID) Validate() error

type TicketStatus

type TicketStatus string
const (
	TicketStatusOpen     TicketStatus = "open"
	TicketStatusPending  TicketStatus = "pending"
	TicketStatusResolved TicketStatus = "resolved"
	TicketStatusArchived TicketStatus = "archived"
)

func (TicketStatus) Icon

func (s TicketStatus) Icon() string

func (TicketStatus) Label

func (s TicketStatus) Label() string

func (TicketStatus) String

func (s TicketStatus) String() string

func (TicketStatus) Validate

func (s TicketStatus) Validate() error

type UserID added in v0.8.0

type UserID string

UserID represents a user identifier (Slack User ID or system)

const (
	SystemUserID UserID = "system"
)

func (UserID) IsSystem added in v0.8.0

func (u UserID) IsSystem() bool

func (UserID) String added in v0.8.0

func (u UserID) String() string

func (UserID) Validate added in v0.8.0

func (u UserID) Validate() error

Jump to

Keyboard shortcuts

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