Actions
User story #8584
closedThe compliance API is missing a global compliance target
Effort required:
Name check:
Fix check:
Regression:
Description
I'd love to have an "/api/compliance" URL that gives the equivalent of the info we have on the dasbboard, like:
- Global compliance
- Compliance defails (% of success, repaired, no report, unknown, error and missing)
Moreover, we could then use this API to get the values for the dashboard when possible :)
Updated by François ARMAND over 7 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from François ARMAND to Vincent MEMBRÉ
- Pull Request set to https://github.com/Normation/rudder/pull/1850
Updated by François ARMAND over 7 years ago
The PR add a new endpoint for "/compliance" with a return value of:
% curl -k -H "X-API-Token: ..." -H "Content-Type: application/json" -X GET 'https://.../api/latest/compliance' {"action":"getGlobalCompliance","result":"success","data":{"globalCompliance":{"compliance":0,"complianceDetails"}}
When no non-system rules are defined, "compliane":-1 is returned without complianceDetails.
The PR also update rudder dashboard to print a message when no non-system rules are defined with a link toward rules.
Updated by François ARMAND over 7 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder|7287bffd6152498f79d10c590aed5a8678e3a10a.
Updated by Vincent MEMBRÉ about 7 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 4.3.0~rc1 which was released today.
- 4.3.0~rc1: Announce Changelog
- Download: https://www.rudder-project.org/site/get-rudder/downloads/
Actions