nagiosapi

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Overview

Package nagiosapi provides access to nagios-api

See https://github.com/zorkian/nagios-api for more information on nagios-api.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Tag       string
	NagiosURL string
	common.HTTPConfig
}

type Connector

type Connector struct {
	// contains filtered or unexported fields
}

func NewConnector

func NewConnector(cfg *Config) *Connector

func (*Connector) Collect

func (c *Connector) Collect(ctx context.Context) ([]connectors.Alert, error)

func (*Connector) Silence

func (c *Connector) Silence(ctx context.Context, alert connectors.Alert, duration time.Duration, user string) error

func (*Connector) String

func (c *Connector) String() string

func (*Connector) Tag

func (c *Connector) Tag() string

Jump to

Keyboard shortcuts

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