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

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

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.
Комментарий: Published by Scroll Versions from space TMINT and version 6.11
Sv translation
languageru
Наименование string name required value, , sender_id - sent_time – utf8_text - mes_data_id - ;

Код

Описание

Пример кода

EventId

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

typedef i64 EventId

StreamId

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

typedef i64 StreamId

Структура Identity

typedef i32 ItemId

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

typedef i32 ItemId

InterfaceVersion

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

typedef i32 InterfaceVersion

struct Attribute

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

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

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

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

  1. контакт;
  2. метаинформация о контакте
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

}

struct EventData

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

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

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

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

data_id - Уникальный Описание потока данных события:

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

struct ItemLink

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

{
1: required ItemId id,
2: required ItemId link_to_id,
3: required string link_name
}
id - идентификатор сущности события, от которой идёт связь;
link_to_id - идентификатор сущности события, к которой идёт связь;
link_name - имя(тип) связи;

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

struct ChatMessage

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


}

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

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

struct Event

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

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"Список имён поддерживаемых связей между сущностями:
  • имя для задания связи идентификаций типа "Персона" и "Рабочая станция"

struct Event {
1: required EventClass evt_class,
2: required string 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,
8 7: optional list<ChatMessage> evt_messages,
7 8: optional list<ItemLink> evt_links
}
evt_class - ,
9: optional Identity evt_source,
10: optional Identity evt_destination

}

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

  1. класс события;
evt_service -
  1. сервис события;
evt_attributes -
  1. атрибуты события;
evt_senders -
  1. отправители события;
evt_receivers -
  1. получатели события;
evt_data -
  1. данные события;
evt_messages -
  1. сообщения события для класса "Беседа";
evt_links -
  1. связи между сущностями в событии;
  2. источник события;
  3. приемник события

struct Credentials

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

{
1: required string company_name,
2: required string token
}company_name -

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

  1. название клиента (или компании в нашем случае). Этот параметр связывает плагин внешнего разработчика с лицензией;
token -
  1. токен авторизации. Эта строка является «секретом», который знают плагин и 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
}

Поддерживаемые "классы" событий в PushAPI:

  • Беседа
  • Почта
  • Печать, копирование и сканирование
  • Интернет-активность
  • Обмен файлами
  • Фотосъемка
  • Запись мультимедиа
  • Звонок
Sv translation
languageen
NameEventIdA separate attribute of any entity of the event the the data stream){  id   attributes 
}{ 
1: required ItemId id, 
2: required ItemId link_to_id, 
3: required string link_name 
} 
where 
id is an identifier of the event entity, from which the connection goes; 
link_to_id is an identifier of the event entity, to which the connection goes; 
link_name is the connection name (type).{   string    receivers  8 7links  
where
evt_class is  evt_service is  evt_attributes are  evt_senders are  evt_receivers are  evt_data is  evt_ are messages for the "Chat" class evt_links are connections between entities in the event.{   token  
where
company_name is the name of the client (or company in our case). This parameter connects the plugin of an external developer with the license; 
token is an authorization token. This string is a "secret" known to The the is implemented in this way.

Code

Description

Sample code

Identity stucture

typedef i32 ItemId

An

identifier of the loaded event
typedef i64 EventId
StreamIdAn identifier of the loaded stream with the event datatypedef i64 StreamId
ItemIdAn identifier of the element in the eventtypedef i32 ItemId
InterfaceVersionThe version of PushAPI interfacetypedef i32 InterfaceVersion
struct Attribute

event item identifier

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

An identity item type

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

A specific attribute of any event entity (the event itself,

identification,

dataflow):

  1. contact;
  2. contact metadata
struct ContactWithMeta {
1: required string nameAttribute contact, 
2: required optional string value, meta
}

The contacts of identification with metadata:

  1. contact;
  2. contact metadata

struct Identity

Identification of the object sender or recipient

{

1: required ItemId identity_

id,
2: required IdentityItemType identity_type,


3: required list<Attribute> identity_contacts,


4: optional list<Attribute> identity_

struct EventDataA description of the event data stream{ 
1: required ItemId data_id 
2: optional list<Attribute> data_attributes 
} 
where 
data_id is a unique identifier of the data stream within an event; is used for links to the stream; 
data_attributes is an optional set of attributes for a data stream.
struct ItemLinkA description of a connection between different event entitiesstruct ChatMessageA description of a single message of the "Chat" class

attributes,
5: optional list<ContactWithMeta> identity_contacts_with_meta

}

An identification of object receiver or sender:

  1. a unique number of the identification inside the object, used for links to identification;
  2. an identification item type;
  3. an identification list of contacts;
  4. the non-obligatory attributes of identification;
  5. a list of contacts of identification with metadata 

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

A description of an event dataflow:

  1. a unique identifier of dataflow inside the event, used for links to dataflow;
  2. the non-obligatory attributes of dataflow

struct ChatMessage {
1: required ItemId sender_id,

 


2: required string sent_time,

 


3: required string utf8_text,

 


4: optional ItemId mes_data_id

, 


}

 
where
sender_id is

A description of a Chat class message:

  1. a link to the identification, which is a message sender;
 
sent_time is
  1. the local time of
sending
  1. the message transfer in
YY
  1. YYY-MM-DDTHH:MM:SS+HH:MM format (ISO 8601
with
  1. format yyyy-MM-ddTHH:mm:sszzz
formatting
  1. );
 
utf8_text is
  1. the message text is in UTF-8 encoding;
 
mes_data_id is
  1. an identifier of
the
  1. object data, in which the message
contents
  1. body will be
sent
  1. transferred if utf8_text is empty
.
struct EventThe event description which must be passed to Traffic Monitor{ 

typedef string LinkNameType
struct ItemLink {

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

A description of connection among different entities of event:

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

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

}

A description of the event which should be transferred to Traffic Monitor:

  1. the event class;
  1. the event service;
  1. the event attributes;
  1. the event senders;
  1. the event recipients;
  1. the event data;
  1. Chat class messages
  1. of the event
  1. ;
struct CredentialsA structure which describes parameters of access to Traffic Monitor
  1. connections among the event entities;
  2. the event source;
  3. the event receiver

struct Credentials {
1: required string company_name,


2: required string

token
}

The structure describing Traffic monitor access parameters:

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

typedef i64 EventId

An identifier of the event which is being loaded

typedef i64 StreamId

An identifier of the event dataflow which is being loaded

typedef i32 InterfaceVersion
const InterfaceVersion pushapi_version = 1

PushAPI interface version

enum EventClass {
kChat,
kEmail,
kMfp,
kWeb,
kFileExchange,
kPhoto,
kMultimedia,
kVoiceTalk
}
The "classes" of events supported by PushAPI:
  • Chat
  • Mail
  • Printing, copying and scanning
  • Internet activity
  • File exchange
  • Photo
  • Multimedia recording
  • Call