Zabbix2::API::MediaType -- Zabbix media type objects
use Zabbix2::API::MediaType; # fetch a meda type by name my $mediatype = $zabbix->fetch('MediaType', params => { filter => { description => "My Media Type" } })->[0]; # and update it $mediatype->data->{exec_path} = 'my_notifier.pl'; $mediatype->push;
Handles CRUD for Zabbix media_type objects.
This is a subclass of Zabbix2::API::CRUDE; see there for inherited methods.
Zabbix2::API::CRUDE
Accessor for the media type's name (the "description" attribute); returns the empty string if no description is set, for instance if the media type has not been created on the server yet.
Accessor for the media type's type.
Some constants:
MEDIA_TYPE_EMAIL MEDIA_TYPE_EXEC MEDIA_TYPE_SMS MEDIA_TYPE_JABBER MEDIA_TYPE_EZ_TEXTING
These are used to specify the media type's type. They are not exported by default, only on request; or you could import the :media_types tag.
:media_types
Zabbix2::API::CRUDE.
Ray Link; maintained by Fabrice Gabolde <fga@cpan.org>
Copyright (C) 2013 SFR
This library is free software; you can redistribute it and/or modify it under the terms of the GPLv3.
To install Zabbix2::API, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Zabbix2::API
CPAN shell
perl -MCPAN -e shell install Zabbix2::API
For more information on module installation, please visit the detailed CPAN module installation guide.