GraphQL PipelineAnalytics

I was wanting to retrieve Pipeline Jobs Duration so I could trend job duration over period of time.
When I run the query I expect to have option to set a begin/end limit. The default behavior is to return the latest 30 records. I am no able to find where this is 30 count is set and if it is adjustable.

GitLab self-managed v15.11

Docs I was reading.
https://archives.docs.gitlab.com/15.11/ee/api/graphql/reference/#pipelineanalytics

GraphQL query

{
  project(fullPath: "groupname/sub-groupname/projectname) {
    fullPath
    pipelineAnalytics {
      pipelineTimesLabels
      pipelineTimesValues
    }
  }
}

The OUTPUT only returns the most recent 30 jobs.

{
  "data": {
    "project": {
      "fullPath": "groupname/sub-groupname/project",
      "pipelineAnalytics": {
        "pipelineTimesLabels": [
          "<sha>",
          "<sha>",
          "<sha>",
          "<sha>",
          "<sha>",
          "<sha>",
          "<sha>",
          "<sha>",
          "<sha>",
          "<sha>",
          "<sha>",
          "<sha>",
          "<sha>",
          "<sha>",
          "<sha>",
          "<sha>",
          "<sha>",
          "<sha>",
          "<sha>",
          "<sha>",
          "<sha>",
          "<sha>",
          "<sha>",
          "<sha>",
          "<sha>",
          "<sha>",
          "<sha>",
          "<sha>",
          "<sha>",
          "<sha>"
        ],
        "pipelineTimesValues": [
          32,
          22,
          20,
          68,
          30,
          15,
          14,
          62,
          14,
          44,
          10,
          11,
          10,
          68,
          62,
          70,
          45,
          67,
          51,
          81,
          10,
          81,
          76,
          32,
          63,
          10,
          67,
          50,
          29,
          13
        ]
      }
    }
  }
}

Output above seems to match WebUI > CI/CD Analytics Pipeline durations for the last 30 commits Graph.

Thanks

  • Mike