device

package
v0.1.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2017 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(d *lm.RestDevice, client *lm.DefaultApi) error

Add adds a device to a LogicMonitor account.

func BuildSystemCategoriesFromLabels

func BuildSystemCategoriesFromLabels(categories string, labels map[string]string) string

BuildSystemCategoriesFromLabels formats a system.categories string.

func Delete

func Delete(d *lm.RestDevice, client *lm.DefaultApi) error

Delete deletes a device by device ID.

func FindByDisplayName

func FindByDisplayName(name string, client *lm.DefaultApi) (*lm.RestDevice, error)

FindByDisplayName searches for a device by it's display name. It will only return a device if and only if one device was found, and return nil otherwise.

func UpdateAndReplace

func UpdateAndReplace(d *lm.RestDevice, id int32, client *lm.DefaultApi) error

UpdateAndReplace updatess a device using the 'replace' OpType.

func UpdateAndReplaceField

func UpdateAndReplaceField(d *lm.RestDevice, id int32, field string, client *lm.DefaultApi) error

UpdateAndReplaceField updatess a device using the 'replace' OpType for a specific field of a device.

Types

This section is empty.

Jump to

Keyboard shortcuts

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