Interface MetricsContainer

  • All Superinterfaces:
    java.io.Serializable

    @Experimental(METRICS)
    public interface MetricsContainer
    extends java.io.Serializable
    Holds the metrics for a single step. Each of the methods should return an implementation of the appropriate metrics interface for the "current" step.
    • Method Detail

      • getCounter

        Counter getCounter​(MetricName metricName)
        Return the Counter that should be used for implementing the given metricName in this container.
      • getDistribution

        Distribution getDistribution​(MetricName metricName)
        Return the Distribution that should be used for implementing the given metricName in this container.
      • getGauge

        Gauge getGauge​(MetricName metricName)
        Return the Gauge that should be used for implementing the given metricName in this container.
      • getMonitoringInfos

        default java.lang.Iterable<org.apache.beam.model.pipeline.v1.MetricsApi.MonitoringInfo> getMonitoringInfos()
        Return the cumulative values for any metrics in this container as MonitoringInfos.