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

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

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.
Комментарий: Published by Scroll Versions from space TMINT and version 6.10
Sv translation
languageru
Название функцииОписание фунцииКод
GetVersionФункция получения текущей версии интерфейса

InterfaceVersion GetVersion()

VerifyCredentialsФункция проверки параметров доступа к интерфейсу pushAPI SDK.
Позволяет проверить возможность передачи данных до их реальной передачи:
void VerifyCredentials(1: Credentials cred)
throws(1: InvalidCredentials ex);
BeginEvent

Функция инициирует процесс передачи события перехвата на Traffic Monitor, используя pushAPI SDK, где:

  • event – заполненная структура содержащая все «метаданные», которые описывают событие перехвата. Атрибуты: отправителя, получателя, списка потоков данных, которые связаны с событием;
  • cred – структура, которая позволяет авторизовать процесс передачи события;
  • return – идентификатор события с сессии передачи данных (в одной и той же TCP-сессии можно передавать несколько событий).
ventId BeginEvent(1: Event event, 2: Credentials cred)
throws(1: InvalidEventFormat ex1, 2: InvalidCredentials ex2, 3: LicenseError ex3, 4: EventNotFound ex4, 5: DataNotFound ex5);
BeginStream

Функция инициирует передачу потока данных, который связан с событием перехвата данных, где:

  • event_id – идентификатор события, с которым связан данный поток данных. Возвращается функцией BeginEvent;
  • event_data_id – идентификатор передаваемых данных. Этот идентификатор передаётся в составе «метаданных» события, в поле evt_data;
  • return – идентификатор загружаемого потока.
StreamId BeginStream(1: EventId event_id, 2: ItemId event_data_id)
throws(1: EventNotFound ex1, 2: DataNotFound ex2);
SendStreamData

Функция передаёт буфер данных в составе потока данных, который связан с событием перехвата данных, где:

  • event_id – идентификатор события, с которым связан данный поток данных. Возвращается функцией BeginEvent;
  • stream_id – идентификатор потока данных, в составе которого передаётся буфер. Возвращается функцией BeginStream;
  • chunk – буфер данных. Пользователь SDK сам должен выбирать разумный размер буфера данных, чтобы обеспечить достаточную скорость загрузки событий, но не перегружать сетевую инфраструктуру.
void SendStreamData(1: EventId object_id, 2: StreamId stream_id, 3: binary chunk)
throws(1: EventNotFound ex1, 2: StreamNotFound ex2, 3: InvalidEventFormat ex3);
 EndStream

Функция фиксирует конец передачи потока данных, связанного с событием перехвата, где:

  • event_id – идентификатор события, с которым связан данный поток данных. Возвращается функцией BeginEvent;
  • stream_id – идентификатор потока данных, в составе которого передаётся буфер. Возвращается функцией BeginStream.
void EndStream(1: EventId event_id, 2: StreamId stream_id)
throws(1: EventNotFound ex1, 2: StreamNotFound ex2, 3: InvalidEventFormat ex3);
 EndEvent

Функция фиксирует конец передачи события перехвата, где:

  • event_id – идентификатор события, передача которого завершается;
  • abort – флаг прекращения обработки события в TMTraffic Monitor. Если флаг выставлен в true, то обработка загружаемого события прекращается, и TM Traffic Monitor про него «забывает».
void EndEvent(1: EventId event_id, 2: bool abort)
throws(1: EventNotFound ex1, 2: InvalidEventFormat ex2, 3: LicenseError ex3);
 GetEventDatabaseld

Функция получения уникального идентификатора события перехвата в системе Traffic Monitor, где:

  • event_id – идентификатор события, полученный вызовом BeginEvent.

Это значение можно использовать для ссылки на загруженное событие. Функцию можно вызывать после удачного выполнения функции BeginEvent

string GetEventDatabaseId(1: EventId object_id)
throws(1: EventNotFound ex1);

The section contains the following subsections:

  • Функция GetVersion
  • Функция VerifyCredentials
  • Функция BeginEvent
  • Функция BeginStream
  • Функция EndStream
  • Функция EndEvent
  • Функция GetEventDatabaseId
    Sv translation
    languageen
    Function nameFunction descriptionCode
    GetVersionFunction of getting the current interface version

    InterfaceVersion GetVersion()

    VerifyCredentialsAuditing function of pushAPI SDK interface access parameters. 
    Let you to verify the data transfer before its transfer:
    void VerifyCredentials(1: Credentials cred)
    throws(1: InvalidCredentials ex);
    BeginEvent

    Function initiating the transfer process of event interception to Traffic Monitor by means of pushAPI SDK, where:

    • event – filled in structure, containing all "metada" describing the interception event. Attributes: sender, recipient, list of data streams, related to event;
    • cred – structure, which allows the authorise the event transfer process;
    • return – data transfer session event identification (few events can be transferred within one TCP-session ).
    ventId BeginEvent(1: Event event, 2: Credentials cred)
    throws(1: InvalidEventFormat ex1, 2: InvalidCredentials ex2, 3: LicenseError ex3, 4: EventNotFound ex4, 5: DataNotFound ex5);
    BeginStream

    Function of data stream transfer initiation, related to interception event, where:

    • event_id – evend identificator, related to this data stream. To be returned by BeginEvent function;
    • event_data_id – data transfer identificator. This identificator is a part of event "metadata",in evt_data field;
    • return – identification of loading stream.
    StreamId BeginStream(1: EventId event_id, 2: ItemId event_data_id)
    throws(1: EventNotFound ex1, 2: DataNotFound ex2);
    SendStreamData

    Function transferring the clipboard as a part of data stream related to interception event, where:

    • event_id – event identificator, related to this data stream. To be returned by BeginEvent function;
    • stream_id – data steam identificator, where clipboard is a part transferred data. To be returned by BeginStream function;
    • chunk – clipboard. SDK user should specify the buffer size to provide enough speed of events loading with no overload of network infrastructure.
    void SendStreamData(1: EventId object_id, 2: StreamId stream_id, 3: binary chunk)
    throws(1: EventNotFound ex1, 2: StreamNotFound ex2, 3: InvalidEventFormat ex3);
     EndStream

    Fucntion, recording the data stream finishing, related to event interception, where:

    • event_id – event identificator, related to this data stream. To be returned by BeginEvent function;
    • stream_id – data stream identificator, where clipboard is a part transferred data. To be by BeginEvent function.
    void EndStream(1: EventId event_id, 2: StreamId stream_id)
    throws(1: EventNotFound ex1, 2: StreamNotFound ex2, 3: InvalidEventFormat ex3);
     EndEvent

    Fucntion, recording the data stream finishing, related to event interception, where:

    • event_id – event identificator, which transfer is finishing;
    • abort – flag of event processing finish within Traffic Monitor. If the flag is true, the event processing is over and Traffic Monitor is about "to forget" about it.
    void EndEvent(1: EventId event_id, 2: bool abort)
    throws(1: EventNotFound ex1, 2: InvalidEventFormat ex2, 3: LicenseError ex3);
     GetEventDatabaseld

    Function of getting unique interception event identification within Traffic Monitor System, where:

    • event_id – event identificator, got by calling BeginEvent.

    This value can be used to refer to loaded event. The function can be called after successful completion of BeginEvent function.

    string GetEventDatabaseId(1: EventId object_id)
    throws(1: EventNotFound ex1);