(requestContext, seriesList, seconds)
return seriesList
Takes one metric or a wildcard seriesList and returns "value per seconds" where
  seconds is a last argument to this functions.

  Useful in conjunction with derivative or integral function if you want
  to normalize its result to a known resolution for arbitrary retentions
Takes one metric or a wildcard seriesList and returns "value per seconds" where
  seconds is a last argument to this functions.
Takes one metric or a wildcard seriesList and returns value per seconds where seconds is a last argument to this functions .
def scaleToSeconds(requestContext, seriesList, seconds):
  """
  Takes one metric or a wildcard seriesList and returns "value per seconds" where
  seconds is a last argument to this functions.

  Useful in conjunction with derivative or integral function if you want
  to normalize its result to a known resolution for arbitrary retentions
  """

  for series in seriesList:
    series.tags['scaleToSeconds'] = seconds
    series.name = "scaleToSeconds(%s,%d)" % (series.name,seconds)
    series.pathExpression = series.name
    factor = seconds / series.step

    for i,value in enumerate(series):
      if value is not None:
        # Division long by float cause OverflowError
        try:
          series[i] = round(value * factor, 6)
        except OverflowError:
          series[i] = (value // series.step) * seconds

  return seriesList
def scaleToSeconds ( requestContext , seriesList , seconds ) : for series in seriesList : series . tags [ 'scaleToSeconds' ] = seconds series . name = "scaleToSeconds(%s,%d)" % ( series . name , seconds ) series . pathExpression = series . name factor = seconds / series . step for i , value in enumerate ( series ) : if value is not None : # Division long by float cause OverflowError try : series [ i ] = round ( value * factor , 6 ) except OverflowError : series [ i ] = ( value // series . step ) * seconds return seriesList