SYNOPSIS

  use Zabbix::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;

DESCRIPTION

Handles \s-1CRUD\s0 for Zabbix media_type objects.

This is a subclass of \*(C`Zabbix::API::CRUDE\*(C'; see there for inherited methods.

METHODS

name()

Accessor for the media type's name (the \*(L"description\*(R" attribute); returns the empty string if no description is set, for instance if the media type has not been created on the server yet.

type()

Accessor for the media type's type.

EXPORTS

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 \*(C`:media_types\*(C' tag.

RELATED TO Zabbix::API::MediaType…

Zabbix::API::CRUDE.

AUTHOR

Ray Link; maintained by Fabrice Gabolde <[email protected]>

COPYRIGHT AND LICENSE

Copyright (C) 2013 \s-1SFR\s0

This library is free software; you can redistribute it and/or modify it under the terms of the GPLv3.