Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.
Комментарий: Published by Scroll Versions from space TMAG and version 7.14
In commands, use Device Monitor token as tokenattribute value. Copy it from Manage->Pluginssection in Management console.

Examples on how to send events of Email class

Example 1:

To send an Email class event of Emailservice to Traffic Monitor, use the command below
Sv translation
languageru

С помощью тестовой утилиты pushapi-util можно отправить в Traffic Monitor события для любых встроенных сервисов и классов, используя встроенный плагин Device Monitor.

Информация
titleПримечание:

В командах в качестве значения атрибута token используйте значение токена Device Monitor. Его можно скопировать в разделе Управление -> Плагины Консоли управления Traffic Monitor.

Примеры отправки событий класса Почта

Пример 1:

Чтобы отправить в Traffic Monitor событие класса Почта сервиса Электронная почта, используйте команду вида:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class email \
--service email \
--evtattr event_name:"Send email" \
--sender email:"mail_sender@mail.ru" \
--receiver email:"mail_receiver1@mail.ru" \
--receiver email:"mail_receiver2@mail.ru" \
--data file:/root/test_email.eml

Где test_email.eml – это файл, содержащий передаваемое письмо. Атрибуты data, sender и receiver являются обязательными.

В Консоли управления Traffic Monitor событие будет выглядеть следующим образом:

Пример 2:

Чтобы отправить в Traffic Monitor событие класса Почта сервиса Веб-почта, используйте команду вида:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class email \
--service email_web \
--evtattr event_name:"Send email_web" \
--sender email:"mail_sender@mail.ru" \
--receiver email:"mail_receiver1@mail.ru" \
--data file:/root/test_email.eml
Примеры

Пример отправки событий класса Беседа

Пример 1:

Чтобы отправить в Traffic Monitor событие класса Беседа для мессенджера ICQSkype, содержащее метаинформацию об отправителях, используйте команду вида:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class imchat \
--service im_icqskype \
--evtattr event_name:"ICQ chatSkype event" \
--receiver icq:IcqReceiver \
--mes icq:IcqSendermes "skype:349051292:'{\"display_name\":\"SkypeUser1\",\"login\":\"user1_skype\"}'","Confidential information"

Атрибуты mes и receiver являются обязательными.

Пример 2:

Чтобы отправить в Traffic Monitor событие класса Беседа для мессенджера Skype, содержащее метаинформацию об отправителях, используйте команду вида:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class imchat \
--service im_skype \
--evtattr event_name:"Skype event" \
--mes "skype:349051292:'{\"display_name\":\"SkypeUser1\",\"login\":\"user1_skype\"}'","Confidential information" \
--mes "skype:349051100:'{\"display_name\":\"SkypeUser2\",\"login\":\"user2_skype\"}'","Thank you"

Здесь для отправителей сообщений указана метаинформация, включающая в себя отображаемое имя и логин отправителя. В Консоли Управления Traffic Monitor событие будет выглядеть следующим образом:

Image Removed

Примеры отправки событий класса Печать, копирование и сканирование

Чтобы отправить в Traffic Monitor событие класса Печать, копирование и сканирование сервиса Принтер и МФУ, используйте команды следующего вида:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class mfp \
--service print \
--evtattr event_name:"Print event" \
--receiver dev:"Some Printer Name" \
--data file:/root/test.png,filename:test.png

и

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class mfp \
--service print \
--evtattr event_name:"Print event" \
--receiver dev:"Some Printer Name",print_port_name:"Some print port name",print_location:"Some print location" \
--data file:/root/test.png,print_copies:3,print_job_name:"Some print job name"

Атрибуты receiver и data являются обязательными. Также команда должна содержать один из атрибутов filename и print_job_name.

Примеры отправки событий класса Интернет-активность
 \
--mes "skype:349051100:'{\"display_name\":\"SkypeUser2\",\"login\":\"user2_skype\"}'","Thank you"

Здесь для отправителей сообщений указана метаинформация, включающая в себя отображаемое имя и логин отправителя. В Консоли Управления Traffic Monitor событие будет выглядеть следующим образом:

Image Added

Примеры отправки событий класса Печать, копирование и сканирование

Чтобы отправить в Traffic Monitor событие класса Интернет-активность одноименного сервиса Печать, копирование и сканирование сервиса Принтер и МФУ, используйте команду команды следующего вида:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class webmfp \
--service web_commonprint \
--evtattr event_name:"WebPrint event1event" \
--receiver res:"drive.google.com",res_destination_url:"/file/test--receiver dev:"Some Printer Name" \
--data file:/root/test

