EventIdIdentity stucture |
typedef i32 ItemId
| An identifier of the loaded event | typedef i64 EventId |
| StreamId | An identifier of the loaded stream with the event data | typedef i64 StreamId |
| ItemId | An identifier of the element in the event | typedef i32 ItemId |
| InterfaceVersion | The version of PushAPI interface | typedef i32 InterfaceVersion |
| struct Attribute | A separate attribute of any entity of the event 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, | the identification, | the data stream){ dataflow): - contact;
- contact metadata
|
struct ContactWithMeta {
1: required string nameAttribute contact,
2: required optional string value, meta
} | The contacts of identification with metadata: - contact;
- contact metadata
|
struct Identity
| Identification of the object sender or recipient | {
| 1: required ItemId identity_
| id id,
2: required IdentityItemType identity_type,
|
3: required list<Attribute> identity_contacts,
|
4: optional list<Attribute> identity_
| attributes
}
| struct EventData | A 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 ItemLink | A description of a connection between different event entities | {
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).struct ChatMessage | A 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: - a unique number of the identification inside the object, used for links to identification;
- an identification item type;
- an identification list of contacts;
- the non-obligatory attributes of identification;
- 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: - a unique identifier of dataflow inside the event, used for links to dataflow;
- 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: - a link to the identification, which is a message sender;
sent_time is - the local time of
sending - the message transfer in
YY- YYY-MM-DDTHH:MM:SS+HH:MM format (ISO 8601
with - format yyyy-MM-ddTHH:mm:sszzz
formatting- );
utf8_text is - the message text is in UTF-8 encoding;
mes_data_id is - an identifier of
the - object data, in which the message
contents - body will be
sent - transferred if utf8_text is empty
. | struct Event | The 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: - an identifier of the event entity, from which there is a connection;
- an identifier of the event entity, to which there is a connection;
- 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
| string TmServiceType evt_service,
|
3: optional list<Attribute> evt_attributes,
|
4: required list<Identity> evt_senders,
|
5: required list<Identity> evt_
| receivers receivers,
6: required list<EventData> evt_data,
|
| 87: optional list<ChatMessage> evt_messages,
|
| 78: optional list<ItemLink> evt_
| links links,
9: optional Identity evt_source,
10: optional Identity evt_destination
}
|
where
evt_class is | A description of the event which should be transferred to Traffic Monitor: - the event class;
|
| evt_service is - the event service;
|
| evt_attributes are - the event attributes;
|
| evt_senders are - the event senders;
|
| evt_receivers are - the event recipients;
|
| evt_data is - the event data;
|
| evt_- Chat class messages
| are - of the event
| messages for the "Chat" class- ;
|
| evt_links are connections between entities in the event.struct Credentials | A structure which describes parameters of access to Traffic Monitor | { - connections among the event entities;
- the event source;
- the event receiver
|
struct Credentials {
1: required string company_name,
|
2: required string
| token 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 structure describing Traffic monitor access parameters: - a client name (or a company name in the case). The parameter connects an external developper's plugin and the license;
- an authorization token; the string is a secret known by the plugin and Traffic Monitor.
| The - This is how the authorization of
| the - data source
| is implemented in this way.- 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
|