Example #1
0
echo renderTopNTableBody($week_top_host_agg, 10, 'host');
?>
        </tbody>
        </table>

        <h3>Top Notifying Services</h3>
        <p>Services that recieved the most notifications during this week</p>
        <table class="table table-striped table-bordered table-hover">
        <thead>
            <tr>
            <th>Service</th><th>Count</th>
            </tr>
        </thead>
        <tbody> 
        <?php 
echo renderTopNTableBody($week_top_service_agg, 10, 'service');
?>
        </tbody>
        </table>

        <h3>Alert Volume per Day</h3>
        <p>Breakdown of the number of alerts received per day over the last week</p>
        <div id="per_day_volume"></div>
        <br />

        <script type="text/javascript">
            var data = google.visualization.arrayToDataTable(<?php 
echo json_encode($per_day_graph_data);
?>
);
Example #2
0
        </p>
        <?php 
}
?>

        <h3>Top Notifying Services</h3>
        <p>Services that received the most notifications during this year</p>
        <table class="table table-striped table-bordered table-hover">
        <thead>
            <tr>
            <th>Service</th><th>Count</th>
            </tr>
        </thead>
        <tbody> 
        <?php 
echo renderTopNTableBody($year_top_service_agg, 10, 'service');
?>
        </tbody>
        </table>
        <?php 
if (count($year_top_waking_service) > 1) {
    ?>
        <p>The top 5 services that woke people up were:
            <?php 
    echo renderTopNPrettyLine($year_top_waking_service);
    ?>
        </p>
        <?php 
}
?>