Где test – это файл, содержащий POST-запрос. В нашем примере в передаваемом запросе присутствует фраза строго конфиденциально. При настроенных политиках защиты данных событие будет выглядеть следующим образом:

Image Removed

Атрибуты data и receiver являются обязательными.

Пример отправки событий класса Фотосъемка

Чтобы отправить в Traffic Monitor событие класса Фотосъемка, используйте команду вида:
root/test.png,filename:test.png

и

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token yourdevice_pluginmonitor_token_value \
--id iw \
--class photomfp \
--service photosofprint \
--evtattr event_name:"PhotoPrint event" \
--receiver wsdev:"ws1.domain.orgSome Printer Name",workstationprint_port_typename:"ws_type_computerSome print port name",print_location:"Some print location" \
--data file:/root/test.png,filename:test.png

Примеры отправки событий класса Обмен файлами

Атрибуты receiver, data и destination_file_path обязательны для событий сервисов Облачные хранилища, Терминальная сессия, Сетевые ресурсы, FTP и Съемное устройство.

Атрибуты receiver и data обязательны для событий класса Обмен файлами сервиса Мессенджеры.

Пример 1:
,print_copies:3,print_job_name:"Some print job name"

Атрибуты receiver и data являются обязательными. Также команда должна содержать один из атрибутов filename и print_job_name.

Примеры отправки событий класса Интернет-активность

Чтобы отправить в Traffic Monitor событие класса Обмен файлами сервиса Облачные хранилища Интернет-активность одноименного сервиса, используйте команду следующего вида:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class fileexchweb \
--service cloudweb_storagecommon \
--evtattr event_name:"cloud_storageWeb event" \
--sender auth:user_name@iwevent1" \
--receiver res:googledrive"drive.google.com",res_destination_url:"goodledrive.com/userfile/folder/test"  \
--data file:/root/test

Где test

.png,destination_file_path:"Send file here"

Событие в Консоли управления Traffic Monitor:

Image Removed

Пример 2: – это файл, содержащий POST-запрос. В нашем примере в передаваемом запросе присутствует фраза строго конфиденциально. При настроенных политиках защиты данных событие будет выглядеть следующим образом:

Image Added

Атрибуты data и receiver являются обязательными.

Пример отправки событий класса Фотосъемка

Чтобы отправить в Traffic Monitor событие класса Обмен файлами сервиса Терминальная сессия Фотосъемка, используйте команду вида:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token deviceyour_monitorplugin_token_value \
--id iw \
--class fileexchphoto \
--service terminal_sessionphotosof \
--evtattr event_name:"terminal_sessionPhoto event" \
--sender phone:+79057777777" \
--receiver res:root@test.comws:"ws1.domain.org",workstation_type:"ws_type_computer" \
--data file:/root/test.png,filename:test.png

Примеры отправки событий класса Обмен файлами

Атрибуты receiver, data и destination_file_path

:"test.com/folder"

Пример 3 обязательны для событий сервисов Облачные хранилища, Терминальная сессия, Сетевые ресурсы, FTP и Съемное устройство.

Атрибуты receiver и data обязательны для событий класса Обмен файлами сервиса Мессенджеры.

Пример 1:

Чтобы отправить в Traffic Monitor событие класса Обмен файлами сервиса Сетевые ресурсы Облачные хранилища, используйте команду вида:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class fileexch \
--service networkcloud_resourcestorage \
--evtattr event_name:"networkcloud_resourcestorage event" \
--sender "auth:user_name@iw:'{\"display_name\":\"friend\",\"login\":\"villain\"}'" \
--receiver res:testgoogledrive.com,res_destination_url:"testgoodledrive.com/user/folder/ "  \
--data file:/root/test.png,destination_file_path:"Send file here"

Событие в Консоли управления Traffic Monitor:

Image RemovedImage Added

Пример 42:

Чтобы отправить в Traffic Monitor событие класса Обмен файлами сервиса FTP Терминальная сессия, используйте команду вида:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class fileexch \
--service ftpterminal_session \
--evtattr event_name:"FTPterminal_session Eventevent" \
--sender loginphone:villain+79057777777 \
--receiver res:ftp.site.org,res_destination_url:"catalog\catalog\res.file"root@test.com \
--data file:/root/test.png,destination_file_path:"Send file heretest.com/folder"

Пример 53:

