---
title: "GET /cameras/{cameraId}/metrics"
method: GET
path: "/cameras/{cameraId}/metrics"
tags: ["Cameras"]
---

# GET /cameras/{cameraId}/metrics

`GET /cameras/{cameraId}/metrics`

Returns metrics data.

## Path parameters

- `cameraId` string, required

## Query parameters

- `timestamp__lte` string, date-time
- `timestamp__gte` string, date-time
- `target__in` string[], required
- `period` 'day' | 'hour' | 'minute'

## Response `200`

OK

- MetricQuery[]
  - `target` string, required
  - `dataPoints` array[], required
    - number[] — First value is unix timestamp in milliseconds. Second value is Metric value as a float.

## Other responses

- `400` — The supplied object is invalid. Error detail will contain the validation error.
- `401` — You are not authenticated. Please authenticate and try again.
- `403` — You have no permission to access the specified resource.
- `404` — Referenced resource could not be found.
- `500` — Something went wrong in the server. Please try again.

---

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