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

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

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.
Комментарий: Updated the talk macro with the following parameter(s): []
Sv translation
languageru
  • метаинформация о контакте
  • talk-15778

    Код

    Описание

    Структура Identity

    typedef i32 ItemId

    Идентификатор элемента в событии

    enum IdentityItemType {
    kPerson,
    kWorkstation,
    kDevice,
    kResource,
    }

    Вид элемента идентификации

    struct Attribute {
    1: required string name,
    2: required string value
    }

    Отдельный атрибут любой сущности события (самого события, идентификации, потока данных):

    1. контакт;
    Talk
    idtalk-15774
    struct ContactWithMeta {
    1: required Attribute contact,
    2: optional string meta
    }

    Контакты идентификации с метаинформацией:

    1. контакт;
    2. метаинформация о контакте

    struct Identity {

    1: required ItemId identity_id,
    2: required IdentityItemType identity_type,
    3: required list<Attribute> identity_contacts,
    4: optional list<Attribute> identity_attributes,
    5: optional list<ContactWithMeta> identity_contacts_with_meta

    }

    Идентификация получателя или отправителя объекта:

    1. уникальный номер идентификации внутри объекта, используется для ссылок на идентификацию;
    2. вид элемента идентификации;
    3. набор контактов идентификации;
    4. не обязательный
      Talk
      idtalk-15775
      набор атрибутов идентификации;
    5. набор контактов идентификации c метаинформацией

    struct EventData {
    1: required ItemId data_id,
    2: optional list<Attribute> data_attributes
    }

    Описание потока данных события:

    1. уникальный идентификатор потока данных внутри события, используется для ссылок на поток;
    2. необязательный набор атрибутов потока данных

    struct ChatMessage {
    1: required ItemId sender_id,
    2: required string sent_time,
    3: required string utf8_text,
    4: optional ItemId mes_data_id
    }

    Описание одного сообщения класса "Беседа":

    1. ссылка на идентификацию, которая является отправителем сообщения;
    2. локальное время передачи сообщения в формате ГГГГ-ММ-ДДTЧЧ:ММ:СС+ЧЧ:ММ (ISO 8601 c форматированием yyyy-MM-ddTHH:mm:sszzz);
    3. текст сообщения в кодировке UTF-8;
    4. идентификатор данных объекта, в которых будет передано содержимое сообщения, если utf8_text
      Talk
      idtalk-15776
      пустой

    typedef string LinkNameType
    struct ItemLink {

    1: required ItemId id,
    2: required ItemId link_to_id,
    3: required LinkNameType link_name
    }

    Описание связи между различными сущностями события:

    1. идентификатор сущности события, от которой идёт связь;
    2. идентификатор сущности события, к которой идёт связь;
    3. имя (тип) связи
    const LinkNameType link_name_ws = "workstation_link"Список имён поддерживаемых связей между сущностями:
    • имя для задания связи идентификаций типа
      Talk
      idtalk-15777
      "Персона" и "Рабочая станция"
    Talk
    id

    struct Event {
    1: required EventClass evt_class,
    2: required TmServiceType evt_service,
    3: optional list<Attribute> evt_attributes,
    4: required list<Identity> evt_senders,
    5: required list<Identity> evt_receivers,
    6: required list<EventData> evt_data,
    7: optional list<ChatMessage> evt_messages,
    8: optional list<ItemLink> evt_links,
    9: optional Identity evt_source,
    10: optional Identity evt_destination

    }

    Описание события, которое нужно передать в Traffic Monitor:

    1. класс события;
    2. сервис события;
    3. атрибуты события;
    4. отправители события;
    5. получатели события;
    6. данные события;
    7. сообщения события для класса "Беседа";
    8. связи между сущностями в событии;
    9. источник события;
    10. приемник события

    struct Credentials {
    1: required string company_name,
    2: required string token
    }

    Структура, описывающая параметры доступа к Traffic Monitor:

    1. название клиента (или компании в нашем случае
      Talk
      idtalk-15779
      ). Этот параметр связывает плагин внешнего разработчика с лицензией;
    2. токен авторизации. Эта строка является «секретом», который знают
      Talk
      idtalk-15780
      плагин и Traffic Monitor. Так реализована авторизация источника данных

    typedef i64 EventId

    Идентификатор загружаемого события

    typedef i64 StreamId

    Идентификатор загружаемого потока данных события

    typedef i32 InterfaceVersion
    const InterfaceVersion pushapi_version = 1

    Версия PushAPI интерфейса

    enum EventClass {
    kChat,
    kEmail,
    kMfp,
    kWeb,
    kFileExchange,
    kPhoto,
    kMultimedia,
    kVoiceTalk
    }

    Поддерживаемые "классы"

    Talk
    idtalk-15781
    событий в PushAPI:

    • Беседа
    • Почта
    • Печать, копирование и сканирование
    • Интернет-активность
    • Обмен файлами
    • Фотосъемка
    • Запись мультимедиа
    • Звонок
    Примечание
    titleПримечание:

    Если необходимо реализовать сценарий блокировки передачи данных

    Talk
    idtalk-15782
    по результатам анализа, то при отправке посредством PushAPI событий в Traffic Monitor используйте один из "классов" событий: kChat,kEmail,kWeb. Только для этих классов, соответствующих типам событий Мессенджер, Почта, Интернет-активность в Traffic Monitor реализована возможность назначения событию вердикта
    Talk
    idtalk-15783
    Заблокировано в политике защиты данных
    Talk
    idtalk-15784
    .

    Sv translation
    languageen

    Code

    Description

    Identity stucture

    typedef i32 ItemId

    Item identifier in the event

    enum IdentityItemType {
    kPerson,
    kWorkstation,
    kDevice,
    kResource,
    }

    Identification item type

    struct Attribute {
    1: required string name,
    2: required string value
    }

    A separate attribute of any event entity (the event itself, identification, dataflow):

    1. Contact
    2. Contact metadata
    struct ContactWithMeta {
    1: required Attribute contact,
    2: optional string meta
    }

    Identification contacts with metadata:

    1. Contact
    2. Contact metadata

    struct Identity {

    1: required ItemId identity_id,
    2: required IdentityItemType identity_type,
    3: required list<Attribute> identity_contacts,
    4: optional list<Attribute> identity_attributes,
    5: optional list<ContactWithMeta> identity_contacts_with_meta

    }

    Identification of the object receiver or sender:

    1. A unique identification number inside the object, used for links to identification
    2. Identification item type
    3. Identification list of contacts
    4. An optional set of identification attributes
    5. The list of identification contacts with metadata 

    struct EventData {
    1: required ItemId data_id,
    2: optional list<Attribute> data_attributes
    }

    Description of the event dataflow:

    1. A unique identifier of dataflow inside the event, used for links to dataflow
    2. An optional set of the dataflow attributes

    struct ChatMessage {
    1: required ItemId sender_id,
    2: required string sent_time,
    3: required string utf8_text,
    4: optional ItemId mes_data_id
    }

    Description of a single message of the Chat class:

    1. The link to the identification that is the message sender
    2. Local time when the message was sent in YYY-MM-DDTHH:MM:SS+HH:MM formatted (ISO 8601 format yyyy-MM-ddTHH:mm:sszzz)
    3. The message text in UTF-8 encoding
    4. An identifier of the object data that will be used to transfer the message content if utf8_text is empty

    typedef string LinkNameType
    struct ItemLink {

    1: required ItemId id,
    2: required ItemId link_to_id,
    3: required LinkNameType link_name
    }

    Description of connection between different entities of the event:

    1. An identifier of the event entity, from which the connection goes
    2. An identifier of the event entity, to which the connection goes
    3. The name (type) of the connection
    const LinkNameType link_name_ws = "workstation_link"The list of names of supported connections between entities:
    • a name to establish connection between identifications of the Person and Workstation types

    struct Event {
    1: required EventClass evt_class,
    2: required TmServiceType evt_service,
    3: optional list<Attribute> evt_attributes,
    4: required list<Identity> evt_senders,
    5: required list<Identity> evt_receivers,
    6: required list<EventData> evt_data,
    7: optional list<ChatMessage> evt_messages,
    8: optional list<ItemLink> evt_links,
    9: optional Identity evt_source,
    10: optional Identity evt_destination

    }

    Description of the event that must be transferred to Traffic Monitor:

    1. The event class
    2. The event service
    3. The event attributes
    4. The event senders
    5. The event recipients
    6. The event data
    7. Event messages for the Chat class
    8. Connections between the event entities
    9. The event source
    10. The event receiver

    struct Credentials {
    1: required string company_name,
    2: required string token
    }

    The structure that describes parameters to access Traffic Monitor:

    1. The client name (or the company name in our case). The parameter connects an external developper's plugin with the license.
    2. An authorization token. This string is a "secret" known by the plugin and Traffic Monitor. This is how the authorization of data source is implemented

    typedef i64 EventId

    An identifier of the event being loaded

    typedef i64 StreamId

    An identifier of the event dataflow being loaded

    typedef i32 InterfaceVersion
    const InterfaceVersion pushapi_version = 1

    PushAPI interface version

    enum EventClass {
    kChat,
    kEmail,
    kMfp,
    kWeb,
    kFileExchange,
    kPhoto,
    kMultimedia,
    kVoiceTalk
    }
    Supported event "classes" in PushAPI:
    • Chat
    • Mail
    • Printing, copying and scanning
    • Internet activity
    • File exchange
    • Photo
    • Multimedia recording
    • Call
    Информация
    titleNote:

    If you need to be able to block data transfer based on analysis results, then you can use one of the following classes:  kChat,kEmail,kWeb, when sending events to Traffic Monitor by means of PushAPI. These classes correspond to the following event types: Messenger, Mail, Internet activity. For these classes, Traffic Monitor allows you to set the Block verdict to events in the Data Protection Policy.