# Performance Job Stats

> Get monthly job performance (on-time rate) compared against the same period from the previous year.

Source: https://docs.fleetwork.vn/en/dashboard/dashboard-performance-job-stat

**GET** `https://live.fleetwork.vn/api/v1/workspace/dashboard/performance-job-stat`

## Query Parameters

| Parameter  | Required     | Type | Description                   |
| ---------- | ------------ | ---- | ----------------------------- |
| `fromTime` | **Required** | long | Start of date range (Unix ms) |
| `toTime`   | **Required** | long | End of date range (Unix ms)   |

## Example

### Request

```bash
curl -X GET \
  "https://live.fleetwork.vn/api/v1/workspace/dashboard/performance-job-stat?fromTime=1711900800000&toTime=1714492800000" \
  -H "API-KEY: <your-key>"
```

### Response

```json
{
  "code": "OK",
  "message": null,
  "data": {
    "averagePerformance": 84.5,
    "previousAveragePerformance": 78.2,
    "performanceChange": 6.3,
    "performanceChangePercent": 8.06,
    "months": [
      {
        "year": 2026,
        "month": 4,
        "completedJobs": 28,
        "onTimeJobs": 24,
        "lateJobs": 4,
        "performance": 85.71
      },
      {
        "year": 2026,
        "month": 3,
        "completedJobs": 35,
        "onTimeJobs": 29,
        "lateJobs": 6,
        "performance": 82.86
      }
    ]
  }
}
```
