statemachine Package

Import Path: github.com/systmms/incidents/internal/statemachine

Types

SLABreach

SLABreach represents an SLA breach

{<nil> 5273 type 0 [0x140003d7500] 0}

SLAConfig

SLAConfig defines SLA requirements for different severities

{<nil> 720 type 0 [0x140002ed0c0] 0}

State

State represents the current state of an incident

{<nil> 152 type 0 [0x140002ecc40] 0}

Constants

const StateOpen const StateAcked const StateMitigated const StateResolved const StateClosed

Methods

StatusToState

StatusToState converts incident status to state machine state

{<nil> <nil> StatusToState 0x140003da2c0 <nil>}

StateMachine

StateMachine manages incident state transitions

{<nil> 560 type 0 [0x140002ecfc0] 0}

Methods

NewStateMachine

NewStateMachine creates a new state machine with default configuration

{<nil> <nil> NewStateMachine 0x140002ef020 <nil>}

Transition

Transition represents a state transition

{<nil> 405 type 0 [0x140002ece00] 0}

Functions

StateToStatus

StateToStatus converts state machine state to incident status

{<nil> <nil> StateToStatus 0x14000371f00 <nil>}

Generated automatically from Go source code. Last updated: 2025-08-25T07:51:05-04:00