Documentation
¶
Index ¶
- type Assignment
- type Client
- func (c *Client) AddInterfacePoller(customPollerID string, interfaceID int) error
- func (c *Client) AddNodePoller(customPollerID string, nodeID int) error
- func (c *Client) BulkDelete(uris []string) ([]byte, error)
- func (c *Client) BulkSetCustomProperty(uris []string, name string, value interface{}) error
- func (c *Client) Create(entity, body interface{}) ([]byte, error)
- func (c *Client) CreateCustomProperty(cpEntity, cpType, cpName, cpDesc string) error
- func (c *Client) Delete(uri string) ([]byte, error)
- func (c *Client) GetAssignments() ([]Assignment, error)
- func (c *Client) Invoke(entity, verb string, body interface{}) ([]byte, error)
- func (c *Client) Query(query string, parameters interface{}) ([]byte, error)
- func (c *Client) QueryColumn(query string, parameters interface{}) ([]interface{}, error)
- func (c *Client) QueryOne(query string, parameters interface{}) (interface{}, error)
- func (c *Client) QueryRow(query string, parameters interface{}) ([]byte, error)
- func (c *Client) Read(uri string) ([]byte, error)
- func (c *Client) RemoveNCMNodes(guids []string) error
- func (c *Client) SetCustomProperties(uri string, properties map[string]interface{}) error
- func (c *Client) SetCustomProperty(uri, name string, value interface{}) error
- func (c *Client) Update(uri string, body map[string]interface{}) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Assignment ¶
type Assignment struct { ID string `json:"CustomPollerAssignmentID"` PollerID string `json:"PollerID"` NodeID int `json:"NodeID"` InterfaceID int `json:"InterfaceID"` CustomPollerID string `json:"CustomPollerID"` InstanceType string `json:"InstanceType"` }
Assignment holds all the current UnDP configuration from SolarWinds.
type Client ¶
type Client struct { // connection parameters URL string Username string Password string // contains filtered or unexported fields }
Client structure for the SolarWinds (SWIS) connection.
func (*Client) AddInterfacePoller ¶
AddInterfacePoller adds a Universal Device Poller (UnDP) to an interface.
func (*Client) AddNodePoller ¶
AddNodePoller adds a Universal Device Poller (UnDP) to a node.
func (*Client) BulkDelete ¶
BulkDelete wraps post and send a slice of URIs to delete.
func (*Client) BulkSetCustomProperty ¶
BulkSetCustomProperty sets a custom property on a series of URIs.
func (*Client) CreateCustomProperty ¶
CreateCustomProperty creates a new custom property of a specified type.
func (*Client) GetAssignments ¶
func (c *Client) GetAssignments() ([]Assignment, error)
GetAssignments function returns all the current custom poller assignments in effect at the time.
func (*Client) Invoke ¶
Invoke calls the invoke endpoint with the entity and verb along with a body.
func (*Client) QueryColumn ¶
QueryColumn wraps Query and pulls a single column of values into a slice of maps.
func (*Client) RemoveNCMNodes ¶
RemoveNCMNodes deletes nodes from NCM handling in SolarWinds.
func (*Client) SetCustomProperties ¶
SetCustomProperties sets multiple properties on an entity.
func (*Client) SetCustomProperty ¶
SetCustomProperty sets a custom property value on a specific URI.