Skip to main content

group_pipeline_analytics

Gets or lists a group_pipeline_analytics resource.

Overview​

Namegroup_pipeline_analytics
TypeResource
Idgitlab.ci.group_pipeline_analytics

Fields​

The following fields are returned by SELECT queries:

GraphQL response envelope

NameDatatypeDescription
month_pipelines_labelsarray
month_pipelines_successfularray
month_pipelines_totalsarray
pipeline_times_labelsarray
pipeline_times_valuesarray
week_pipelines_labelsarray
week_pipelines_successfularray
week_pipelines_totalsarray
year_pipelines_labelsarray
year_pipelines_successfularray
year_pipelines_totalsarray

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectfull_path, hostfrom_time, ref, source, to_timePipeline analytics. Generated from the GitLab GraphQL schema field Group.pipelineAnalytics (PipelineAnalytics).

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
full_pathstringFull path of the group, for example gitlab-org
hoststringGitLab host, with an optional port (default gitlab.com). Resolved from the GITLAB_HOST environment variable when it is set (x-stackQL-envVar); a WHERE host value always takes precedence. Self-managed instances: the provider is generated from the gitlab.com schema, so older instances may reject fields they do not serve. (default: gitlab.com, x-stackQL-envVar: GITLAB_HOST)
from_timestringStart of the requested time (in UTC). Defaults to the pipelines started in the past week.
refstringBranch that triggered the pipeline.
sourcestringSource of the pipeline.
to_timestringEnd of the requested time (in UTC). Defaults to the pipelines started before the current date.

SELECT examples​

Pipeline analytics. Generated from the GitLab GraphQL schema field Group.pipelineAnalytics (PipelineAnalytics).

SELECT
month_pipelines_labels,
month_pipelines_successful,
month_pipelines_totals,
pipeline_times_labels,
pipeline_times_values,
week_pipelines_labels,
week_pipelines_successful,
week_pipelines_totals,
year_pipelines_labels,
year_pipelines_successful,
year_pipelines_totals
FROM gitlab.ci.group_pipeline_analytics
WHERE full_path = '{{ full_path }}' -- required
AND host = '{{ host }}' -- required (defaults to gitlab.com; or set GITLAB_HOST)
AND from_time = '{{ from_time }}'
AND ref = '{{ ref }}'
AND source = '{{ source }}'
AND to_time = '{{ to_time }}'
;