• Icon: Story Story
    • Resolution: Done
    • Icon: Major Major
    • 1.8.0
    • None
    • Scorecard plugin
    • None
    • RHDH Plugins 3278, RHDH Plugins 3279

      Story

      Create an API to fetch metric values.

      The format should look like this:

      GET /scorecard/catalog/:kind/:namespace/:name/metrics

      with optional query by metricId:

      GET /scorecard/catalog/:kind/:namespace/:name/metrics?metricIds=jira.open-issues,github.open_prs

       

      Support threshold definitions by annotations and Config:

      Config:

      scorecard:
       plugins:
         jira:
           open_issues:
             thresholds:
               // type: simple # add later to distinguish from other types if needed
               rules:
                 error: ">40"
                 warning: ">20"
                 success: "<=20"

       

      Simple entity annotations:

       scorecard.io/jira.open-issues.thresholds.rules.error: ">40"
       scorecard.io/jira.open-issues.thresholds.rules.warning: ">20"
       scorecard.io/jira.open-issues.thresholds.rules.success: "<=20"

       

      If needed, we can do whole config later:

      scorecard.io/jira.open-issues.config: | 
        { ... }
      

      Background

      Dependencies and Blockers

      QE impacted work

      Documentation impacted work

      Acceptance Criteria

      upstream documentation updates (design docs, release notes etc)

      Technical enablement / Demo

              rh-ee-dzemanov Dominika Zemanovicova
              rh-ee-dzemanov Dominika Zemanovicova
              RHIDP - Plugins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: