Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node integrates with the Matomo API to perform various operations on different Matomo resources. Specifically, for the 'Custom Alert' resource and 'Edit Alert' operation, it allows users to edit an existing custom alert by sending updated parameters to the Matomo API. This is useful for managing alert configurations such as thresholds, notification settings, and other alert properties within Matomo analytics.

Use Case Examples

  1. Editing an existing custom alert to change its metric threshold or notification email list.
  2. Updating the status or conditions of a custom alert to better fit new monitoring requirements.

Properties

Name Meaning
Query Parameters Key-value pairs of parameters to customize the API request for editing the alert, such as alert ID, metric, condition, and other alert-specific settings.
Request Body JSON object containing the updated alert data to be sent in the request body for the edit operation.

Output

JSON

  • json - The JSON response from the Matomo API after editing the alert, containing details of the updated alert or status information.

Dependencies

  • Matomo API credentials including domain and authentication token

Troubleshooting

  • Ensure that the Matomo API credentials (domain and auth token) are correctly configured; missing credentials will cause errors.
  • Verify that the alert ID and other required parameters are correctly provided in the query parameters or request body.
  • Check the API method and parameters for compatibility with the Matomo API version in use.
  • Handle HTTP errors or API response errors gracefully; the node throws detailed errors if the API call fails.

Links

Discussion