graphite-dev team mailing list archive
-
graphite-dev team
-
Mailing list archive
-
Message #00039
Re: [Question #73951]: maxSeries function
Question #73951 on Graphite changed:
https://answers.launchpad.net/graphite/+question/73951
Pete Emerson gave more information on the question:
Ah, I believe I see the core code for sumSeries:
def sumSeries(*seriesLists):
(seriesList,start,end,step) = normalize(seriesLists)
#name = "sumSeries(%s)" % ','.join((s.name for s in seriesList))
name = "sumSeries(%s)" % ','.join(set([s.pathExpression for s in seriesList]))
values = ( safeSum(row) for row in izip(*seriesList) ) #XXX izip
series = TimeSeries(name,start,end,step,values)
series.pathExpression = name
return [series]
I'm not fluent in python so I'll need to wrap my brain around it, but am
I correct that if I can write maxSeries based on this code I'd be good
to go?
Pete
--
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.