[rt-users] RT Statistics Package

Beachey, Kendric Kendric.Beachey at garmin.com
Fri Feb 22 09:36:51 EST 2002


Ah, sorry, I should have been more specific.  This is in Resolution.html,
aka the "Average Time To Resolution" report.  The snippet you posted is from
TimeToResolve.html, aka the "Time To Resolution" report.

> -----Original Message-----
> From: Bruce Riggins [mailto:bruce at go-mol.com]
> Sent: Thursday, February 21, 2002 5:36 PM
> To: Beachey, Kendric; Request Tracker Users Mailing List
> Subject: RE: [rt-users] RT Statistics Package
> 
> 
> Interesting. My copy of the package works fine, but the code 
> is slightly
> different:
> 
> % my $url = $RT::WebURL.'/chart?type=points&x_labels=[';
> % my $i;
> % $url .= join ",", (map {(int($_/2) == $_/2 && (++$i)%2) ? 
> $_/2 : ""} grep
> {$counts[$_]} 0..($#counts-1)), "longer";
> % $url .= ']&';
> % $url .= "marker_size=1&";
> % $url .= "data1=[".(join ",", map { $_ || () } @counts)."]&";
> % chop $url;
> <IMG SRC="<% $url %>">
> 
> 
> -----Original Message-----
> From: rt-users-admin at lists.fsck.com
> [mailto:rt-users-admin at lists.fsck.com]On Behalf Of Beachey, Kendric
> Sent: Thursday, February 21, 2002 12:23 PM
> To: Request Tracker Users Mailing List
> Subject: RE: [rt-users] RT Statistics Package
> 
> 
> Hmmm, one thing I noticed:  the "time to resolution" page 
> isn't drawing a
> graph.  I checked the underlying html and saw a url for a 
> graph, but it was
> incomplete:
> 
> 
> <img
> SRC="/chart?type=lines&x_labels=[Sat%2016,Sun%2017,Mon%201
> 8,Tue%2019,Wed
> %2020&y_number_format=">
> 
> 
> (Yes, it really says ampersand-amp-semicolon.)  Has anyone 
> seen anything
> like this?  I looked at the code that produces this, but all 
> I could do was
> scratch my head:
> 
> 
> % my $url = '/chart?type=lines&x_labels=[';
> % $url .= join ",", @{ shift @data };
> % $url .= ']&';
> % $url .= 'y_number_format=&';
> % for (0..$#data) {
> %  $url .= "data".(1+$_)."=[".(join ",", @{$data[$_]})."]&";
> % }
> % chop $url;
> <IMG SRC="<% $url %>">
> 
> 
> 
> -----Original Message-----
> From: Beachey, Kendric [mailto:Kendric.Beachey at garmin.com]
> Sent: Thursday, February 21, 2002 11:26 AM
> To: Request Tracker Users Mailing List
> Subject: RE: [rt-users] RT Statistics Package
> 
> 
> I concur, very very nice!
> One slight clarification to Jim's comment on the webserver 
> configuration:
> If you really do use the *exact* configuration statements in 
> the perldoc for
> Apache::GD::Graph, you will need to edit each .html file in 
> the Statistics
> directory so that they define their urls in the pattern
> $my_url = '/chart/blahblah'
> instead of
> $my_url = $RT::WebURL.'/chart/blahblah'
> Which will allow other stuff on your server to use the 
> charting functions
> without having "rt" in the url.
> The other option, of course, is to frob slightly the 
> webserver configuration
> so that it uses "/rt/chart" as the location instead of just 
> "/chart" as
> listed in the perldoc.
> > -----Original Message-----
> > From: Jim Meyer [mailto:purp at wildbrain.com]
> > Sent: Thursday, February 21, 2002 10:24 AM
> > To: Simon Cozens
> > Cc: Request Tracker Users Mailing List; jesse at bestpractical.com
> > Subject: Re: [rt-users] RT Statistics Package
> >
> >
> > On Tue, 2002-02-19 at 06:04, Simon Cozens wrote:
> > > Attached is a simple statistics package for RT. I'm
> > planning on releasing
> > > further versions with more complex data available in the
> > future, but I
> > > think this is cool enough to release for now. Simply drop
> > it into your
> > > RT HTML tree, and go to http://rt/Statistics/
> >
> > Very, very nice. A bit of work to install the
> > Apache::GD::Graph bit as I
> > had to snag a half-dozen other modules to satisfy the
> > dependencies, but
> > after installing the modules (and copying the config from `perldoc
> > Apache::GD::Graph` into my server's config), it's working 
> quite well.
> > Oh, and I changed line 91 of CallsMultiqueue.html to:
> >
> > % my $url = "$RT::WebPath/chart?type=lines&x_labels=[";
> >
> > ...which should be suitable for all.
> >
> > Thanks for sharing your excellent work!
> >
> > --j, looking forward to frobbing this code endlessly.
> > --
> > Jim Meyer, Geek At Large
> > purp at wildbrain.com
> >
> >
> > _______________________________________________
> > rt-users mailing list
> > rt-users at lists.fsck.com
> > http://lists.fsck.com/mailman/listinfo/rt-users
> >
> 
> _______________________________________________
> rt-users mailing list
> rt-users at lists.fsck.com
> http://lists.fsck.com/mailman/listinfo/rt-users
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20020222/087ac316/attachment.htm>


More information about the rt-users mailing list