API Reference
This page is auto-generated from Python docstrings.
cintel.signal_design
signal_design.py - Project script (example).
Author: Your Name Here Date: 2026-mm-dd
System Metrics Data
- Data is taken from a system that records operational metrics.
- The data is structured and static for this example.
- Each row represents one observation of system behavior.
- The CSV file includes these columns:
- requests: number of requests handled
- errors: number of failed requests
- total_latency_ms: total response time in milliseconds
Purpose
- Read system metrics from a CSV (comma-separated values) file.
- Design useful signals from the raw measurements.
- Save the resulting signals as a new CSV artifact.
- Log the pipeline process to assist with debugging and transparency.
Questions to Consider
- What should we measure to understand system behavior?
- Which signals are more informative than the raw input values?
- How can derived signals help us detect problems more clearly?
Paths (relative to repo root)
INPUT FILE: data/system_metrics.csv
OUTPUT FILE: artifacts/signals.csv
Terminal command to run this file from the root project folder
uv run python -m cintel.signal_design
DESIGN:
Use this file to first learn and then apply your skills.
Reusable functions that do the work are kept in a utils file. We import functions and pass in what they need through their parentheses. Shared utility functions can be imported into a Python module or a reactive marimo notebook app.
Reusable visualization functions may come from sources such as eda-vizkit.
SKILLS:
- Reading CSV files into Polars DataFrames.
- Defining and using constants for thresholds.
- Logging for debugging and transparency.
- Designing signals based on domain-specific rules.
main
main() -> None
Run the pipeline.
log_header() logs a standard run header. log_path() logs repo-relative paths (privacy-safe).
Source code in src/cintel/signal_design.py
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 | |