def __init__(self): beam.CombineFn.__init__(self) self.word_counter = Metrics.counter(self.__class__, 'word_counter') self.word_lengths_counter = Metrics.counter(self.__class__, 'word_lengths') self.word_lengths_dist = Metrics.distribution( self.__class__, 'word_len_dist') self.last_word_len = Metrics.gauge(self.__class__, 'last_word_len')
def __init__(self): self.total_metric = Metrics.counter(self.__class__, 'total_values') self.dist_metric = Metrics.distribution(self.__class__, 'distribution_values') # TODO(ajamato): Add a verifier for gauge once it is supported by the SDKs # and runners. self.latest_metric = Metrics.gauge(self.__class__, 'latest_value')
def __init__(self): self.total_metric = Metrics.counter(self.__class__, 'total_values') self.dist_metric = Metrics.distribution( self.__class__, 'distribution_values') # TODO(ajamato): Add a verifier for gauge once it is supported by the SDKs # and runners. self.latest_metric = Metrics.gauge(self.__class__, 'latest_value')
def __init__(self): self.empty_line_counter = Metrics.gauge('main', 'empty_lines')
def __init__(self): self.word_counter = Metrics.gauge('main', 'total_words')
def __init__(self): self.word_length_counter = Metrics.gauge('main', 'word_lengths')