Skip to content

Statistics

Get projections statistics.

get_projection_statistics(stub, name, **kwargs)

Get projection statistics.

Source code in src/eventstore_grpc/projections/statistics.py
def get_projection_statistics(
    stub: projections_pb2_grpc.ProjectionsStub, name: str, **kwargs
) -> Iterable[projections_pb2.StatisticsResp]:
    """Get projection statistics."""
    request = projections_pb2.StatisticsReq()
    options = projections_pb2.StatisticsReq.Options()
    options.name = name
    request.options.CopyFrom(options)
    response = stub.Statistics(request, **kwargs)
    return response