api

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHosts

func GetHosts(zapi *zabbix.Session) (hostItemsUnavailable []Item, hostItemsUnknown []Item)

func GetSession

func GetSession(server string, username string, password string) *zabbix.Session

func GetTriggers

func GetTriggers(zapi *zabbix.Session, minSeverity string) (triggerItemsUnack []Item, triggerItemsAck []Item)

Types

type Item

type Item struct {
	Host        string
	Status      string
	Description string
	Ack         bool
	Url         string
}

func GetItems

func GetItems(zapi *zabbix.Session, itemTypes []string, minSeverity string) (items []Item)

Jump to

Keyboard shortcuts

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