Hostinger API icon

Hostinger API

Interact with the Hostinger API

Actions100

VPS → Get Metrics

AI-generated

Overview

This node operation retrieves performance metrics for a specified Virtual Private Server (VPS) within a given date range. It is useful for monitoring the VPS's resource usage and performance over time, such as CPU, memory, and network metrics. For example, a user can fetch metrics to analyze server load or troubleshoot performance issues.

Use Case Examples

  1. Fetch CPU and memory usage metrics for a VPS from the last week.
  2. Retrieve network traffic data for a VPS between two specific dates.

Properties

Name Meaning
Virtual Machine ID The unique identifier of the VPS for which metrics are to be retrieved.
Date From The start date for the metrics data range (optional).
Date To The end date for the metrics data range (optional).

Output

JSON

  • response - The JSON response containing the VPS metrics data retrieved from the Hostinger API.

Dependencies

  • Hostinger API with authentication credentials

Troubleshooting

  • Ensure the Virtual Machine ID is correct and the VPS exists.
  • Verify that the date range parameters are in the correct format and valid.
  • Check API authentication credentials are properly configured to avoid authorization errors.
  • Common error: 'Unsupported operation' indicates the operation name might be incorrect or not implemented.

Links

Discussion