ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Attributes | Static Public Attributes | List of all members
telemetry_entity Struct Reference

Represents a telemetry log record in the database. More...

#include <telemetry_entity.hpp>

Collaboration diagram for telemetry_entity:
Collaboration graph

Public Attributes

sqlgen::PrimaryKey< std::string > id
 Log entry UUID - part of composite primary key.
 
sqlgen::PrimaryKey< sqlgen::Timestamp<"%Y-%m-%d %H:%M:%S"> > timestamp
 Log timestamp - part of composite primary key.
 
std::string source
 Source type ('client' or 'server').
 
std::string source_name
 Source application name.
 
std::string session_id
 Session ID (empty string for no session).
 
std::string account_id
 Account ID (empty string for no account).
 
std::string level
 Log severity level.
 
std::string component
 Logger/component name.
 
std::string message
 Log message body.
 
std::string tag
 Optional tag for filtering.
 
sqlgen::Timestamp<"%Y-%m-%d %H:%M:%S"> recorded_at
 Server receipt timestamp.
 

Static Public Attributes

static constexpr const char * schema = "production"
 
static constexpr const char * tablename = "telemetry_logs_tbl"
 

Detailed Description

Represents a telemetry log record in the database.

This entity maps to the TimescaleDB telemetry_logs hypertable partitioned by timestamp.

Member Data Documentation

◆ timestamp

sqlgen::PrimaryKey<sqlgen::Timestamp<"%Y-%m-%d %H:%M:%S"> > timestamp

Log timestamp - part of composite primary key.

Required in primary key for TimescaleDB hypertable partitioning.

◆ session_id

std::string session_id

Session ID (empty string for no session).

Uses std::string instead of std::optional because sqlgen doesn't support optional types in operations.