Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrComponent = errors.New("component has resources")
View Source
var ErrLinkedEntityToAlarm = errors.New("entity is linked to alarm")
Functions ¶
This section is empty.
Types ¶
type API ¶
func NewApi ¶
func NewApi( store Store, entityChangeListener chan<- entityservice.ChangeEntityMessage, metricMetaUpdater metrics.MetaUpdater, actionLogger logger.ActionLogger, logger zerolog.Logger, ) API
type EditRequest ¶
type EditRequest struct { ID string `json:"-"` Description string `json:"description" binding:"max=255"` Enabled *bool `json:"enabled" binding:"required"` Category string `json:"category"` ImpactLevel int64 `json:"impact_level" binding:"required,min=1,max=10"` Infos []entity.InfoRequest `json:"infos" binding:"dive"` SliAvailState *int64 `json:"sli_avail_state" binding:"required,min=0,max=3"` Coordinates *types.Coordinates `json:"coordinates"` }
Click to show internal directories.
Click to hide internal directories.