Did I find the right examples for you? yes no

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)
Aggregate sum of a stat.

src/s/c/scales-1.0.6/src/greplin/scales/aggregation_test.py   scales(Download)
  def testNoData(self):
    "This used to infinite loop."
    agg = aggregation.Aggregation({
      'a': {
        '*': [aggregation.Sum()]
  def testRegex(self):
    "Test regexes in aggregation keys"
    agg = aggregation.Aggregation({
        'a' : {
            ('success', re.compile("[1-3][0-9][0-9]")):  [aggregation.Sum(dataFormat = aggregation.DataFormats.DIRECT)],
            ('error', re.compile("[4-5][0-9][0-9]")):  [aggregation.Sum(dataFormat = aggregation.DataFormats.DIRECT)]

src/s/c/scales-HEAD/src/greplin/scales/aggregation_test.py   scales(Download)
  def testNoData(self):
    "This used to infinite loop."
    agg = aggregation.Aggregation({
      'a': {
        '*': [aggregation.Sum()]
  def testRegex(self):
    "Test regexes in aggregation keys"
    agg = aggregation.Aggregation({
        'a' : {
            ('success', re.compile("[1-3][0-9][0-9]")):  [aggregation.Sum(dataFormat = aggregation.DataFormats.DIRECT)],
            ('error', re.compile("[4-5][0-9][0-9]")):  [aggregation.Sum(dataFormat = aggregation.DataFormats.DIRECT)]