SNT - New Data Source
Configuration Guide
Overview
This guide explains how to configure new data sources in our system. The system is built around two core concepts: Categories and Entities.
System Architecture
Categories
- Definition: A collection of related entities
- Components:
- Unique ID
- Parent ID (specifies root category)
- Icon (SVG format)
- Static fields
- Dynamic fields
- Root Categories: ASSET, PEOPLE, SENSOR, ANNOTATION, VEHICLE
Entities
- Definition: A specific object or person
- Components:
- Category ID (links to parent category)
- Unique ID
- Unique name
- Static fields
- Dynamic fields
Field Types
- Static Fields: Values that change infrequently (e.g., team affiliation, equipment ID)
- Stored in persistent storage
- Maintained across sessions
- Dynamic Fields: Values that change frequently or rapidly
- Consumed and processed in real-time
- Not stored permanently
Step-by-Step Configuration
1. Creating a New Category
Prerequisites: Access to the category management page
Steps:
- Navigate to Category Page → SNT Categories
- Click Create
- Configure the following fields:
- Name: Category identifier
- Parent Category: Select from root categories (ASSET, PEOPLE, SENSOR, ANNOTATION, VEHICLE)
- Dynamic Fields: Define frequently changing data fields
- Static Fields: Define infrequently changing data fields
- Icon: Upload SVG icon file
2. Entity Creation Methods
Method A: Direct Entity Creation
Steps:
- Navigate to Entity Page
- Click Add Entity
- Configure entity settings:
- Category Selection: Choose the newly created category
- Entity Name: Define unique identifier
- Static Fields: Click Add Info Field to configure static data
- Location Settings (if applicable):
- UTM Coordinates
- Panel
- Level
- Note: UTM coordinates automatically apply corresponding mine_area
Method B: External Data Source Integration
Supported Sources:
- API endpoints
- Database (MSSQL, PostgreSQL)
- Message Queue (Kafka)
Steps:
- Navigate to Configuration Page
- Select Data Source Type
- Click Create Config
- Enter connection parameters
- Select Static in Processor Function for entity creation
- Verify connection validity
3. Data Mapping Configuration
Steps:
- Entity Category Mapping: Select target category for configuration
- Source Field Mapping:
- Map entity name field from source
- Map timestamp field from source
- Select timestamp format
- Static Field Mapping (if applicable):
- Click Add in Data Mapping Keys
- Map source fields to static entity fields
- Location Mapping (if using UTM coordinates):
- Configure Easting, Northing, Altitude fields
4. Verification and Monitoring
Success Indicators:
- Source configuration status changes to OK
- Entities appear in Entity Page
Dynamic Field Processing:
- Dynamic Mode: Records last processed timestamp, processes only new values
- Stream Mode: Processes all messages without filtering
Troubleshooting
Common Issues
- Status Not OK: Check configuration parameters and source availability, Verify source credentials and network connectivity, Ensure field names match exactly between source and target