global: metrics -> series rename

This commit is contained in:
nym21
2026-03-16 14:31:50 +01:00
parent bc06567bb0
commit ae2dd43073
95 changed files with 8907 additions and 8415 deletions
+4 -4
View File
@@ -17,12 +17,12 @@ pub fn main() -> brk_error::Result<()> {
let vecs = Vecs::build(&indexer_ro, &computer_ro);
let out_path = Path::new(env!("CARGO_MANIFEST_DIR")).join("metrics.txt");
let content = vecs.metrics.join("\n");
let out_path = Path::new(env!("CARGO_MANIFEST_DIR")).join("series.txt");
let content = vecs.series.join("\n");
fs::write(&out_path, &content)?;
eprintln!(
"Wrote {} metrics to {}",
vecs.metrics.len(),
"Wrote {} series to {}",
vecs.series.len(),
out_path.display()
);
+4 -4
View File
@@ -67,14 +67,14 @@ pub fn main() -> Result<()> {
"bc1qwzrryqr3ja8w7hnja2spmkgfdcgvqwp5swz4af4ngsjecfz0w0pqud7k38".to_string()
)));
// dbg!(query.search_and_format(MetricSelection {
// dbg!(query.search_and_format(SeriesSelection {
// index: Index::Height,
// metrics: vec!["date"].into(),
// series: vec!["date"].into(),
// range: DataRangeFormat::default().set_from(-1),
// })?);
// dbg!(query.search_and_format(MetricSelection {
// dbg!(query.search_and_format(SeriesSelection {
// index: Index::Height,
// metrics: vec!["date", "timestamp"].into(),
// series: vec!["date", "timestamp"].into(),
// range: DataRangeFormat::default().set_from(-10).set_count(5),
// })?);