The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WebService::LogicMonitor::Host - A LogicMonitor Host/Device object

VERSION

version 0.211560

ATTRIBUTES

groups

Array of WebService::LogicMonitor::Group groups which this host is a member of.

Whilst you can modify the array directly, you should use the "add_to_group" and </remove_from_group> methods instead.

datasource_instances

A cache of any datasource instances that are retrieved.

METHODS

create

Create this host on LogicMonitor.

http://help.logicmonitor.com/developers-guide/manage-hosts/#add

update

Commit this host to LogicMonitor.

http://help.logicmonitor.com/developers-guide/manage-hosts/#update

get_datasource_instances(Str datasource_name)

Return an array of instances of a datasource on this host. The array will also be cached in "datasource_instances".

LogicMonitor's API does not list the datasources which actually apply to a host, or even which datasources are available on your account, so you must know in advance which datasource you want to retrieve.

http://help.logicmonitor.com/developers-guide/manage-hosts/#instances

add_to_group($group)

Add this host to the specified group. $group can be either a string representing a group's full path, e.g. '/AWS/us-east-1/WebServers', or a WebService::LogicMonitor::Group object.

remove_from_group($group)

Remove this host from the specified group. $group can be either a string representing a group's full path, e.g. '/AWS/us-east-1/WebServers', or a WebService::LogicMonitor::Group object.

delete

Remove this host from LogicMonitor.

http://help.logicmonitor.com/developers-guide/manage-hosts/#delete

This differes from LoMo's API in that it will always remove a host from the system. If you want to remove a host from a group, use "remove_from_group".

AUTHOR

Ioan Rogers <ioan.rogers@sophos.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2021 by Sophos Ltd.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.