IREXDocs
EN

How It Works

Integration between IREX and Apache Superset enables Apache Superset to send user-defined queries to the IREX database to extract information of interest and present it as charts.

IREX event database queried by Apache Superset; results shown as a dashboard

The IREX database is a ClickHouse-type database. Apache Superset exposes its tables as Datasets. Each dataset has Columns: the fields available in charts and SQL queries. Under Explanation in the tables below, wording follows IREX product terms.

Apache Superset can query any of these columns. For example, a condition of "channel_id={value}" on kx_events returns events detected on the camera with ID={value}. More advanced queries can be created with standard SQL syntax in the SQL Editor.

Columns

This section describes the Columns of the Datasets (database tables) used to build charts.

The database includes the following Datasets:

kx_events

Column

Explanation

start_time

Event start time

end_time

Event end time

id

Event ID

channel_id

Camera ID

channel_type

Sensor type

expiration

Event retention end date

resource_groups

Resource groups

tag_ids

Tag IDs

module

Video analytics module name

topic

Event type

level

Event priority

source

Rule name

source_id

Rule ID

list_ids

Face and vehicle lists

matched_ids

Recognized face and plate IDs

first_names

First names

last_names

Last names

matched_similarities

Similarity score

car_plate_number

Recognized license plate number

car_color

Vehicle color

car_brand

Vehicle make

car_speed

Calculated vehicle speed

tripwire_direction

Vehicle direction of travel

light_state

Traffic light signal

face_age

Person's age

face_gender

Person's gender

face_race

Person's appearance

face_glasses

Presence of glasses

face_beard

Presence of a beard

face_hat

Presence of headwear

face_mask

Presence of a mask

face_spoof_score

Face spoofing probability

object_id

Object ID

object_type

Object type

minimum_time_absence

Allowed time away from the workplace

crowd_size

Number of people in a crowd

external_event_direction

Passage direction in an event from an external device

external_code

Event code from an external device

contact_id

External device contact ID

contact_name

External device contact name

contact_server_id

External device contact server ID

external_device_type

External device type

external_device_id

External device ID


channel

Column

Explanation

id

Camera ID

name

Camera name

status

Camera status

enabled

Camera enabled flag

deleted

Deleted flag

changed_at

Last change time of the record

revision

Record revision number

channel_type

Video source type

host

Camera server host / address

quality_name

Quality profile name

pixels_resolution

Resolution in pixels

ptz_enabled

PTZ support flag

ptz_type

PTZ type

latitude

Latitude

longitude

Longitude

address_string

Full address as a string

address_country

Country

address_region

Region

address_county

County / district

address_city

City

address_district

City district

address_street

Street

address_place_info

Additional place information

entity_group_ids

Resource group IDs

plan_count

Number of linked plans

plan_ids

Plan IDs

plan_entity_ids

Plan entity IDs

plan_names

Plan names

module_count

Number of analytics modules

module_names

Analytics module names

enabled_module_names

Enabled module names

detector_count

Number of detectors

detector_tags

Detector tags

detector_rule_types

Detector rule types

stream_count

Number of video streams

stream_ids

Stream IDs

stream_sources

Stream sources (URL/RTSP)

edge_names

Linked edge server names

archive_duration

Archive retention period

events_ttl

Event retention period

structure_ids

Building IDs

structure_names

Building names

structure_count

Number of linked buildings


channel_history

Column

Explanation

id

Camera history record ID

channel_id

Camera ID

name

Camera name

status

Camera status at the time of the event

enabled

Camera enabled flag

deleted

Deleted flag

changed_at

Change time

event_time

Change time

lifecycle_event

Lifecycle event type (create, initial provisioning, update, and delete)

source_operation

Source operation type (create, initial provisioning, update, and delete)

revision

Record revision number

channel_type

Video source type

host

Camera server host / address

quality_name

Quality profile name

pixels_resolution

Resolution in pixels

ptz_enabled

PTZ support flag

ptz_type

PTZ type

latitude

Latitude

longitude

Longitude

address_string

Full address as a string

address_country

Country

address_region

Region

address_county

County / district

address_city

City

address_district

City district

address_street

Street

address_place_info

Additional place information

entity_group_ids

Resource group IDs

plan_count

Number of linked plans

plan_ids

Plan IDs

plan_entity_ids

Plan entity IDs

plan_names

Plan names

module_count

Number of analytics modules

module_names

Analytics module names

enabled_module_names

Enabled module names

detector_count

Number of detectors

detector_tags

Detector tags

detector_rule_types

Detector rule types

stream_count

Number of video streams

stream_ids

Stream IDs

stream_sources

Stream sources (URL/RTSP)

edge_names

Linked edge server names

archive_duration

Archive retention period

events_ttl

Event retention period

structure_ids

