Using REST API to build Reports

You can also use the report builder to create reports using preexisting or custom APIs. You can integrate your internal APIs into this platform to generate customized reports.

Creating a Report using Sample REST API

  1. On the Reports :: My Reports page, click Create new report.
  2. Under the BUILD section, enter or select the required field information.
    This table describes the field information under this section:
    Field Description
    *Report name Enter a valid report name.

    For example, Cert Auto Push server.

    Description Enter a valid description for the report.

    For example: This report shows the count of certificates with respect to enabled / disabled push automatically.

    *Select category Select category as certificate.
    ACL restricted Select this checkbox to query certificates based on role permission.
    * : Mandatory fields
  3. Select a sample API hook from the list of preexisting hooks.
  4. Click Next.
  5. Under the CHART CONFIGURATION section, select the PIE chart.
  6. Enter or select the required field information.
    The following table describes the field information in this section:
    Field Description
    *Group by Enter the criteria on the basis of which report data will be grouped.

    For example: pushType.

    *Aggregation Select the calculation to be done on the report data for the dropdown. The following options are available:
    • Average: Calculates the average value of a given set of data.
    • Sum: Calculates the sum of all values in a given set of data.
    • Count: Calculates the total number of items in a given numeric field.
    • Maximum: Displays the maximum value in a given set of data.
    • Minimum: Displays the minimum value in a given set of data.
    * : Mandatory fields
  7. Click Save.
    A preview of the pie chart is generated on the right side of the screen.