pub fn random_metrics_with_stream_timestamp(
    count: usize,
    batch: Option<BatchNotifier>,
    tags: Option<MetricTags>,
    timestamp: DateTime<Utc>,
    timestamp_offset: Duration,
) -> (Vec<Event>, impl Stream<Item = EventArray>)
Expand description

Generates event metrics with the provided tags and timestamp.

§Parameters

  • count: the number of metrics to generate
  • batch: the batch notifier to use with the stream
  • tags: the tags to apply to each metric event
  • timestamp: the timestamp to use for each metric event
  • timestamp_offset: the offset from the timestamp to use for each additional metric

§Returns

A tuple of the generated metric events and the stream of the generated events