Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Configuration Errors ErrInvalidConfig = errors.ErrorCode("telemetry_invalid_config") ErrInvalidDBPath = errors.ErrorCode("telemetry_invalid_db_path") // Collection Errors ErrMetricsCollection = errors.ErrorCode("telemetry_metrics_collection_failed") ErrInvalidMetrics = errors.ErrorCode("telemetry_invalid_metrics") // Storage Errors ErrStorageAccess = errors.ErrorCode("telemetry_storage_access_failed") ErrStorageInit = errors.ErrorCode("telemetry_storage_init_failed") ErrStorageClose = errors.ErrorCode("telemetry_storage_close_failed") ErrSchemaInitFailed = errors.ErrorCode("telemetry_schema_init_failed") // Operation Errors ErrOperationTimeout = errors.ErrorCode("telemetry_operation_timeout") ErrServiceShutdown = errors.ErrorCode("telemetry_service_shutdown_failed") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector interface { Record(ctx context.Context, snapshot *MetricsSnapshot) error Close() error }
Collector defines the core domain interface
func NewService ¶
type MetricsSnapshot ¶
type MetricsSnapshot struct { Timestamp time.Time FanSpeed FanMetrics Temperature TempMetrics PowerLimit PowerMetrics SystemState StateMetrics }
MetricsSnapshot represents domain entities
type PowerMetrics ¶
type Repository ¶
type Repository interface { Store(ctx context.Context, snapshot *MetricsSnapshot) error Close() error }
func NewRepository ¶
func NewRepository(cfg Config) (Repository, error)
type StateMetrics ¶
type TempMetrics ¶
Click to show internal directories.
Click to hide internal directories.