NAME
Zabbix2::API::HostGroup -- Zabbix group objects
SYNOPSIS
use Zabbix2::API::HostGroup;
# fetch a single hostgroup by ID
my $group = $zabbix->fetch_single('HostGroup', params => { groupids => [ 12345 ] });
# get the hosts which belong to it
my $hosts = $group->hosts;
DESCRIPTION
Handles CRUD for Zabbix group objects.
This is a subclass of Zabbix2::API::CRUDE
; see there for inherited methods.
ATTRIBUTES
hosts
(read-only arrayref of Zabbix::API::Host objects)
This attribute is lazily populated with the hostgroup's hosts from the server.
SEE ALSO
AUTHOR
Fabrice Gabolde <fga@cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2011, 2014 SFR
This library is free software; you can redistribute it and/or modify it under the terms of the GPLv3.