mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-10-15 00:12:29 +00:00
3 lines
22 KiB
HTML
3 lines
22 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Native histogram PromQL helpers."><title>promql::functions::native_histogram - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-1ed95124.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="promql" data-themes="" data-resource-suffix="" data-rustdoc-version="1.98.1 (48a229cea 2026-09-01)" data-channel="1.98.1" data-search-js="search-9944d736.js" data-stringdex-js="stringdex-2da4960a.js" data-settings-js="settings-170eb4bf.js" ><script src="../../../static.files/storage-41dd4d93.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../static.files/main-417ebf0a.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-f7c3ffd8.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><a class="skip-main-content" href="#main-content">Skip to main content</a><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">Module native_histogram</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../promql/index.html">promql</a><span class="version">1.4.0-alpha.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module native_<wbr>histogram</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#functions" title="Functions">Functions</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In promql::<wbr>functions</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content" tabindex="-1"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">promql</a>::<wbr><a href="../index.html">functions</a></div><h1>Module <span>native_<wbr>histogram</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/promql/functions/native_histogram.rs.html#15-4019">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Native histogram PromQL helpers.</p>
|
|
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.MixedRange.html" title="struct promql::functions::native_histogram::MixedRange">Mixed<wbr>Range</a></dt><dd>Coordinated float/native-histogram range evaluation.</dd><dt><a class="struct" href="struct.MixedRangeUdf.html" title="struct promql::functions::native_histogram::MixedRangeUdf">Mixed<wbr>Range<wbr>Udf</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="struct" href="struct.NativeHistogramAbsentOverTime.html" title="struct promql::functions::native_histogram::NativeHistogramAbsentOverTime">Native<wbr>Histogram<wbr>Absent<wbr>Over<wbr>Time</a></dt><dt><a class="struct" href="struct.NativeHistogramAdd.html" title="struct promql::functions::native_histogram::NativeHistogramAdd">Native<wbr>Histogram<wbr>Add</a></dt><dt><a class="struct" href="struct.NativeHistogramAggAvg.html" title="struct promql::functions::native_histogram::NativeHistogramAggAvg">Native<wbr>Histogram<wbr>AggAvg</a></dt><dt><a class="struct" href="struct.NativeHistogramAggSum.html" title="struct promql::functions::native_histogram::NativeHistogramAggSum">Native<wbr>Histogram<wbr>AggSum</a></dt><dt><a class="struct" href="struct.NativeHistogramAggregateAccumulator.html" title="struct promql::functions::native_histogram::NativeHistogramAggregateAccumulator">Native<wbr>Histogram<wbr>Aggregate<wbr>Accumulator</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="struct" href="struct.NativeHistogramAnnotationUdf.html" title="struct promql::functions::native_histogram::NativeHistogramAnnotationUdf">Native<wbr>Histogram<wbr>Annotation<wbr>Udf</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="struct" href="struct.NativeHistogramAvg.html" title="struct promql::functions::native_histogram::NativeHistogramAvg">Native<wbr>Histogram<wbr>Avg</a></dt><dt><a class="struct" href="struct.NativeHistogramAvgOverTime.html" title="struct promql::functions::native_histogram::NativeHistogramAvgOverTime">Native<wbr>Histogram<wbr>AvgOver<wbr>Time</a></dt><dt><a class="struct" href="struct.NativeHistogramChanges.html" title="struct promql::functions::native_histogram::NativeHistogramChanges">Native<wbr>Histogram<wbr>Changes</a></dt><dt><a class="struct" href="struct.NativeHistogramCount.html" title="struct promql::functions::native_histogram::NativeHistogramCount">Native<wbr>Histogram<wbr>Count</a></dt><dt><a class="struct" href="struct.NativeHistogramCountOverTime.html" title="struct promql::functions::native_histogram::NativeHistogramCountOverTime">Native<wbr>Histogram<wbr>Count<wbr>Over<wbr>Time</a></dt><dt><a class="struct" href="struct.NativeHistogramDelta.html" title="struct promql::functions::native_histogram::NativeHistogramDelta">Native<wbr>Histogram<wbr>Delta</a></dt><dt><a class="struct" href="struct.NativeHistogramDivScalar.html" title="struct promql::functions::native_histogram::NativeHistogramDivScalar">Native<wbr>Histogram<wbr>DivScalar</a></dt><dt><a class="struct" href="struct.NativeHistogramDrop.html" title="struct promql::functions::native_histogram::NativeHistogramDrop">Native<wbr>Histogram<wbr>Drop</a></dt><dt><a class="struct" href="struct.NativeHistogramEq.html" title="struct promql::functions::native_histogram::NativeHistogramEq">Native<wbr>Histogram<wbr>Eq</a></dt><dt><a class="struct" href="struct.NativeHistogramFraction.html" title="struct promql::functions::native_histogram::NativeHistogramFraction">Native<wbr>Histogram<wbr>Fraction</a></dt><dt><a class="struct" href="struct.NativeHistogramIDelta.html" title="struct promql::functions::native_histogram::NativeHistogramIDelta">Native<wbr>HistogramI<wbr>Delta</a></dt><dt><a class="struct" href="struct.NativeHistogramIRate.html" title="struct promql::functions::native_histogram::NativeHistogramIRate">Native<wbr>HistogramI<wbr>Rate</a></dt><dt><a class="struct" href="struct.NativeHistogramIncrease.html" title="struct promql::functions::native_histogram::NativeHistogramIncrease">Native<wbr>Histogram<wbr>Increase</a></dt><dt><a class="struct" href="struct.NativeHistogramLastOverTime.html" title="struct promql::functions::native_histogram::NativeHistogramLastOverTime">Native<wbr>Histogram<wbr>Last<wbr>Over<wbr>Time</a></dt><dt><a class="struct" href="struct.NativeHistogramMulScalar.html" title="struct promql::functions::native_histogram::NativeHistogramMulScalar">Native<wbr>Histogram<wbr>MulScalar</a></dt><dt><a class="struct" href="struct.NativeHistogramNeg.html" title="struct promql::functions::native_histogram::NativeHistogramNeg">Native<wbr>Histogram<wbr>Neg</a></dt><dt><a class="struct" href="struct.NativeHistogramNotEq.html" title="struct promql::functions::native_histogram::NativeHistogramNotEq">Native<wbr>Histogram<wbr>NotEq</a></dt><dt><a class="struct" href="struct.NativeHistogramPresentOverTime.html" title="struct promql::functions::native_histogram::NativeHistogramPresentOverTime">Native<wbr>Histogram<wbr>Present<wbr>Over<wbr>Time</a></dt><dt><a class="struct" href="struct.NativeHistogramQuantile.html" title="struct promql::functions::native_histogram::NativeHistogramQuantile">Native<wbr>Histogram<wbr>Quantile</a></dt><dt><a class="struct" href="struct.NativeHistogramRate.html" title="struct promql::functions::native_histogram::NativeHistogramRate">Native<wbr>Histogram<wbr>Rate</a></dt><dt><a class="struct" href="struct.NativeHistogramResets.html" title="struct promql::functions::native_histogram::NativeHistogramResets">Native<wbr>Histogram<wbr>Resets</a></dt><dt><a class="struct" href="struct.NativeHistogramScalarMul.html" title="struct promql::functions::native_histogram::NativeHistogramScalarMul">Native<wbr>Histogram<wbr>Scalar<wbr>Mul</a></dt><dt><a class="struct" href="struct.NativeHistogramStddev.html" title="struct promql::functions::native_histogram::NativeHistogramStddev">Native<wbr>Histogram<wbr>Stddev</a></dt><dt><a class="struct" href="struct.NativeHistogramStdvar.html" title="struct promql::functions::native_histogram::NativeHistogramStdvar">Native<wbr>Histogram<wbr>Stdvar</a></dt><dt><a class="struct" href="struct.NativeHistogramSub.html" title="struct promql::functions::native_histogram::NativeHistogramSub">Native<wbr>Histogram<wbr>Sub</a></dt><dt><a class="struct" href="struct.NativeHistogramSum.html" title="struct promql::functions::native_histogram::NativeHistogramSum">Native<wbr>Histogram<wbr>Sum</a></dt><dt><a class="struct" href="struct.NativeHistogramSumOverTime.html" title="struct promql::functions::native_histogram::NativeHistogramSumOverTime">Native<wbr>Histogram<wbr>SumOver<wbr>Time</a></dt><dt><a class="struct" href="struct.NativeHistogramToString.html" title="struct promql::functions::native_histogram::NativeHistogramToString">Native<wbr>Histogram<wbr>ToString</a></dt><dt><a class="struct" href="struct.PromqlFloatToString.html" title="struct promql::functions::native_histogram::PromqlFloatToString">Promql<wbr>Float<wbr>ToString</a></dt><dd>Formats float samples as PromQL label values.</dd></dl><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><dl class="item-table"><dt><a class="enum" href="enum.AnnotationLevel.html" title="enum promql::functions::native_histogram::AnnotationLevel">Annotation<wbr>Level</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="enum" href="enum.AnnotationReturn.html" title="enum promql::functions::native_histogram::AnnotationReturn">Annotation<wbr>Return</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="enum" href="enum.MixedRangeFunction.html" title="enum promql::functions::native_histogram::MixedRangeFunction">Mixed<wbr>Range<wbr>Function</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="enum" href="enum.MixedRangeOutput.html" title="enum promql::functions::native_histogram::MixedRangeOutput">Mixed<wbr>Range<wbr>Output</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="enum" href="enum.MixedRangePolicy.html" title="enum promql::functions::native_histogram::MixedRangePolicy">Mixed<wbr>Range<wbr>Policy</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="enum" href="enum.MixedSample.html" title="enum promql::functions::native_histogram::MixedSample">Mixed<wbr>Sample</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="enum" href="enum.NativeHistogramAggregateKind.html" title="enum promql::functions::native_histogram::NativeHistogramAggregateKind">Native<wbr>Histogram<wbr>Aggregate<wbr>Kind</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="enum" href="enum.NativeHistogramRangeFloatKind.html" title="enum promql::functions::native_histogram::NativeHistogramRangeFloatKind">Native<wbr>Histogram<wbr>Range<wbr>Float<wbr>Kind</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="enum" href="enum.NativeHistogramRangeHistogramKind.html" title="enum promql::functions::native_histogram::NativeHistogramRangeHistogramKind">Native<wbr>Histogram<wbr>Range<wbr>Histogram<wbr>Kind</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="enum" href="enum.SampleLane.html" title="enum promql::functions::native_histogram::SampleLane">Sample<wbr>Lane</a><span title="Restricted Visibility"> 🔒</span> </dt></dl><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><dl class="item-table"><dt><a class="fn" href="fn.checked_window_bounds.html" title="fn promql::functions::native_histogram::checked_window_bounds">checked_<wbr>window_<wbr>bounds</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Decodes packed range keys into validated half-open <code>(offset, end)</code> bounds.</dd><dt><a class="fn" href="fn.collect_window_histograms.html" title="fn promql::functions::native_histogram::collect_window_histograms">collect_<wbr>window_<wbr>histograms</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.combined_range_float.html" title="fn promql::functions::native_histogram::combined_range_float">combined_<wbr>range_<wbr>float</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.compact_lane_input.html" title="fn promql::functions::native_histogram::compact_lane_input">compact_<wbr>lane_<wbr>input</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Filters null placeholders from one sample lane and remaps its selected windows.
|
|
Windows assigned to the other lane become empty.</dd><dt><a class="fn" href="fn.create_native_extrapolated_udf.html" title="fn promql::functions::native_histogram::create_native_extrapolated_udf">create_<wbr>native_<wbr>extrapolated_<wbr>udf</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.create_native_idelta_udf.html" title="fn promql::functions::native_histogram::create_native_idelta_udf">create_<wbr>native_<wbr>idelta_<wbr>udf</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.create_native_range_float_udf.html" title="fn promql::functions::native_histogram::create_native_range_float_udf">create_<wbr>native_<wbr>range_<wbr>float_<wbr>udf</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.create_native_range_histogram_udf.html" title="fn promql::functions::native_histogram::create_native_range_histogram_udf">create_<wbr>native_<wbr>range_<wbr>histogram_<wbr>udf</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.extract_histogram_array.html" title="fn promql::functions::native_histogram::extract_histogram_array">extract_<wbr>histogram_<wbr>array</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.histogram_compare_udf.html" title="fn promql::functions::native_histogram::histogram_compare_udf">histogram_<wbr>compare_<wbr>udf</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.histogram_delta.html" title="fn promql::functions::native_histogram::histogram_delta">histogram_<wbr>delta</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.histogram_pair_udf.html" title="fn promql::functions::native_histogram::histogram_pair_udf">histogram_<wbr>pair_<wbr>udf</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.histogram_pair_udf_with_collector.html" title="fn promql::functions::native_histogram::histogram_pair_udf_with_collector">histogram_<wbr>pair_<wbr>udf_<wbr>with_<wbr>collector</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.histogram_scalar_udf.html" title="fn promql::functions::native_histogram::histogram_scalar_udf">histogram_<wbr>scalar_<wbr>udf</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.histogram_string_udf.html" title="fn promql::functions::native_histogram::histogram_string_udf">histogram_<wbr>string_<wbr>udf</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.histogram_transform_udf.html" title="fn promql::functions::native_histogram::histogram_transform_udf">histogram_<wbr>transform_<wbr>udf</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.idelta_value.html" title="fn promql::functions::native_histogram::idelta_value">idelta_<wbr>value</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.invoke_range_udf.html" title="fn promql::functions::native_histogram::invoke_range_udf">invoke_<wbr>range_<wbr>udf</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.mixed_range.html" title="fn promql::functions::native_histogram::mixed_range">mixed_<wbr>range</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.mixed_transition.html" title="fn promql::functions::native_histogram::mixed_transition">mixed_<wbr>transition</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.native_extrapolated_rate.html" title="fn promql::functions::native_histogram::native_extrapolated_rate">native_<wbr>extrapolated_<wbr>rate</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.native_histogram_aggregate_udf.html" title="fn promql::functions::native_histogram::native_histogram_aggregate_udf">native_<wbr>histogram_<wbr>aggregate_<wbr>udf</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.native_histogram_range_float.html" title="fn promql::functions::native_histogram::native_histogram_range_float">native_<wbr>histogram_<wbr>range_<wbr>float</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.native_histogram_range_histogram.html" title="fn promql::functions::native_histogram::native_histogram_range_histogram">native_<wbr>histogram_<wbr>range_<wbr>histogram</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.native_histogram_scalar.html" title="fn promql::functions::native_histogram::native_histogram_scalar">native_<wbr>histogram_<wbr>scalar</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.native_idelta.html" title="fn promql::functions::native_histogram::native_idelta">native_<wbr>idelta</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.range_fold_histograms.html" title="fn promql::functions::native_histogram::range_fold_histograms">range_<wbr>fold_<wbr>histograms</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.read_scalar_f64_arg.html" title="fn promql::functions::native_histogram::read_scalar_f64_arg">read_<wbr>scalar_<wbr>f64_<wbr>arg</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.record_counter_reset_contradiction.html" title="fn promql::functions::native_histogram::record_counter_reset_contradiction">record_<wbr>counter_<wbr>reset_<wbr>contradiction</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.record_counter_reset_contradiction_warning.html" title="fn promql::functions::native_histogram::record_counter_reset_contradiction_warning">record_<wbr>counter_<wbr>reset_<wbr>contradiction_<wbr>warning</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.record_custom_reconciliation.html" title="fn promql::functions::native_histogram::record_custom_reconciliation">record_<wbr>custom_<wbr>reconciliation</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.record_info.html" title="fn promql::functions::native_histogram::record_info">record_<wbr>info</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.record_warning.html" title="fn promql::functions::native_histogram::record_warning">record_<wbr>warning</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.scalar_histogram_udf.html" title="fn promql::functions::native_histogram::scalar_histogram_udf">scalar_<wbr>histogram_<wbr>udf</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.select_mixed_range_lanes.html" title="fn promql::functions::native_histogram::select_mixed_range_lanes">select_<wbr>mixed_<wbr>range_<wbr>lanes</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Selects the sample lane for each window and records policy-required annotations.</dd><dt><a class="fn" href="fn.valid_count.html" title="fn promql::functions::native_histogram::valid_count">valid_<wbr>count</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Returns the number of valid samples in the half-open window <code>[offset, end)</code>.</dd><dt><a class="fn" href="fn.validity_prefix.html" title="fn promql::functions::native_histogram::validity_prefix">validity_<wbr>prefix</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Builds prefix counts where <code>prefix[i]</code> is the number of valid samples in <code>valid[..i]</code>.</dd><dt><a class="fn" href="fn.weighted_histogram_mean.html" title="fn promql::functions::native_histogram::weighted_histogram_mean">weighted_<wbr>histogram_<wbr>mean</a><span title="Restricted Visibility"> 🔒</span> </dt></dl></section></div></main></body></html> |