---
title: "Reads what each lambda has been doing"
method: GET
path: "/telemetry/lambdas"
tags: ["Telemetry"]
---

# Reads what each lambda has been doing

`GET /telemetry/lambdas`

## Request

- Base URL: `https://genhttp.dev/api/v1`
- URL: `https://genhttp.dev/api/v1/telemetry/lambdas`
- Auth: none declared. Required headers: `X-Admin-Token`

Only the public key identifies a lambda here - the editor key, the code and the visitors are not part of it. A lambda nobody called is not listed.

## Headers

- `X-Admin-Token` string, required

## Response `200`

Every lambda that was called, and the totals

- ActivityResponse: What every lambda has been doing since the server came up.
  - `Lambdas` LambdaActivity[]: Every lambda that was called
    - `PublicKey` string: The lambda, by its public key
    - `Requests` integer: Requests it answered
    - `Failed` integer: Of those, answered with a server error
    - `Upgrades` integer: Connections upgraded to a websocket
    - `AverageMillis` number, double: The mean time to answer, in milliseconds
    - `SlowestMillis` number, double: The longest time to answer, in milliseconds
    - `BytesOut` integer: What the responses carried, counting only those that said how much - a floor rather than a total
    - `FirstSeen` string, date-time, nullable: When the first request arrived
    - `LastSeen` string, date-time, nullable: When the last request arrived
  - `Requests` integer: Their requests, together
  - `Upgrades` integer: Their websocket upgrades, together

## Other responses

- `204`: A response containing no body
- `401`: The token is missing.
- `403`: The token is wrong.

---

[API](https://skmtc.dev/genhttp/apis/genhttp-lambda-api.md) · [All operations](https://skmtc.dev/genhttp/apis/genhttp-lambda-api/llms.txt) · [OpenAPI document](https://skmtc.dev/genhttp/apis/genhttp-lambda-api/revisions/8b36699e03df?raw)
