Creating a License Usage Report
    • PDF

    Creating a License Usage Report

    • PDF

    Article summary

    Creating Usage Reports

    Users have the ability to create a License Usage Report that can be used to show how much the system has been utilised. The report's primary purpose is to allow systems running in passive licensing mode to report to Glasswall how much of the license has been used. License usage data is aggregated daily into the report format so will often not be immediately present in the report, if the report is created soon after files are submitted to Halo.

    Report contents

    The report contains the following:

    • The license ID the report is for
    • The license name
    • The limits for the license
    • System usage split into daily buckets
      • Each bucket contains the number of files and total size of files put through system for that day
      • Life cycle events relating to the license (installation, deletion) etc
      • Anomalies that describe any issues the system had while tracking license usage
    • The date the report was created
    • The date the license was activated

    The reportSignature is used to validate the contents of the license has not been changed after being generated by the Halo system.

    Example usage report

    {
      "licenseReport": {
        "licenseId": "1e6e8264-2aef-42ad-8fa3-f9f43bae5908",
        "licenseName": "test_licensename:001",
        "entitlementLimits": {
          "haloProcessingDataLimit": "500G",
          "haloProcessingFileLimit": "10000"
        },
        "usage": {
          "2024-02-07": {
            "dayFileSize": 301045177,
            "dayFileCount": 210,
            "anomalyCount": 0,
            "anomalies": [
              
            ],
            "lifeCycle": [
              {
                "detail": "License Installed",
                "time": "2024-03-05T10:01:26.801Z"
              }
            ]
          },
          "2024-02-08": {
            "dayFileSize": 287259157,
            "dayFileCount": 379,
            "anomalyCount": 1,
            "anomalies": [
              {
                "source": "license-monitor",
                "time": "2024-02-21T15:06:00.457Z",
                "message": "Tally Accumulator response could not be retrieved"
              }
            ],
            "lifeCycle": [
              
            ]
          },
          ...
        },
        "created": "2024-03-06 11:22:13.970Z",
        "activationDate": "2024-02-21T11:28:53Z"
      },
      "reportSignature": "eyJhbGciOiJIUzI1NiIsImI2NCI6ZmFsc2UsImtpZCI6ImNvbS5nbGFzc3dhbGwudXNhZ2UtcmVwb3J0LmhzMjU2LnYxIiwiY3JpdCI6WyJiNjQiXX0..PX-yzAbgSLCJDmW4Axf6sYvyIF-g_F8aiBQY96g8Fv8"
    }
    

    Creating a usage report with the API

    Two new HTTP endpoints are available for programmatically downloading usage reports:

    • GET /api/v1/license-usage/active will return a raw JSON response containing the usage report for the currently installed license.
    • GET /api/v1/license-usage/{licenseId} will return the same type of response for a license that has been installed in the past. This works in conjunction with GET /api/v1/license-usage that will return a list of past installed licenses

    Creating a usage report with the portal

    The report for the currently installed license will also be available on the portal.

    Downloading can be done in the System settings page as an Admin user. Downloading via the Portal will return the JSON in a .json file that has a name derived from the license ID and the creation date of the report.

    To download the usage report:

    • Navigate to System settings and Click Download usage report.

    image1.png

    image2.png

    • A file is downloaded containing the report.

    image3.png


    Was this article helpful?