Чтобы отправить в Traffic Monitor событие класса Обмен файлами сервиса Съемное устройство Сетевые ресурсы, используйте команду вида:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class fileexch \
--service file_copy_removable \
--evtattr event_name:"Copy file on devicenetwork_resource \
--evtattr event_name:"network_resource event" \
--sender "auth:user_name@iw:'{\"display_name\":\"friend\",\"login\":\"villain\"}'" \
--receiver dev:"Removable device"res:test.com,res_destination_url:"test.com/folder/ "  \
--data file:/root/test.png,source_file_path:"Copy from here",destination_file_path:"Send file here"

Событие в Консоли управления Traffic Monitor:

Image Added

Пример 64:

Чтобы отправить в Traffic Monitor событие класса Обмен файлами для мессенджера ICQ сервиса FTP, используйте команду вида:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class fileexch \
--service im_icqftp \
--evtattr event_name:"ICQFTP File Transfer Event"Event" \
--sender login:villain \
--receiver icq:IcqReceiverres:ftp.site.org,res_destination_url:"catalog\catalog\res.file" \
--data file:/root/test.png
Пример 7
/root/test.png,destination_file_path:"Send file here"

Пример 5:

Чтобы отправить в Traffic Monitor событие класса Обмен файлами для мессенджера Skype сервиса Съемное устройство, используйте команду вида:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class fileexch \
--service imfile_copy_skyperemovable \
--evtattr event_name:"SkypeCopy Filefile Transferon Event" \
--sender skype:SkypeSenderdevice" \
--receiver skypedev:SkypeReceiver1 \
--receiver skype:SkypeReceiver2"Removable device" \
--data file:/root/test.png,filename:test.png
Пример отправки события класса Звонок
source_file_path:"Copy from here",destination_file_path:"Send file here"

Пример 6:

Чтобы отправить в Traffic Monitor событие класса Звонок сервиса Мессенджеры Обмен файлами для мессенджера Skype, используйте команду вида:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class voicetalkfileexch \
--service im_skype \
--evtattr event_name:"Skype VoiceFile Transfer TalkEvent" \
--sender skype:SkypeSender \
--receiver skype:SkypeReceiverSkypeReceiver1 \
--datareceiver file:/root/sound_msg.wav,call_duration:7

Событие содержит аудиофайл sound_msg.wav, а длительность разговора составляет 7 секунд. В Консоли управления Traffic Monitor аудиофайл будет доступен для скачивания. Атрибуты receiver, data и call_duration обязательны для событий класса Звонок сервиса Мессенджеры.

Примеры отправки событий класса Запись мультимедиа
skype:SkypeReceiver2 \
--data file:/root/test.png,filename:test.png

Пример отправки события класса Звонок

Чтобы отправить в Traffic Monitor событие класса Запись мультимедиа, используйте Звонок сервиса Мессенджеры, используйте команду вида:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token yourdevice_pluginmonitor_token_value \
--id iw \
--class multimediavoicetalk \
--service videosof im_skype \
--evtattr event_name:"Skype Voice Talk" \
--evtattrsender event_name:"Video event" skype:SkypeSender \
--receiver ws:"ws1.domain.org",workstation_type:"ws_type_computer"skype:SkypeReceiver \
--data file:/root/video.avi
Sv translation
languageen

With the help of pushapi-util test utility, you can send events for any built-in services and classes to Traffic Monitor using the built-in Device Monitor plugin.

Информация
titleNote
sound_msg.wav,call_duration:7

Событие содержит аудиофайл sound_msg.wav, а длительность разговора составляет 7 секунд. В Консоли управления Traffic Monitor аудиофайл будет доступен для скачивания. Атрибуты receiver, data и call_duration обязательны для событий класса Звонок сервиса Мессенджеры.

Примеры отправки событий класса Запись мультимедиа

Чтобы отправить в Traffic Monitor событие класса Запись мультимедиа, используйте команду вида:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token deviceyour_monitorplugin_token_value \
--id iw \
--class emailmultimedia \
--service emailvideosof \
--evtattr event_name:"Send email" \
--sender email:"mail_sender@mail.ruVideo event" \
--receiver emailws:"mail_receiver1@mail.ru" \
--receiver email:"mail_receiver2@mail.ruws1.domain.org",workstation_type:"ws_type_computer" \
--data filedata file:/root/test_email.eml

In the command above, test_email.eml is a file that contains the message. The data, sender and receiver attributes are required.

In Traffic MonitorManagement console, the event looks as follows:

Image Removed

Example 2
video.avi
Sv translation
languageen

With the help of pushapi-util test utility, you can send events for any built-in services and classes to Traffic Monitor using the built-in Device Monitor plugin.

Информация
titleNote
In commands, use Device Monitor token as tokenattribute value. Copy it from Manage->Pluginssection in Management console.

Examples on how to send events of Email class

Example 1:

