Project

General

Profile

Actions

User story #8584

closed

The compliance API is missing a global compliance target

Added by Matthieu CERDA over 8 years ago. Updated almost 7 years ago.

Status:
Released
Priority:
4
Category:
API
Target version:
UX impact:
Suggestion strength:
User visibility:
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 :)


Related issues 2 (0 open2 closed)

Related to Rudder - User story #6820: The dashboard should display something when no reporting data is available (new installation)RejectedFrançois ARMANDActions
Related to Rudder - Bug #13149: Global compliance API is not documentedReleasedBenoît PECCATTEActions
Actions #1

Updated by François ARMAND over 8 years ago

  • Target version changed from Ideas (not version specific) to 4.0.0~rc2
Actions #2

Updated by François ARMAND about 8 years ago

  • Tracker changed from Bug to User story
  • Target version changed from 4.0.0~rc2 to 4.1.0~beta1
Actions #3

Updated by Vincent MEMBRÉ almost 8 years ago

  • Target version changed from 4.1.0~beta1 to 4.1.0~beta2
Actions #4

Updated by Vincent MEMBRÉ almost 8 years ago

  • Target version changed from 4.1.0~beta2 to 4.1.0~beta3
Actions #5

Updated by Vincent MEMBRÉ almost 8 years ago

  • Target version changed from 4.1.0~beta3 to 4.1.0~rc1
Actions #6

Updated by François ARMAND almost 8 years ago

  • Target version changed from 4.1.0~rc1 to 4.2.0~beta1
Actions #7

Updated by Alexis Mousset over 7 years ago

  • Target version changed from 4.2.0~beta1 to 4.2.0~beta2
Actions #8

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 4.2.0~beta2 to 4.2.0~beta3
Actions #9

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 4.2.0~beta3 to 4.2.0~rc1
Actions #10

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 4.2.0~rc1 to 4.2.0~rc2
Actions #11

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 4.2.0~rc2 to 4.2.0
Actions #12

Updated by Vincent MEMBRÉ about 7 years ago

  • Target version changed from 4.2.0 to 4.2.1
Actions #13

Updated by Vincent MEMBRÉ about 7 years ago

  • Target version changed from 4.2.1 to 4.2.2
Actions #14

Updated by Vincent MEMBRÉ about 7 years ago

  • Target version changed from 4.2.2 to 4.2.3
Actions #15

Updated by Vincent MEMBRÉ about 7 years ago

  • Target version changed from 4.2.3 to 4.2.4
Actions #16

Updated by François ARMAND almost 7 years ago

  • Target version changed from 4.2.4 to 4.3.0~rc1
Actions #17

Updated by François ARMAND almost 7 years ago

  • Status changed from New to In progress
Actions #18

Updated by François ARMAND almost 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
Actions #19

Updated by François ARMAND almost 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.

Actions #20

Updated by François ARMAND almost 7 years ago

  • Related to User story #6820: The dashboard should display something when no reporting data is available (new installation) added
Actions #21

Updated by Rudder Quality Assistant almost 7 years ago

  • Assignee changed from Vincent MEMBRÉ to François ARMAND
Actions #22

Updated by François ARMAND almost 7 years ago

  • Status changed from Pending technical review to Pending release
Actions #23

Updated by Vincent MEMBRÉ almost 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.

Actions #24

Updated by Alexis Mousset over 6 years ago

  • Related to Bug #13149: Global compliance API is not documented added
Actions

Also available in: Atom PDF