Dynamic how?

Based on previous results? For example, if there are a lot of anomalies (unwanted http error codes, lots of offending urls), the threshold are tuned down so that not every anomaly triggers a page? Or if things have been quiet for the last couple of days, but suddenly in the last hour there's a peak of anomalies, you somehow want to reflect this in the value of your threshold? You'd have to define the possible scenarios and how the thresholds are to react to this. Then you'll have to work out a system that will detect these scenarios and apply the required dynamics. Then you'll have to implement that in code.

Based on the time of the day? For example, the threshold vary from hour to hour — medium in the morning, high during the afternoon, medium again until midnight, and low from midnight until 7am. You could write a subroutine that looks at the time of the day and adjusts thresholds accordingly. Or your report script could accept threshold values as command line arguments, as in hourly-report-tool --http404=minimal --http500=low --http302=maximal --offurl=supermax and then set up cron tabs to call the tool with the right arguments at the right times.

Based on the phase of the moon and a little divination? Sorry, I'm not into this kind of esoteric knowledge.

Just kidding, of course. But what I mean to say is that, without a little more context or background information, it's hard to know what you mean with "dynamic." What kind of reports are you building exactly? What kind of information is collected? How is this information processed? What is reported? What does it mean to "intelligently send pages"? Do you want (your users) to be in control of the 'dynamicity' or do you want your tool to be able to adjust those thresholds yourself? What do you even mean by thresholds? How many are there? What do they regulate? How?


In reply to Re: Dynamic thresholds in report by muba
in thread Dynamic thresholds in report by mhearse

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.