Skip to main content

pamoja_reporter_count

Function pamoja_reporter_count 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_reporter_count( reporter: *const PamojaReporter, level: PamojaTelemetryLevel, ) -> u32
Expand description

Returns how many events a reporter has seen at a level, shipped or not.

§Arguments

  • reporter - the reporter.
  • level - the level to count.

§Returns

The count, or 0 if reporter is null.

§Safety

reporter must be a live handle from pamoja_reporter_new, or null.