types

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 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 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 HistoryID

type HistoryID string

func NewHistoryID

func NewHistoryID() HistoryID

func (HistoryID) String

func (x HistoryID) String() string

type PolicyDiffID

type PolicyDiffID string

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)
)

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