probe

package
v1.24.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProbeHandler

func ProbeHandler(w http.ResponseWriter, r *http.Request)

Types

type BGPNeighbor added in v1.6.0

type BGPNeighbor struct {
	NeighborIP  string `json:"neighbor_ip"`
	LocalIP     string `json:"local_ip"`
	RemoteAS    int    `json:"remote_as"`
	AdminStatus bool   `json:"admin_status"`
	State       string `json:"state"`
}

type BGPNeighborResponse added in v1.6.0

type BGPNeighborResponse struct {
	Results []BGPNeighbor `json:"results"`
	VDOM    string        `json:"vdom"`
	Version string        `json:"version"`
}

type BGPPath added in v1.8.0

type BGPPath struct {
	LearnedFrom string `json:"learned_from"`
	IsBest      bool   `json:"is_best"`
}

type BGPPaths added in v1.8.0

type BGPPaths struct {
	Results []BGPPath `json:"results"`
	VDOM    string    `json:"vdom"`
	Version string    `json:"version"`
}

type HAChecksum added in v1.17.0

type HAChecksum struct {
	Results []HAChecksumResults `json:"results"`
}

type HAChecksumResults added in v1.17.0

type HAChecksumResults struct {
	IsManageMaster int    `json:"is_manage_master"`
	IsRootMaster   int    `json:"is_root_master"`
	SerialNo       string `json:"serial_no"`
}

type IpPool added in v1.22.0

type IpPool struct {
	Name      string  `json:"name"`
	IPTotal   int     `json:"natip_total"`
	IPInUse   int     `json:"natip_in_use"`
	Clients   int     `json:"clients"`
	Available float64 `json:"available"`
	Used      int     `json:"used"`
	Total     int     `json:"total"`
	PbaPerIp  int     `json:"pba_per_ip"`
}

type IpPoolResponse added in v1.22.0

type IpPoolResponse struct {
	Results map[string]IpPool `json:"results"`
	VDOM    string            `json:"vdom"`
	Version string            `json:"version"`
}

type Log added in v1.12.0

type Log struct {
	Results LogResults `json:"results"`
	VDOM    string     `json:"vdom"`
}

type LogAna added in v1.11.0

type LogAna struct {
	Results LogAnaResults `json:"results"`
	VDOM    string        `json:"vdom"`
}

type LogAnaQueue added in v1.11.0

type LogAnaQueue struct {
	Results LogAnaQueueResults `json:"results"`
	VDOM    string             `json:"vdom"`
}

type LogAnaQueueResults added in v1.11.0

type LogAnaQueueResults struct {
	Connected  float64 `json:"connected"`
	FailedLogs float64 `json:"failed_logs"`
	CachedLogs float64 `json:"cached_logs"`
}

type LogAnaResults added in v1.11.0

type LogAnaResults struct {
	Registration string  `json:"registration"`
	Connection   string  `json:"connection"`
	Received     float64 `json:"received"`
}

type LogResults added in v1.12.0

type LogResults struct {
	UsedBytes  float64 `json:"used_bytes"`
	TotalBytes float64 `json:"total_bytes"`
}

type OSPFNeighbor added in v1.23.0

type OSPFNeighbor struct {
	NeighborIP string `json:"neighbor_ip"`
	RouterID   string `json:"router_id"`
	State      string `json:"state"`
	Priority   int    `json:"priority"`
}

type OSPFNeighborResponse added in v1.23.0

type OSPFNeighborResponse struct {
	Results []OSPFNeighbor `json:"results"`
	VDOM    string         `json:"vdom"`
	Version string         `json:"version"`
}

type PathCount added in v1.8.0

type PathCount struct {
	Source string
	VDOM   string
}

type ProbeCollector

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

func (*ProbeCollector) Collect

func (p *ProbeCollector) Collect(c chan<- prometheus.Metric)

func (*ProbeCollector) Describe

func (p *ProbeCollector) Describe(c chan<- *prometheus.Desc)

func (*ProbeCollector) Probe

func (p *ProbeCollector) Probe(ctx context.Context, target map[string]string, hc *http.Client, savedConfig config.FortiExporterConfig) (bool, error)

type SystemFortimanagerResults added in v1.15.0

type SystemFortimanagerResults struct {
	Mode            string `json:"mode"`
	Status_ID       int    `json:"fortimanager_status_id"`
	Registration_ID int    `json:"fortimanager_registration_status_id"`
}

type SystemFortimanagerStatus added in v1.15.0

type SystemFortimanagerStatus struct {
	Results SystemFortimanagerResults `json:"results"`
	VDOM    string                    `json:"vdom"`
}

type SystemSDNConnector added in v1.20.0

type SystemSDNConnector struct {
	Results []SystemSDNConnectorResults `json:"results"`
	VDOM    string                      `json:"vdom"`
}

type SystemSDNConnectorResults added in v1.20.0

type SystemSDNConnectorResults struct {
	Name       string `json:"name"`
	Type       string `json:"type"`
	Status     string `json:"status"`
	Updating   bool   `json:"updating"`
	LastUpdate int    `json:"last_update"`
}

type SystemSensorInfo added in v1.15.0

type SystemSensorInfo struct {
	Results []SystemSensorInfoResults `json:"results"`
}

type SystemSensorInfoResults added in v1.15.0

type SystemSensorInfoResults struct {
	Name  string  `json:"name"`
	Type  string  `json:"type"`
	Value float64 `json:"value"`
}

type TargetMetadata added in v1.6.2

type TargetMetadata struct {
	VersionMajor int
	VersionMinor int
}

type UserFsso added in v1.13.0

type UserFsso struct {
	Results []UserFssoResults `json:"results"`
	VDOM    string            `json:"vdom"`
}

type UserFssoResults added in v1.13.0

type UserFssoResults struct {
	Name   string `json:"name"`
	ID     int    `json:"id"`
	Type   string `json:"type"`
	Status string `json:"status"`
}

type VPNCurrentResults added in v1.11.0

type VPNCurrentResults struct {
	Users       int `json:"users"`
	Tunnels     int `json:"tunnels"`
	Connections int `json:"connections"`
}

type VPNResults added in v1.11.0

type VPNResults struct {
	Current VPNCurrentResults `json:"current"`
}

type VPNStats added in v1.11.0

type VPNStats struct {
	Results VPNResults `json:"results"`
	VDOM    string     `json:"vdom"`
	Version string     `json:"version"`
}

type VPNUser added in v1.10.0

type VPNUser struct {
	UserName string `json:"user_name"`
}

type VPNUsers added in v1.10.0

type VPNUsers struct {
	Results []VPNUser `json:"results"`
	VDOM    string    `json:"vdom"`
}

Jump to

Keyboard shortcuts

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