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 ¶
func CreateMap(client *zabbixgosdk.ZabbixService, m *zabbixgosdk.MapCreateParameters) error
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.
Click to show internal directories.
Click to hide internal directories.