Closed ghost closed 11 years ago
Taking a stab at this; here is what I'm thinking.
In the following code, we add an array object with 24 elements, each representing one hour of the day.
var ircServer = 'irc.mozilla.org', ... metrics = { greetedName: [], greetedNumber: 0, firebotBugs:[], usersTalked: {}, };
Hypothetically, lets call it metrics.chatter and it might look something like this after a testday:
metrics.chatter {0: 0, 1: 0, 2: 12, 3: 34, 4: 20, 5: 11, 6: 45, 7: 52, 8: 23, 9: 9, 10: 3, 11: 2, 12: 10, etc...}
The email report at the end of the testday could then report any "hours" where N>=20 as "active". In the above case it would report 3, 4, 6, 7, 8 as "active" hours.
What do you think?
Yea that sounds good.
p.s. Sorry I havent done it yet. FxOS and Paternity leave have killed my time...
On Fri, Mar 1, 2013 at 9:09 PM, Anthony Hughes notifications@github.comwrote:
Taking a stab at this; here is what I'm thinking.
In the following code, we add an array object with 24 elements, each representing one hour of the day.
var ircServer = 'irc.mozilla.org', ... metrics = { greetedName: [], greetedNumber: 0, firebotBugs:[], usersTalked: {}, };
Hypothetically, lets call it metrics.chatter and it might look something like this after a testday:
metrics.chatter {0: 0, 1: 0, 2: 12, 3: 34, 4: 20, 5: 11, 6: 45, 7: 52, 8: 23, 9: 9, 10: 3, 11: 2, 12: 10, etc...}
The email report at the end of the testday could then report any "hours" where N>=20 as "active". In the above case it would report 3, 4, 6, 7, 8 as "active" hours.
What do you think?
— Reply to this email directly or view it on GitHubhttps://github.com/AutomatedTester/testdaybot/issues/11#issuecomment-14311505 .
Totally understandable. I'd be willing to take this on with a little mentoring. Just tell me where to get started.
The general idea is to count the number of messages posted in the channel per hour. This way I can determine the most "active" times.
Thanks