xmltools

package
v0.0.0-...-37766d3 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2013 License: GPL-3.0 Imports: 3 Imported by: 5

Documentation

Overview

Package xmltools provides simple tools for handling XML monitoring data

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAlert

func CreateAlert(data MonResult) string

CreateAlert takes a MonResult struct and returns it as a string suitable for passing to the alert server.

func DumpXML

func DumpXML(data MonResult)

Take a MonResult and format it to XML and then dump it to STDOUT to practice using XML encoding.

Types

type MonResult

type MonResult struct {
	HostName   string
	MonName    string
	TimeRcvd   string
	TimeRptd   string
	AlertLevel int
	Detail     string
}

MonResult groups the data from the monitor script

Jump to

Keyboard shortcuts

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