To send an Email class event of Web email  Emailservice to Traffic Monitor, use the command below:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class email \
--service email_web \
--evtattr event_name:"Send email_web" \
--sender email:"mail_sender@mail.ru" \
--receiver email:"mail_receiver1@mail.ru" \
--receiver email:"mail_receiver2@mail.ru" \
--data file:/root/test_email.eml

Examples on how to send events of Chat class

Example 1:

To send a Chat class event for ICQ application

In the command above, test_email.eml is a file that contains the message. The data, sender and receiver attributes are required.

In Traffic MonitorManagement console, the event looks as follows:

Image Added

Example 2:

To send anEmail event of Web email service to Traffic Monitor, use the command below:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class imchatemail \
--service imemail_icqweb \
--evtattr event_name:"ICQ chat eventSend email_web" \
--receiversender icq:IcqReceiveremail:"mail_sender@mail.ru" \
--mesreceiver icq:IcqSender,"Confidential information"

The mes and receiver attributes are required.

Example 2
email:"mail_receiver1@mail.ru" \
--data file:/root/test_email.eml

Examples on how to send events of Chat class

Example:

To send a Chat class event for Skype application to Traffic Monitor, use the command below. Note that in this example the event contains metadata about senders.

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class imchat \
--service im_skype \
--evtattr event_name:"Skype event" \
--mes "skype:349051292:'{\"display_name\":\"SkypeUser1\",\"login\":\"user1_skype\"}'","Confidential information" \
--mes "skype:349051100:'{\"display_name\":\"SkypeUser2\",\"login\":\"user2_skype\"}'","Thank you"

The sender metadata includes the displayed name and Skype login name of a sender. In Traffic MonitorManagement console, the event looks as follows:

Examples on how to send events of Printers and MFPs class

To send a Printers and MFPs class event of Print service to Traffic Monitor, use the command below:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class mfp \
--service print \
--evtattr event_name:"Print event" \
--receiver dev:"Some Printer Name" \
--data file:/root/test.png,filename:test.png

and

Printers and MFPs class event of Print service to Traffic Monitor, use the command below:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class mfp \
--service print \
--evtattr event_name:"Print event" \
--receiver dev:"Some Printer Name",print_port_name:"Some print port name",print_location:"Some print location" \
--data file:/root/test.png,print_copies:3,print_job_name:"Some print job name"
The receiver anddata attributes are required. The command should also contain one of the following attributes:filename or print_job_name.

Example on how to send events of Internet Activity class

To send anInternet Activity class event of Web_common service to Traffic Monitor, use the command below:
:/root/test.png,filename:test.png

and

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class webmfp \
--service web_commonprint \
--evtattr event_name:"WebPrint event1event" \
--receiver res:"drive.google.com",res_destination_url:"/file/test dev:"Some Printer Name",print_port_name:"Some print port name",print_location:"Some print location" \
--data file:/root/test

In the command above, test is a file that contains a POST query. In our example, the query contains the strictly confidential phrase. When you configure data protection policies, the event looks as follows:

Image Removed

Thedata andreceiver attributes are required
.png,print_copies:3,print_job_name:"Some print job name"

The receiver anddata attributes are required. The command should also contain one of the following attributes:filename or print_job_name.

Example on how to send events

of Photo

of Internet Activity class

There are no built-in services to send Photo class events. Register your own service and To send anInternet Activity class event of Web_common service to Traffic Monitor, use the command below:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token yourdevice_pluginmonitor_token_value \
--id your_companyiw \
--class photoweb \
--service yourweb_multimedia_servicecommon \
--evtattr event_name:"PhotoWeb eventevent1" \
--receiver wsres:"ws1drive.domaingoogle.orgcom",workstationres_destination_typeurl:"ws_type_computer/file/test" \
--data file:/root/test

In the command above, test

.png,filename:test.png

Examples on how to send events of File Exchange class

The receiver,data and destination_file_path attributes are required for events of Cloud storage,Terminal session,Network resourse,FTPand External device services.The receiver anddata attributes are required for File Exchangeclass events of Messengers service.

Example 1:

To send File Exchangeclass event of Cloud Storage serviceis a file that contains a POST query. In our example, the query contains the strictly confidential phrase. When you configure data protection policies, the event looks as follows:

Image Added

Thedata andreceiver attributes are required.

Example on how to send events of Photo class

To send a Photo class event to Traffic Monitor, use the command below:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token deviceyour_monitorplugin_token_value \
--id iw \
--class fileexchphoto \
--service cloud_storagephotosof \
--evtattr event_name:"cloud_storagePhoto event" \
--sender auth:user_name@iw \
--receiver res:googledrive.com,res_destination_url:"goodledrive.com/user/folder/" ws:"ws1.domain.org",workstation_type:"ws_type_computer" \
--data filedata file:/root//test.png,filename:test.png

