# Monitor uptime

`GET /service/@id/uptime/monitors/@monitor/uptime` · Tino Uptime, service owner's sign-in token

Uptime for the `24h`, `7d`, `30d`, `90d` windows (`uptime_pct`, checks, downtime, average latency; the `7d` window adds p95) and one month's SLA (`month=YYYY-MM`, Vietnam time). Available on every plan.

## HTTP request

| Item | Value |
| --- | --- |
| URL | `https://api.tino.vn/service/@id/uptime/monitors/@monitor/uptime` |
| Method | `GET` |
| Authentication | the Tino Uptime service owner's sign-in token (`Authorization: Bearer <token>`); the `/v1` gateway does not expose Tino Uptime yet |
| Content-Type | — (no body) |

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | int | yes | Tino Uptime service ID |
| `monitor` | path | string | yes | Monitor ID (UUID, `id` in the monitor list) |
| `windows` | query | string | no | Windows to compute, comma-separated: `24h`, `7d`, `30d`, `90d` (all four by default) |
| `month` | query | string | no | `YYYY-MM`: adds that month's SLA (Vietnam time, last 13 months) |

## Example request

```bash
curl "https://api.tino.vn/service/100002/uptime/monitors/3f6c2a10-8b1e-4c5d-9a7f-2e4b6c8d0a11/uptime?windows=24h,30d" \
  -H "Authorization: Bearer $TINO_TOKEN"
```

`$TINO_TOKEN` is the Tino Uptime service owner's sign-in token. Path parameters in the example are sample values.

SDK ([SDK & examples](/en/docs/sdk)): no dedicated function yet, use `client.request("GET", "/service/@id/uptime/monitors/@monitor/uptime")`.

## Example response

```json
{
 "data": {
  "windows": [
   {
    "window": "24h",
    "days": 1,
    "checks": 4320,
    "uptime_pct": 100,
    "avg_latency_ms": 176.4,
    "downtime_s": 0,
    "no_data": false
   },
   {
    "window": "30d",
    "days": 30,
    "checks": 129600,
    "uptime_pct": 99.98,
    "avg_latency_ms": 181.2,
    "downtime_s": 518,
    "no_data": false
   }
  ]
 }
}
```

Sample built from the Tino Uptime OpenAPI (Tino relays the answer as is inside `data`); values are examples.
