types

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2025 License: Apache-2.0 Imports: 2 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 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 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 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

Jump to

Keyboard shortcuts

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