Building IDs

structure_names

Building names

structure_count

Number of linked buildings

runtime_status

Camera operational status

status_source

Status source

status_reasons

Status reasons


bioterminal

Column

Explanation

id

Bioterminal ID

name

Bioterminal name

status

Bioterminal status

enabled

Enabled flag

deleted

Deleted flag

changed_at

Last change time

revision

Record revision number

channel_id

Linked camera ID

ip

Bioterminal IP address

port

Port

event_sync

Event synchronization flag

event_level

Event level

event_expiration_days

Event retention period, days

entity_group_ids

Resource group IDs

edge_names

Linked edge server names

address_string

Full address as a string

address_country

Country

address_region

Region

address_county

County / district

address_city

City

address_district

City district

address_street

Street

address_place_info

Additional place information


alarm_monitor

Column

Explanation

id

Alarm monitor ID

name

Alarm monitor name

status

Status

deleted

Deleted flag

changed_at

Last change time

created_at

Creation time

updated_at

Update time

blocked_at

Time blocked

revision

Record revision number

filter_json

Event filter settings (JSON)

max_events_count

Maximum number of events

scheduler_active

Active schedule flag

module_names

Analytics module names

detector_names

Detector names

entity_group_ids

Resource group IDs

user_group_ids

User group IDs

email_enabled_user_count

Number of users with email notifications

push_enabled_user_count

Number of users with push notifications


face

Column

Explanation

id

Person ID

full_name

Full name

first_name

First name

last_name

Last name

middle_name

Middle name

gender

Gender

birthday

Date of birth

comment

Comment

status

Record status

enabled

Enabled flag

deleted

Deleted flag

changed_at

Last change time

added_at

Time added

recognition_until

Recognition valid until

revision

Record revision number

facelist_id

Face list ID

facelist_name

Face list name

facelist_event_level

Recognition priority for the list

facelist_deleted

Face list deleted flag

entity_group_ids

Resource group IDs


plate

Column

Explanation

id

Vehicle ID

number

License plate number

color

Color

manufacturer

Make

model

Model

type_of_vehicle

Vehicle type

year_of_issue

Year of manufacture

state

Country / region

owner

Owner

owner_full_name

Owner full name

owner_first_name

Owner first name

owner_last_name

Owner last name

owner_middle_name

Owner middle name

linked_person_id

Linked person ID

comment

Comment

status

Record status

enabled

Enabled flag

deleted

Deleted flag

changed_at

Last change time

recognition_until

Recognition valid until

revision

Record revision number

platelist_id

Plate list ID

platelist_name

Plate list name

platelist_event_level

Recognition priority for the list

platelist_deleted

Plate list deleted flag

entity_group_ids

Resource group IDs


permission

Column

Explanation

id

Permission assignment ID

permission

Permission code / value

resource_type

Resource type

target_object_id

Access object ID

target_object_name

Access object name

user_group_id

User group ID

user_group_name

User group name

user_group_parent_id

Parent group ID

user_group_is_root

Root group flag

member_count

Number of group members

member_user_ids

Member user IDs

member_names

Member user names

role_names

Role names

role_permissions

Role permission IDs

entity_group_id

Resource group ID

entity_group_label

Resource group name

country

Country

region

Region

county

County / district

city

City

district

City district

street

Street

place_info

Additional place information

deleted

Deleted flag

changed_at

Last change time

revision

Record revision number

member_user_statuses

Statuses of group member users


users

Column

Explanation

id

User ID

full_name

Full name

first_name

First name

last_name

Last name

middle_name

Middle name

email

Email

phone_number

Phone

position_in_company

Job title

role

Role

locale

UI language

status

Account status

service_account

Service account flag

external_id

External user ID (when integrating with external systems)

created_time

Creation time

activate_from

Active from

deactivate_from

Deactivated from

enable_email_notifications

Email notifications enabled

email_confirmed

Email confirmed

alarm_monitor_notifications_enabled

Alarm monitor notifications enabled

alarm_monitor_notifications_sound_enabled

Alarm monitor notification sound enabled

deleted

Deleted flag

changed_at

Last change time

revision

Record revision number

user_group_ids

User group IDs

user_group_names

User group names

user_group_role_ids

Role IDs in groups

user_group_role_names

Role names in groups


license

Column

Explanation

id

License ID

name

Record name

license_name

License name

status

License status

company_name

Company name

company_uuid

Company UUID

license_email

License email

license_phone

License phone

contract_name

Contract name

contract_number

Contract number

contract_date

Contract date

start_date

Start date

end_date

End date

end_date_support

Support end date

number_of_cameras

Camera quota under the license

cameras_created

Number of cameras created

auto_activation

Auto-activation flag

deleted

Deleted flag

changed_at

Last change time

revision

Record revision number