Skip to content

Draft: Add jobAnalytics GraphQL API to fetch data on our jobs

What does this MR do and why?

References

#541703 (closed)

Screenshots or screen recordings

Before After

How to set up and validate locally

{
  jobAnalytics(
    query: {
      dimensions: [{column: "name"}, {column: "stage_id"}], 
      
      metrics: [{function: "avg", column: "duration", as: "medianDuration"}, {function: "quantile(0.95)", column: "duration", as: "p95Duration"}],
      
      filter: [{ column: "name", operator: "LIKE", value: "%job%" }]
    }
  
  ) {
    results
    sql
  }
}

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Miguel Rincon

Merge request reports

Loading