GitLab API

GitlabTool

Actions905

Overview

This node interacts with the GitLab API to increment the count of unique users in usage data via a POST request to the endpoint `/api/v4/usage_data/increment_unique_users`. It is useful for tracking unique user metrics in GitLab usage analytics, particularly in automation workflows that monitor or report user activity.

Use Case Examples

  1. Automatically increment unique user count in GitLab usage data after a specific event.
  2. Integrate with monitoring tools to update GitLab usage statistics programmatically.

Properties

Name Meaning
Skip Authentication Determines whether to skip API authentication for the 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.
Method HTTP method used for the API request, default is POST for this operation.
Parameter Schema Defines the schema for the request body parameters required by the operation.
Request Body Schema Schema for the request body, if applicable.
Request Path The API endpoint path for incrementing unique users in usage data.

Output

JSON

  • response - The JSON response from the GitLab API after incrementing unique users.

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 endpoints.
  • Verify the baseUrl is correctly set to the GitLab instance URL if using a self-hosted GitLab server.
  • Check network connectivity to the GitLab server to avoid request timeouts or connection errors.
  • If the API returns an error, verify the request body matches the expected schema for incrementing unique users.

Links

Discussion