Re: Latest Sample through the REST API contribution

Marc Holden <[email protected]> Wed, 5 Sep 2012 16:55:48 -0400
Newsgroups gmane.comp.java.grinder.devel
Message-ID <CADV_OVVe07-KOPqtdqPnBBEOC1UCAE2MDAtzTKysTLW4ojq+pg@mail.gmail.com>
--===============2328467511183225573==
Content-Type: multipart/alternative; boundary=90e6ba10a70f770a3b04c8fa99f2

--90e6ba10a70f770a3b04c8fa99f2
Content-Type: text/plain; charset=ISO-8859-1

Hi Phil,

I am having some difficulty generating the patch file with the git
format-patch command.  I can generate patch files but when I try to run the
format-patch no output is generated.  I am new to git  so I am sure I am
doing something silly but any guidance would be helpful.

Once I figure out the how to generate the patch, I should have something
available.

Thanks,

-Marc


On Wed, Sep 5, 2012 at 4:08 AM, Philip Aston <[email protected]> wrote:

>  Sorry, you're completely right. :-)
>
> - Phil
>
>
> On 05/09/12 02:01, Marc Holden wrote:
>
> Hmmmm,  I was actually a calling
> m_totalSampleAccumulator.getLastSampleStatistics() as I thought the
> m_totalSampleAccumlator held onto the latest sample data.  Am I
> misunderstanding how this works (it certainly wouldn't be the first
> time...).
>
>  I have updated the unit tests and just need to update the documentation.
>
>  Thanks,
>
>  -Marc
>
> On Tue, Sep 4, 2012 at 4:44 PM, Philip Aston <[email protected]> wrote:
>
>>  Hi Marc,
>>
>> Yes, that would be welcome .... if you also fix the doc and the tests
>> accordingly :-). Please see
>> http://grinder.sourceforge.net/development/contributing.html#How+to+give+backfor a few notes on contributing. Also, please open a new Feature Request
>> for this change.
>>
>> I guess you've modified SMI to hang on to the latest statistics as a
>> collection of StatisticsSets? Or do I understand you're further aggregating
>> them (hence the "total")?
>>
>> - Phil
>>
>>
>>
>>
>> On 04/09/12 14:11, Marc Holden wrote:
>>
>> Hello,
>>
>>
>>
>> I am interested in contributing a new REST API that allows for the
>> retrieval of the latest sample through the RESP API in addition to
>> the cumulative statistics that are currently available.  The changes
>> involved would be updates to the net.grinder.console.service.rest.clj and
>> net.grinder.console.model.recording.clj.  In my local implementation I have
>> also updated the net.grinder.console.model.SampleModel interface and
>> SampleModelImplementation to expose the total latest statistics through a
>> new method call getTotalLatestStatistics().  If there is a more preferred
>> way of accessing total statistics of the latest sample, I will be happy to
>> make any changes.
>>
>>
>>
>> The reason for this new call was that the data returned from the REST API
>> did not always accurately reflect how the application was performing when
>> the call was made.   This caused some  discrepancies in the data captured
>> through our APM.
>>
>>
>>
>> Please let me know if this is something people would be interested in and
>> I would be happy to contribute the changes I have made.
>>
>>
>>
>> Thanks,
>>
>>
>>
>> -Marc
>>
>>
>>
>
>

--90e6ba10a70f770a3b04c8fa99f2
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi Phil,<div><br></div><div>I am having some difficulty generating the patc=
h file with the git format-patch command. =A0I can generate patch files but=
 when I try to run the format-patch no output is generated. =A0I am new to =
git =A0so I am sure I am doing something silly but any guidance would be he=
lpful.</div>
<div><br></div><div>Once I figure out the how to generate the patch, I shou=
ld have something available. =A0</div><div><br></div><div>Thanks,</div><div=
><br></div><div>-Marc</div><div><br><br><div class=3D"gmail_quote">On Wed, =
Sep 5, 2012 at 4:08 AM, Philip Aston <span dir=3D"ltr">&lt;<a href=3D"mailt=
o:[email protected]" target=3D"_blank">[email protected]</a>&gt;</span> wrote=
:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
 =20
   =20
 =20
  <div text=3D"#000000" bgcolor=3D"#FFFFFF">
    <div>Sorry, you&#39;re completely right. :-)<br>
      <br>
      - Phil<div><div class=3D"h5"><br>
      <br>
      On 05/09/12 02:01, Marc Holden wrote:<br>
    </div></div></div><div><div class=3D"h5">
    <blockquote type=3D"cite">Hmmmm, =A0I was actually a calling
      m_totalSampleAccumulator.getLastSampleStatistics() as I thought
      the m_totalSampleAccumlator held onto the latest sample data. =A0Am
      I misunderstanding how this works (it certainly wouldn&#39;t be the
      first time...).
      <div>
        <br>
      </div>
      <div>I have updated the unit tests and just need to update the
        documentation.</div>
      <div><br>
      </div>
      <div>Thanks,</div>
      <div><br>
      </div>
      <div>-Marc =A0<br>
        <br>
        <div class=3D"gmail_quote">On Tue, Sep 4, 2012 at 4:44 PM, Philip
          Aston <span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]" t=
