(transformers, column_name, **modifiers)
return monotonic_gauge
Send the result as both a `gauge` suffixed by `.total` and a `monotonic_count` suffixed by `.count`.
Send the result as both a `gauge` suffixed by `.total` and a `monotonic_count` suffixed by `.count`.
Send the result as both a gauge suffixed by . total and a monotonic_count suffixed by . count .
def get_monotonic_gauge(transformers, column_name, **modifiers):
    # type: (Dict[str, Transformer], str, Any) -> Transformer
    """
    Send the result as both a `gauge` suffixed by `.total` and a `monotonic_count` suffixed by `.count`.
    """
    gauge = transformers['gauge'](transformers, '{}.total'.format(column_name), **modifiers)  # type: Callable
    monotonic_count = transformers['monotonic_count'](
        transformers, '{}.count'.format(column_name), **modifiers
    )  # type: Callable

    def monotonic_gauge(_, value, **kwargs):
        # type: (List, str, Dict[str, Any]) -> None
        gauge(_, value, **kwargs)
        monotonic_count(_, value, **kwargs)

    return monotonic_gauge
def get_monotonic_gauge ( transformers , column_name , * * modifiers ) : # type: (Dict[str, Transformer], str, Any) -> Transformer gauge = transformers [ 'gauge' ] ( transformers , '{}.total' . format ( column_name ) , * * modifiers ) # type: Callable monotonic_count = transformers [ 'monotonic_count' ] ( transformers , '{}.count' . format ( column_name ) , * * modifiers ) # type: Callable def monotonic_gauge ( _ , value , * * kwargs ) : # type: (List, str, Dict[str, Any]) -> None gauge ( _ , value , * * kwargs ) monotonic_count ( _ , value , * * kwargs ) return monotonic_gauge