@Evolving public interface ReportsSourceMetrics extends SparkDataStream
SparkDataStream streaming sources to signal that they can report
metrics.| Modifier and Type | Method and Description |
|---|---|
java.util.Map<String,String> |
metrics(java.util.Optional<Offset> latestConsumedOffset)
Returns the metrics reported by the streaming source with respect to
the latest consumed offset.
|
commit, deserializeOffset, initialOffset, stopjava.util.Map<String,String> metrics(java.util.Optional<Offset> latestConsumedOffset)
latestConsumedOffset - the end offset (exclusive) of the latest triggered batch.