Working on a Netcool Impact implementation recently I ran across a feature of JavaScript regular expressions that really impressed me. I'll compare it to a somewhat similar feature/syntax in Perl.
If you need to test a string for a regular expression in Perl, you can do the following:
if ($mystring =~ /my_regular_expression/) ...
That will return true if $string contains the specified regular expression.
In JavaScript, you can invoke the test() method directly on the regular expression (including the leading and trailing "/") with one parameter, which is the string to test. Here's what the equivalent of the above looks like in JavaScript:
if (/my_regular_expression/.test(mystring)) ...
And to test if it doesn't match, the syntax is:
if (!/my_regular_expression/.test(mystring)) ...
That's it. I just thought it was pretty neat.
Monday, July 15, 2019
Wednesday, July 3, 2019
APM historical data without a TEMS
IBM APM only directly supports the storage of up to 32 days of data. You've always had the option to store older data in the ITM 6 data warehouse, but setting up an entire ITM 6 infrastructure has always seemed like a whole lot of work. As it turns out, you don't have to set up the entire infrastructure! You oonly have to set up a warehouse proxy agent, summarization and pruning agent and the warehouse database. No TEMS or TEPS, as the WPA and SPA can work in autonomous mode.
Madhavan Vyk recently posted a great article on DeveloperWorks detailing exactly how to configure this:
https://www.ibm.com/developerworks/community/blogs/0587adbc-8477-431f-8c68-9226adea11ed/entry/Integrating_IBM_Cloud_APM_8_x_with_Tivoli_Data_Warehouse?lang=en
Subscribe to:
Posts (Atom)