Uploaded image for project: 'Red Hat Insights Engineering'
  1. Red Hat Insights Engineering
  2. RHINENG-13708

[RFE] Get host's compliance score in the Compliance API response

XMLWordPrintable

      ** Note that this is a public ticket, please refrain from adding any sensitive data. **

      Description of Problem

      I would like to have the compliance score of a server in the Compliance API response. Is this possible to add to the road map?

      For example:
      {
          "data": {
              "id": "1234-5678-1234-5678-1234abcd5678",
              "type": "host",
              "attributes": {
                  "name": "test.example.com",
                  "os_major_version": 9,
                  "os_minor_version": 4,
                  "last_scanned": "2024-10-11T13:11:34Z",
                  "groups": [],
                  "rules_passed": 250,
                  "rules_failed": 19,
                  "has_policy": true,
                  "culled_timestamp": "2024-10-26T18:11:38Z",
                  "stale_timestamp": "2024-10-12T18:11:38Z",
                  "stale_warning_timestamp": "2024-10-19T18:11:38Z",
                  "updated": "2024-10-11T13:11:38Z",
                  "insights_id": "xyz-5678-ychs-5678-frjr3233rojo",
                  "compliant": true
                  "score:": "95"           <---- this would be nice!
              }, 

      Business Impact / Additional info

       We want to add this compliance score into our Grafana dashboard to get a quick overview of this score.

              Unassigned Unassigned
              rhn-support-ngupta Nikhil Gupta
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated: