com.trendmicro.ds.loginspection.rest.api

## Interface IWidgetsAPI

-     public interface IWidgetsAPI

  A general widgets interface to retrieve same widget data from logInspection module

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `BarDataListing` | `getLogInspectionHistoryWidget(java.lang.String sID, int timescale)` Get Log Inspection events history data based on LogInspectionHistoryWidget
    `CounterLogInspectionRuleListing` | `getTop5LogInspectionRulesWidget(java.lang.String sID, int timescale)` Get Top 5 Reasons for Log Inspection Events

- - ### Method Detail

    - #### getTop5LogInspectionRulesWidget

          CounterLogInspectionRuleListing getTop5LogInspectionRulesWidget(java.lang.String sID,
                                                                          int timescale)
                                                                   throws java.lang.Exception

      Get Top 5 Reasons for Log Inspection Events
      Parameters:
        `sID` - session ID.
        `timescale` - 1 - last 7 days; 2 - last 24 hours;
      Returns:
        a List of CounterLogInspectionElement, a collection of the top 5 Reasons for Log Inspection Events.
      Throws:
        `java.lang.Exception`

    - #### getLogInspectionHistoryWidget

          BarDataListing getLogInspectionHistoryWidget(java.lang.String sID,
                                                       int timescale)
                                                throws java.lang.Exception

      Get Log Inspection events history data based on LogInspectionHistoryWidget
      Parameters:
        `sID` - session ID.
        `timescale` - 1 - last 7 days; 2 - last 24 hours;
      Returns:
        a List of bar data
      Throws:
        `java.lang.Exception`

Copyright © 2015 Trend Micro Inc. All Rights Reserved.