Documentation ¶
Index ¶
- func Add(d *lm.RestDevice, client *lm.DefaultApi) error
- func BuildSystemCategoriesFromLabels(categories string, labels map[string]string) string
- func Delete(d *lm.RestDevice, client *lm.DefaultApi) error
- func FindByDisplayName(name string, client *lm.DefaultApi) (*lm.RestDevice, error)
- func UpdateAndReplace(d *lm.RestDevice, id int32, client *lm.DefaultApi) error
- func UpdateAndReplaceField(d *lm.RestDevice, id int32, field string, client *lm.DefaultApi) error
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.