Data model

The iBatyr Monitor system is built on the basis of OLAP technology.

An OLAP structure created from operational data is called an OLAP cube. The cube is created from a connection of tables using the star schema <https://ru.wikipedia.org/wiki/%D0%A1%D1%85%D0%B5%D0%BC%D0%B0_%D0%B7%D0%B2%D0%B5%D0%B7%D0%B4%D1%8B>`_.

At the center of the star schema is a fact table, which contains the key facts on which queries are made.

Multiple dimension tables are joined to a fact table. These tables show how aggregated relational data can be analyzed.

Fact table

The main table is the agent_event fact table, which contains foreign keys to the dimension tables

Column

Type

Purpose

id

integer

Primary key

event_type_id

integer

Dimension - Event Type

agent_id

integer

Measurement - Computer

account_id

integer

Dimension - User

time_id

integer

Dimension - Time

application_id

integer

Measurement - Application

web_data_id

integer

Measurement - Website

net_data_id

integer

Measurement - Network Activity

file_operation_id

integer

Dimension - File Operation

file_path_id

integer

Measurement - File

attached_file_id

integer

Dimension - Intercepted File

dialog_id

integer

Dimension - Correspondence

app_installation_id

integer

Measurement - Application Installation

device_id

integer

Measurement - Device

feedback_id

integer

Dimension - Alerts

call_duration

integer

Measure - Call duration

activity_time

bigint

Measure - Activity time in FILETIME format

idle_time

bigint

Measure - Downtime in FILETIME format

time_registered

timestamp with time zone

Time of registration of the fact on the server

local_time

timestamp with time zone

Agent local time

window_title

text

Window title

text_data

text

Text data

parent_id

integer

Parent fact

children_count

integer

Number of subfacts

filters_data

text

Data about triggered policies

Dimension Agent

The Agent dimension is contained in the agent_agent table.

Column

Purpose

computer_name

Computer

last_report

Status

last_ip

IP address

agent_version

Agent version

os

OS version

id

ID

guide

HWID

label

Group

Measurement User

The User dimension is contained in the agent_account table.

Column

Purpose

id

ID

guide

SID

user_name

User

full_name

Full name

office

Department

company

Organization

post

Job title

phone

Telephone

mail

Mail

comment

Comment

user_domain

Domain

last_report_time

Last contact

last_activity_time

Last user activity

Measurement Application

The Application dimension is contained in the agent_application table.

Column

Purpose

app_name

Name

exe_path

Full path

app_description

Description

window_title

Window title

Dimension Site

The Site dimension is contained in the agent_web table.

Column

Purpose

site

Website

domain

Domain

url

URL

protocol

Protocol

mime

Content type

Measuring Network Activity

The Network Activity dimension is contained in the agent_networkconnection table.

Column

Purpose

remote_address

IP address

remote_port

Network port

Measurement File

The File dimension is contained in the agent_attachedfile table.

Column

Purpose

file_name

File name

file_ext

Extension

file_path

Path

mime

Content type

data

Url

drive_type

Disk type

sha1

File hash

guide

GUID

id

Eid

extracted

Unpacking status

file_operation

Operation

Measurement Device

The Device dimension is contained in the agent_device table.

Column

Purpose

manufacturer

Device type

description

Device

hwid

Device ID

drive_type

Disk type

device_class

Device class

Dimension Correspondence

The Correspondence dimension is contained in the agent_dialog table.

Column

Purpose

sender

Sender

contact

Recipient

recipients

All recipients

sender_domain

Sender’s domain

domain

Recipient domain

direction

Direction

dialog_type

Communication channel

message_format

Message Format

members

Chats

Measurement Date

The Date dimension is contained in the agent_time table.

Column

Purpose

year

Year

month

Month

day

Day

hour

Hour

quarter

Quarter of an hour

minute

Minute

weekday

Day of the week

time_zone

Time zone

Installation Measurement

The Installations dimension is contained in the agent_appinstallation table.

Column

Purpose

install_event

Operation

product_name

Product

publisher

Supplier

version

Version

Dimension Policies that worked

The Policies Triggered dimension is contained in the analytics_filter table.

Column

Purpose

name

Name

category

Category

syscat

Syst. category