Versions in this module Expand all Collapse all v0 v0.1.1 Jul 29, 2024 v0.1.0 Jul 24, 2024 Changes in this version + const AcknowledgementNone + const AcknowledgementNormal + const AcknowledgementSticky + const EntryTypeAcknowledgement + const EntryTypeDowntime + const EntryTypeFlapping + const EntryTypeUser + const StateHostDown + const StateHostUp + const StateServiceCritical + const StateServiceOk + const StateServiceUnknown + const StateServiceWarning + const StateTypeHard + const StateTypeSoft + func UnmarshalEventStreamResponse(bytes []byte) (any, error) + type Acknowledgement struct + Author string + Comment string + EventType string + Host string + Service string + State int + StateType int + Timestamp UnixFloat + type CheckResult struct + ExecutionEnd UnixFloat + ExecutionStart UnixFloat + ExitStatus int + Output string + State int + func (cr *CheckResult) MarshalLogObject(encoder zapcore.ObjectEncoder) error + type Client struct + ApiBaseURL string + ApiBasicAuthPass string + ApiBasicAuthUser string + ApiHttpTransport http.RoundTripper + ApiTimeout time.Duration + CallbackFn func(*event.Event) + Ctx context.Context + CtxCancel context.CancelFunc + EventSourceId int64 + IcingaWebRoot string + Logger *zap.SugaredLogger + func (client *Client) Process() + type Comment struct + Author string + EntryTime UnixFloat + EntryType int + Host string + Service string + Text string + type CommentAdded struct + Comment Comment + Timestamp UnixFloat + type CommentRemoved struct + Comment Comment + Timestamp UnixFloat + type Downtime struct + Author string + Comment string + ConfigOwner string + Host string + IsFixed bool + RemoveTime UnixFloat + Service string + func (d *Downtime) MarshalLogObject(encoder zapcore.ObjectEncoder) error + func (d *Downtime) WasCancelled() bool + type DowntimeAdded struct + Downtime Downtime + Timestamp UnixFloat + type DowntimeRemoved struct + Downtime Downtime + Timestamp UnixFloat + type DowntimeStarted struct + Downtime Downtime + Timestamp UnixFloat + type DowntimeTriggered struct + Downtime Downtime + Timestamp UnixFloat + type Flapping struct + CurrentFlapping int + Host string + IsFlapping bool + Service string + State int + ThresholdHigh int + ThresholdLow int + Timestamp UnixFloat + type HostServiceRuntimeAttributes struct + Acknowledgement int + AcknowledgementLastChange UnixFloat + DowntimeDepth int + EnableFlapping bool + Groups []string + Host string + IsFlapping bool + LastCheckResult CheckResult + LastStateChange UnixFloat + Name string + State int + StateType int + func (hsra *HostServiceRuntimeAttributes) MarshalLogObject(encoder zapcore.ObjectEncoder) error + type IcingaApplication struct + App struct{ ... } + type Launcher struct + Ctx context.Context + Db *database.DB + Logs *logging.Logging + RuntimeConfig *config.RuntimeConfig + func (launcher *Launcher) Launch(src *config.Source) + func (launcher *Launcher) Ready() + type ObjectCreatedDeleted struct + EventType string + ObjectName string + ObjectType string + type ObjectQueriesResult struct + Attrs T + Name string + Type string + type StateChange struct + Acknowledgement bool + CheckResult CheckResult + DowntimeDepth int + Host string + Service string + State int + StateType int + Timestamp UnixFloat + func (sc *StateChange) MarshalLogObject(encoder zapcore.ObjectEncoder) error + type UnixFloat time.Time + func (t *UnixFloat) Time() time.Time + func (t *UnixFloat) UnmarshalJSON(data []byte) error