_map

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildMap

func BuildMap(client *zabbixgosdk.ZabbixService, options *MapOptions, logger *logging.Logger) (*zabbixgosdk.MapCreateParameters, error)

func CreateMap

CreateMap is used to create the given map. The map create parameters can also be exported to a file if a file path is specified.

Types

type MapOptions

type MapOptions struct {
	Name         string
	Color        string
	TriggerColor string
	Height       int
	Width        int
	Spacer       int
	StackHosts   bool
	Mappings     []*Mapping
	Hosts        map[string]string
	Images       map[string]string
}

MapOptions define the available options that can be passed to customize the map rendering.

func (*MapOptions) Validate

func (o *MapOptions) Validate() error

Validate is used to validate options that will be passed to a map.

type Mapping

type Mapping struct {
	LocalHost            string `json:"local_host"`
	LocalInterface       string `json:"local_interface,omitempty"`
	LocalTriggerPattern  string `json:"local_trigger_pattern"`
	LocalImage           string `json:"local_image"`
	RemoteHost           string `json:"remote_host"`
	RemoteInterface      string `json:"remote_interface,omitempty"`
	RemoteTriggerPattern string `json:"remote_trigger_pattern"`
	RemoteImage          string `json:"remote_image"`
}

Mapping define the properties used to create an hosts mapping on a Zabbix map.

Jump to

Keyboard shortcuts

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