GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation sends usage data events to the GitLab API endpoint `/api/v4/usage_data/track_event`. It is useful for tracking and reporting usage metrics or custom events within GitLab, which can help in monitoring application usage or user interactions.

Use Case Examples

  1. Tracking a custom event when a user performs a specific action in an application integrated with GitLab.
  2. Sending usage data to GitLab for analytics and monitoring purposes.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the request.
Authentication Specifies the authentication method to use, defaulting to GitLab API authentication.
baseUrl The base URL of the GitLab instance to which the request is sent.
Method The HTTP method to use for the request, defaulting to GET but can be set to POST, PUT, DELETE, HEAD, or PATCH.
Parameter Schema Defines the schema for the parameters sent in the request body, required for this operation.
Request Body Schema Defines the schema for the request body, which is required for sending usage data events.
Request Path The API endpoint path for tracking usage data events, fixed to `/api/v4/usage_data/track_event`.

Output

JSON

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

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the GitLab API authentication credential is correctly configured and valid to avoid authentication errors.
  • Verify the baseUrl is correctly set to the GitLab instance URL to prevent connection issues.
  • Check that the request body conforms to the expected schema for the usage data event to avoid validation errors from the API.

Links

Discussion