---
title: "Get scan metrics"
method: GET
path: "/api/vps/v1/virtual-machines/{virtualMachineId}/monarx"
tags: ["VPS: Malware scanner"]
---

# Get scan metrics

`GET /api/vps/v1/virtual-machines/{virtualMachineId}/monarx`

Retrieve scan metrics for the [Monarx](https://www.monarx.com/) malware scanner
installed on a specified virtual machine.

The scan metrics provide detailed information about malware scans performed
by Monarx, including number of scans, detected threats, and other relevant
statistics. This information is useful for monitoring security status of the
virtual machine and assessing effectiveness of the malware scanner.

Use this endpoint to monitor VPS security scan results and threat detection.

## Path parameters

- `virtualMachineId` integer, required

## Response `200`

Success response

- VPSV1MalwareMetricsResource
  - `records` integer — Records found during last scan
  - `malicious` integer — Malicious files found during last scan
  - `compromised` integer — Compromised files found during last scan
  - `scanned_files` integer — Total number of files scanned during last scan
  - `scan_started_at` string, date-time
  - `scan_ended_at` string, date-time, nullable

## Other responses

- `401` — Unauthenticated response
- `422` — Validation error response
- `500` — Error response

---

[API](https://skmtc.net/hostinger/apis/hostinger-api.md) · [All operations](https://skmtc.net/hostinger/apis/hostinger-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hostinger/hostinger-api/versions/796bd5194565/schema)
