micetro

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	ApiURL   string
	Username string
	Password string
}

func (*Client) DHCPScopes

func (c *Client) DHCPScopes() ([]DHCPScope, error)

func (*Client) DHCPServers

func (c *Client) DHCPServers() ([]DHCPServer, error)

func (*Client) Ranges

func (c *Client) Ranges() ([]Range, error)

func (*Client) Request

func (c *Client) Request() *resty.Request

type DHCPScope

type DHCPScope struct {
	Ref           string `json:"ref"`
	Name          string `json:"name"`
	RangeRef      string `json:"rangeRef"`
	DhcpServerRef string `json:"dhcpServerRef"`
	Superscope    string `json:"superscope"`
	Description   string `json:"description"`
	Available     int    `json:"available"`
	Enabled       bool   `json:"enabled"`
}

type DHCPScopeList

type DHCPScopeList struct {
	Result struct {
		DHCPScopes []DHCPScope `json:"dhcpScopes"`
	} `json:"result"`
	TotalResults int `json:"totalResults"`
}

type DHCPServer

type DHCPServer struct {
	Ref              string                 `json:"ref"`
	Name             string                 `json:"name"`
	Proxy            string                 `json:"proxy"`
	Address          string                 `json:"address"`
	ResolvedAddress  string                 `json:"resolvedAddress"`
	Username         string                 `json:"username"`
	Password         string                 `json:"password"`
	EnablePassword   string                 `json:"enablePassword"`
	Type             string                 `json:"type"`
	HaMode           string                 `json:"haMode"`
	State            string                 `json:"state"`
	Security         string                 `json:"security"`
	CustomProperties map[string]interface{} `json:"customProperties"`
	Enabled          bool                   `json:"enabled"`
}

type DHCPServerList

type DHCPServerList struct {
	Result struct {
		DHCPServers []DHCPServer `json:"dhcpServers"`
	} `json:"result"`
	TotalResults int `json:"totalResults"`
}

type MicetroCollector

type MicetroCollector struct {
	Client *Client
}

func (MicetroCollector) Collect

func (mc MicetroCollector) Collect(ch chan<- prometheus.Metric)

func (MicetroCollector) Describe

func (mc MicetroCollector) Describe(ch chan<- *prometheus.Desc)

type Range

type Range struct {
	Ref                   string                 `json:"ref"`
	Name                  string                 `json:"name"`
	From                  string                 `json:"from"`
	To                    string                 `json:"to"`
	ChildRanges           []interface{}          `json:"childRanges"`
	DhcpScopes            []interface{}          `json:"dhcpScopes"`
	Subnet                bool                   `json:"subnet"`
	Locked                bool                   `json:"locked"`
	AutoAssign            bool                   `json:"autoAssign"`
	HasSchedule           bool                   `json:"hasSchedule"`
	HasMonitor            bool                   `json:"hasMonitor"`
	CustomProperties      map[string]interface{} `json:"customProperties"`
	InheritAccess         bool                   `json:"inheritAccess"`
	IsContainer           bool                   `json:"isContainer"`
	UtilizationPercentage int                    `json:"utilizationPercentage"`
	HasRogueAddresses     bool                   `json:"hasRogueAddresses"`
}

type RangeList

type RangeList struct {
	Result struct {
		Ranges []Range `json:"ranges"`
	} `json:"result"`
	TotalResults int `json:"totalResults"`
}

Jump to

Keyboard shortcuts

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