Metrics
GET /api/v1/accounts/{username}/metrics
Get Account Metrics
Get historical resource usage metrics for an account.
Path parameters:
| Name | Type | Required | Notes |
|---|---|---|---|
username |
string | yes | — |
Query parameters:
| Name | Type | Required | Notes |
|---|---|---|---|
period |
string | no | pattern=^(24h|7d|30d)$ |
Responses:
| Status | Schema | Description |
|---|---|---|
200 |
object |
Successful Response |
422 |
HTTPValidationError |
Validation Error |
Response example (200):
JSON
{}
cURL example:
shell
curl -X GET \
-H "X-WHost-Key: $WHOST_API_KEY" \
-H "X-WHost-Timestamp: $(date +%s)" \
-H "X-WHost-Nonce: $(openssl rand -hex 16)" \
-H "X-WHost-Signature: $(compute_hmac)" \
https://your-server:2000/api/v1/accounts/{username}/metrics
GET /api/v1/system/metrics
Get Server Metrics
Get historical server-wide resource usage metrics.
Query parameters:
| Name | Type | Required | Notes |
|---|---|---|---|
period |
string | no | pattern=^(24h|7d|30d)$ |
Responses:
| Status | Schema | Description |
|---|---|---|
200 |
object |
Successful Response |
422 |
HTTPValidationError |
Validation Error |
Response example (200):
JSON
{}
cURL example:
shell
curl -X GET \
-H "X-WHost-Key: $WHOST_API_KEY" \
-H "X-WHost-Timestamp: $(date +%s)" \
-H "X-WHost-Nonce: $(openssl rand -hex 16)" \
-H "X-WHost-Signature: $(compute_hmac)" \
https://your-server:2000/api/v1/system/metrics
Still Need Help?
Our support team is here around the clock for anything you can't find above.