arget=3D"_blank">[email protected]</a>&gt;</span>
          wrote:<br>
          <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bord=
er-left:1px #ccc solid;padding-left:1ex">
            <div text=3D"#000000" bgcolor=3D"#FFFFFF">
              <div>Hi Marc,<br>
                <br>
                Yes, that would be welcome .... if you also fix the doc
                and the tests accordingly :-). Please see <a href=3D"http:/=
/grinder.sourceforge.net/development/contributing.html#How+to+give+back" ta=
rget=3D"_blank">http://grinder.sourceforge.net/development/contributing.htm=
l#How+to+give+back</a>
                for a few notes on contributing. Also, please open a new
                Feature Request for this change.<br>
                <br>
                I guess you&#39;ve modified SMI to hang on to the latest
                statistics as a collection of StatisticsSets? Or do I
                understand you&#39;re further aggregating them (hence the
                &quot;total&quot;)?<br>
                <br>
                - Phil
                <div>
                  <div><br>
                    <br>
                    <br>
                    <br>
                    On 04/09/12 14:11, Marc Holden wrote:<br>
                  </div>
                </div>
              </div>
              <div>
                <div>
                  <blockquote type=3D"cite">
                    <p class=3D"MsoNormal"><span style=3D"font-size:12pt;fo=
nt-family:Arial,sans-serif">Hello,</span></p>
                    <p class=3D"MsoNormal"><span style=3D"font-size:12pt;fo=
nt-family:Arial,sans-serif">=A0</span></p>
                    <p class=3D"MsoNormal"><span style=3D"font-size:12pt;fo=
nt-family:Arial,sans-serif">I
                        am interested in contributing a new REST API
                        that allows for the retrieval of the latest
                        sample through the RESP API in addition to
                        the=A0cumulative statistics that are
                        currently=A0available. =A0The changes involved woul=
d
                        be updates to the
                        net.grinder.console.service.rest.clj and
                        net.grinder.console.model.recording.clj. =A0In my
                        local implementation I have also updated the
                        net.grinder.console.model.SampleModel interface
                        and SampleModelImplementation to expose the
                        total latest statistics through a new method
                        call getTotalLatestStatistics().=A0 If there is a
                        more preferred way of accessing total statistics
                        of the latest sample, I will be happy to make
                        any changes.</span></p>
                    <p class=3D"MsoNormal"><span style=3D"font-size:12pt;fo=
nt-family:Arial,sans-serif">=A0</span></p>
                    <p class=3D"MsoNormal"><span style=3D"font-size:12pt;fo=
nt-family:Arial,sans-serif">The
                        reason for this new call was that the data
                        returned from the REST API did not always
                        accurately reflect how the application was
                        performing when the call was made. =A0 This caused
                        some =A0discrepancies=A0in the data captured throug=
h
                        our APM. =A0=A0</span></p>
                    <p class=3D"MsoNormal"><span style=3D"font-size:12pt;fo=
nt-family:Arial,sans-serif">=A0</span></p>
                    <p class=3D"MsoNormal"><span style=3D"font-size:12pt;fo=
nt-family:Arial,sans-serif">Please
                        let me know if this is something people would be
                        interested in and I would be happy to contribute
                        the changes I have made.</span></p>
                    <p class=3D"MsoNormal"><span style=3D"font-size:12pt;fo=
nt-family:Arial,sans-serif">=A0</span></p>
                    <p class=3D"MsoNormal"><span style=3D"font-size:12pt;fo=
nt-family:Arial,sans-serif">Thanks,</span></p>
                    <p class=3D"MsoNormal"><span style=3D"font-size:12pt;fo=
nt-family:Arial,sans-serif">=A0</span></p>
                    <p class=3D"MsoNormal"><span style=3D"font-size:12pt;fo=
nt-family:Arial,sans-serif">-Marc</span></p>
                    <br>
                  </blockquote>
                  <br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </div></div></div>

</blockquote></div><br></div>

--90e6ba10a70f770a3b04c8fa99f2--


--===============2328467511183225573==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
--===============2328467511183225573==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Grinder-development mailing list
Grinder-development-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/grinder-development

--===============2328467511183225573==--