(check, metric_name, modifiers)
return time_elapsed
This sends the number of seconds elapsed from a time in the past as a `gauge`.
This sends the number of seconds elapsed from a time in the past as a `gauge`.
This sends the number of seconds elapsed from a time in the past as a gauge .
def get_time_elapsed(check, metric_name, modifiers):
    """
    This sends the number of seconds elapsed from a time in the past as a `gauge`.
    """
    gauge_method = check.gauge

    def time_elapsed(value, *, tags=None):
        gauge_method(metric_name, get_timestamp() - value, tags=tags)

    del check
    del modifiers
    return time_elapsed
def get_time_elapsed ( check , metric_name , modifiers ) : gauge_method = check . gauge def time_elapsed ( value , * , tags = None ) : gauge_method ( metric_name , get_timestamp ( ) - value , tags = tags ) del check del modifiers return time_elapsed