monitor

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2019 License: ISC Imports: 3 Imported by: 1

Documentation

Overview

Package monitor is the client.Network.MonitorProfile namespace.

Normalized object: Entry

Index

Constants

View Source
const (
	ActionWaitRecover = "wait-recover"
	ActionFailOver    = "fail-over"
)

Valid Action values.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Name      string
	Interval  int
	Threshold int
	Action    string
}

Entry is a normalized, version independent representation of a peer.

func (*Entry) Copy

func (o *Entry) Copy(s Entry)

Copy copies the information from source Entry `s` to this object. As the Name field relates to the XPATH of this object, this field is not copied.

type FwMonitor

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

FwMonitor is the client.Network.MonitorProfile namespace.

func (*FwMonitor) Delete

func (c *FwMonitor) Delete(e ...interface{}) error

Delete removes the given objects.

Objects can be a string or an Entry object.

func (*FwMonitor) Edit

func (c *FwMonitor) Edit(e Entry) error

Edit performs EDIT to create / update one object.

func (*FwMonitor) Get

func (c *FwMonitor) Get(name string) (Entry, error)

Get performs GET to retrieve information for the given uid.

func (*FwMonitor) GetList

func (c *FwMonitor) GetList() ([]string, error)

GetList performs GET to retrieve a list of values.

func (*FwMonitor) Initialize

func (c *FwMonitor) Initialize(con util.XapiClient)

Initialize is invoked by client.Initialize().

func (*FwMonitor) Set

func (c *FwMonitor) Set(e ...Entry) error

Set performs SET to create / update one or more objects.

func (*FwMonitor) Show

func (c *FwMonitor) Show(name string) (Entry, error)

Show performs SHOW to retrieve information for the given uid.

func (*FwMonitor) ShowList

func (c *FwMonitor) ShowList() ([]string, error)

ShowList performs SHOW to retrieve a list of values.

type PanoMonitor

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

PanoMonitor is the client.Network.MonitorProfile namespace.

func (*PanoMonitor) Delete

func (c *PanoMonitor) Delete(tmpl, ts string, e ...interface{}) error

Delete removes the given objects.

Objects can be a string or an Entry object.

func (*PanoMonitor) Edit

func (c *PanoMonitor) Edit(tmpl, ts string, e Entry) error

Edit performs EDIT to create / update one object.

func (*PanoMonitor) Get

func (c *PanoMonitor) Get(tmpl, ts, name string) (Entry, error)

Get performs GET to retrieve information for the given uid.

func (*PanoMonitor) GetList

func (c *PanoMonitor) GetList(tmpl, ts string) ([]string, error)

GetList performs GET to retrieve a list of values.

func (*PanoMonitor) Initialize

func (c *PanoMonitor) Initialize(con util.XapiClient)

Initialize is invoked by client.Initialize().

func (*PanoMonitor) Set

func (c *PanoMonitor) Set(tmpl, ts string, e ...Entry) error

Set performs SET to create / update one or more objects.

func (*PanoMonitor) Show

func (c *PanoMonitor) Show(tmpl, ts, name string) (Entry, error)

Show performs SHOW to retrieve information for the given uid.

func (*PanoMonitor) ShowList

func (c *PanoMonitor) ShowList(tmpl, ts string) ([]string, error)

ShowList performs SHOW to retrieve a list of values.

Jump to

Keyboard shortcuts

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