*Cloud*

# The metrics object

A service's resource use over a range: CPU, memory and network out, for the service and each replica, from one-minute windows.

## Attributes

- `range` (string): 1h, 3h, 24h, 7d or 30d.
- `step_s` (number): Seconds per point.
- `series` (object): cpu_millis, memory_mb and network_tx_bytes, each a list of [unix, value].
- `replicas` (array): The same series per replica.
- `limits` (object): The limits in force.

## Example

```json
{
  "data": {
    "range": "24h",
    "step_s": 300,
    "series": {"cpu_millis":[[1764324900,412]],"memory_mb":[[1764324900,618]]},
    "replicas": [{"replica":"r1","cpu_millis":[[1764324900,205]]}],
    "limits": {"cpu_millis":1000,"memory_mb":1024}
  }
}
```

## Endpoints

- `GET` [Get service metrics](https://docs.dispralabs.com/api/get-service-metrics.md)
