GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node interacts with the GitLab API to post usage data tracking events to the endpoint `/api/v4/usage_data/track_events`. It is useful for scenarios where you want to send custom usage or event data to GitLab for analytics or monitoring purposes. For example, tracking user actions or system events within GitLab projects or instances.

Use Case Examples

  1. Sending a POST request to GitLab's usage data tracking endpoint with event details to monitor feature usage.
  2. Automating the collection of usage metrics by posting event data from an external system to GitLab.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication 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 request is sent, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to POST for this operation.

Output

JSON

  • response - The JSON response returned from the GitLab API after posting usage data tracking events.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the GitLab API key credential is correctly configured and has the necessary permissions to post usage data.
  • Verify the baseUrl is correct and accessible from the environment where the node runs.
  • Check that the request body conforms to the expected schema for usage data tracking events to avoid validation errors.

Links

Discussion