GitLab API

GitlabTool

Actions905

Overview

This node operation fetches non-SQL usage data metrics from the GitLab API (version 4). It is useful for users who want to retrieve detailed usage statistics related to GitLab's non-SQL metrics, which can help in monitoring and analyzing GitLab usage patterns.

Use Case Examples

  1. A DevOps engineer wants to monitor GitLab usage metrics to optimize resource allocation.
  2. A project manager needs to generate reports on GitLab usage statistics for team performance analysis.

Properties

Name Meaning
Skip Authentication Determines whether to skip the authentication process for the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance to which the API request is sent, defaulting to https://gitlab.com.
Method The HTTP method used for the API request, defaulting to GET.
Parameter Schema Schema for parameters to be sent with the request, hidden and specific to this operation.
Request Body Schema Schema for the request body, hidden and specific to this operation.
Request Path The API endpoint path for fetching non-SQL usage data metrics, fixed to /api/v4/usage_data/non_sql_metrics.

Output

JSON

  • data - The JSON response containing the non-SQL usage data metrics retrieved from the GitLab API.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the GitLab API key credential is correctly configured and has sufficient permissions to access usage data.
  • Verify the baseUrl is correct and accessible, especially if using a self-hosted GitLab instance.
  • Check the HTTP method is appropriate; typically, GET is used for this operation.
  • If the API endpoint path changes in future GitLab versions, update the node configuration accordingly.

Links

Discussion