setHistoryLimitForAttribute help please.

classic Classic list List threaded Threaded
1 message Options
SkippyW SkippyW
Reply | Threaded
Open this post in threaded view
|

setHistoryLimitForAttribute help please.

Hello-  

I am doing something very basic and have been struggling for a few days now.  I am just trying to set history for an attribute and view the history.  I am sure it is a user error and would love for someone to slap me upside the head and let me know what I am doing wrong.  I googled for this and could not find anything helpful.  

All I am trying to do is get historical information about the OperatingSystem/SystemCpuLoad attribute.  

Here is what I call to turn on history:  
http://127.0.0.1:43261/jolokia/exec/jolokia:type=Config/setHistoryLimitForAttribute/java.lang:type=OperatingSystem/SystemCpuLoad/%22%22/%22%22/10/300

OR

http://127.0.0.1:43261/jolokia/exec/jolokia:type=Config/setHistoryLimitForAttribute/java.lang:type=OperatingSystem/SystemCpuLoad/null/null/10/300

I get back a successful RC from both:
{"request":{"mbean":"jolokia:type=Config","arguments":["java.lang:type=OperatingSystem","SystemCpuLoad","null","null","10","300"],"type":"exec","operation":"setHistoryLimitForAttribute"},"value":null,"timestamp":1471290982,"status":200}

But, when I get the value with the following:
http://127.0.0.1:43261/jolokia/read/java.lang:type=OperatingSystem/SystemCpuLoad

I do not get any history (yes...I call it more then once):
{"request":{"mbean":"java.lang:type=OperatingSystem","attribute":"SystemCpuLoad","type":"read"},"value":0.5622804647392596,"timestamp":1471291075,"status":200}

I know this is a user error, as it is very basic, but I am at a total loss on how to get history to show up on the read operation.  If anyone can help me out I would be very grateful!!