Skip to main content

preview_hits

Function preview_hits 

Source
pub async fn preview_hits(
    t: &Transport,
    space: &str,
    preview_id: &str,
    sample: usize,
) -> Result<PreviewHits>
Expand description

Read back what a preview matched.

rules/preview returns a previewId but no hit count, so search the alerts it wrote. ignore_unavailable=true reports no preview index as zero hits, not a 404 error.