Navigation

  • previous
  • PyFlink 1.11.dev0 documentation »
  • pyflink.metrics package

pyflink.metrics package¶

Module contents¶

class pyflink.metrics.Counter(inner_counter)[source]¶

Bases: Metric

Counter metric interface. Allows a count to be incremented/decremented during pipeline execution.

dec(n=1)[source]¶
get_count()[source]¶
inc(n=1)[source]¶
class pyflink.metrics.Distribution(inner_distribution)[source]¶

Bases: Metric

Distribution Metric interface.

Allows statistics about the distribution of a variable to be collected during pipeline execution.

update(value)[source]¶
class pyflink.metrics.Meter(inner_counter)[source]¶

Bases: Metric

Meter Metric interface.

Metric for measuring throughput.

get_count()[source]¶
mark_event(value=1)[source]¶
class pyflink.metrics.Metric[source]¶

Bases: object

Base interface of a metric object.

class pyflink.metrics.MetricGroup[source]¶

Bases: ABC

add_group(name: str, extra: Optional[str] = None) → MetricGroup[source]¶

Creates a new MetricGroup and adds it to this groups sub-groups.

If extra is not None, creates a new key-value MetricGroup pair. The key group is added to this group’s sub-groups, while the value group is added to the key group’s sub-groups. In this case, the value group will be returned and a user variable will be defined.

counter(name: str) → Counter[source]¶

Registers a new Counter with Flink.

distribution(name: str) → Distribution[source]¶

Registers a new Distribution with Flink.

gauge(name: str, obj: Callable[[], int]) → None[source]¶

Registers a new Gauge with Flink.

meter(name: str, time_span_in_seconds: int = 60) → Meter[source]¶

Registers a new Meter with Flink.

Logo

Table of Contents

  • pyflink.metrics package
    • Module contents
      • Counter
        • Counter.dec()
        • Counter.get_count()
        • Counter.inc()
      • Distribution
        • Distribution.update()
      • Meter
        • Meter.get_count()
        • Meter.mark_event()
      • Metric
      • MetricGroup
        • MetricGroup.add_group()
        • MetricGroup.counter()
        • MetricGroup.distribution()
        • MetricGroup.gauge()
        • MetricGroup.meter()

Previous topic

pyflink.ml package

This Page

  • Show Source

Quick search

Navigation

  • previous
  • PyFlink 1.11.dev0 documentation »
  • pyflink.metrics package
© Copyright . Created using Sphinx 5.3.0.