Zabbix::API::MediaType(3pm)

Zabbix::API::MediaType3pm

Usage

  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;

Overview

Handles CRUD for Zabbix media_type objects.

This is a subclass of "Zabbix::API::CRUDE"; see there for inherited methods.

Methods

name()

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.

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 ":media_types" tag.

Author

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

From libzabbix-api-perl 0.009-1 in Debian 8 (Jessie). Parsed by carta from the page's man source.