Examples on how to send events of File Exchange class

The receiver,data and destination_file_path

:"Send file here"In Traffic MonitorManagement console, the event looks as follows:

Image Removed

Example 2 attributes are required for events of Cloud storage,Terminal session,Network resourse,FTPand External device services.

The receiver anddata attributes are required for File Exchangeclass events of Messengers service.

Example 1:

To send a File exchange Exchangeclass event of Terminal session service to Traffic Monitor Cloud Storage service, use the command below:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class fileexch \
--service terminalcloud_sessionstorage \
--evtattr event_name:"terminalcloud_sessionstorage event" \
--sender phone:+79057777777auth:user_name@iw \
--receiver res:googledrive.com,res:root@test.com _destination_url:"goodledrive.com/user/folder/"  \
--data file:/root/test.png,destination_file_path:"test.com/folder"
Example 3
path:"Send file here"

In Traffic MonitorManagement console, the event looks as follows:

Image Added

Example 2:

To send a File exchange class event of Network resources  Terminal session service to Traffic Monitor, use the command below:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class fileexch \
--service networkterminal_resourcesession \
--evtattr event_name:"networkterminal_resourcesession event" \
--sender "auth:user_name@iw:'{\"display_name\":\"friend\",\"login\":\"villain\"}'"phone:+79057777777 \
--receiver res:test.com,res_destination_url:"test.com/folder/ "  res:root@test.com \
--data file:/root/test.png,destination_file_path:"Send file here"

 In Traffic Monitor Management console, the event looks as follows:

Image Removed

Example 4
test.com/folder"

Example 3:

To send a File exchange  class event of Network resources FTP service to Traffic Monitor, use the command below:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class fileexch \
--service ftpnetwork_resource \
--evtattr event_name:"network_resource event" \
--sender "auth:user_name@iw:'{\"display_name\":\"FTP Event" \
--sender login:villainfriend\",\"login\":\"villain\"}'" \
--receiver res:ftptest.site.orgcom,res_destination_url:"catalog\catalog\res.file"test.com/folder/ "  \
--data file:/root/test.png,destination_file_path:"Send file here"

 In Traffic Monitor Management console, the event looks as follows:

Image Added

Example 54:

To send aFile exchange class event of External device FTP service to Traffic Monitor, use the command below:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class fileexch \
--service file_copy_removableftp \
--evtattr event_name:"CopyFTP file on device"Event" \
--sender login:villain \
--receiver dev:"Removable deviceres:ftp.site.org,res_destination_url:"catalog\catalog\res.file" \
--data file:/root/test.png,source_file_path:"Copy from here",destination_file_path:"SendSend file file here"

Example 65:

To send a File exchange class event for ICQ application of External device service to Traffic Monitor, use the command below:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class fileexch \
--service imfile_copy_icqremovable \
--evtattr event_name:"ICQCopy Filefile Transferon Eventdevice" \
--receiver icq:IcqReceiverdev:"Removable device" \
--data file:/root/test.png,source_file_path:"Copy from here",destination_file_path:"Send file here"

Example 7:

To send a File exchange class event for Skype application to Traffic Monitor, use the command below:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class fileexch \
--service im_skype \
--evtattr event_name:"Skype File Transfer Event" \
--sender skype:SkypeSender \
--receiver skype:SkypeReceiver1 \
--receiver skype:SkypeReceiver2 \
--data file:/root/test.png,filename:test.png

Example on how to send events of Call class

To send a Call class event of Messengers service to Traffic Monitor, use the command below:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class voicetalk \
--service im_skype \
--evtattr event_name:"Skype Voice Talk" \
--sender skype:SkypeSender \
--receiver skype:SkypeReceiver \
--data file:/root/sound_msg.wav,call_duration:7

The event contains sound_msg.wav audio file with the call duration of 7 seconds. The file is available for download in Traffic Monitor Management Console. The receiver, data and call_duration attributes are required for Call event classes of Messengers service.

Examples on how to send events of Recording media class

There are no built-in services to send events of To send a Recording media class . Register your own service and event to Traffic Monitor, use the command below:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token your_plugin_token_value \
--id your_companyiw \
--class multimedia \
--service your_multimedia_servicevideosof \
--evtattr event_name:"CameraVideo Eventevent" \
--receiver ws:"ws1.domain.org",workstation_type:"ws_type_computer" \
--data filedata file:/root/video.avi