# dev.cocore.compute.latency

> Published by [cocore.dev](https://lexicon.garden/identity/did:plc:5quuhkmwe2q4k3azfsgg7kdz)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:5quuhkmwe2q4k3azfsgg7kdz/dev.cocore.compute.latency)
- [Documentation](https://lexicon.garden/lexicon/did:plc:5quuhkmwe2q4k3azfsgg7kdz/dev.cocore.compute.latency/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:5quuhkmwe2q4k3azfsgg7kdz/dev.cocore.compute.latency/examples)

## Definitions

### `dev.cocore.compute.latency`

**Type**: `query`

Network latency rollup derived purely from indexed receipts' signed `startedAt`/`completedAt` pairs — the last ≤100 per group (overall, per-provider, per-model). No side metrics store: the receipts are the source of truth, so the numbers cannot drift from them.

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `byModel` | `unknown` | No |  |
| `overall` | `unknown` | No |  |
| `byProvider` | `unknown` | No |  |

## Raw Schema

```json
{
  "id": "dev.cocore.compute.latency",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "properties": {
            "byModel": {
              "type": "unknown"
            },
            "overall": {
              "type": "unknown"
            },
            "byProvider": {
              "type": "unknown"
            }
          },
          "description": "Latency overview, grouped overall and by provider and model. Each group reports a sample size and summary statistics (e.g. p50/p95) over the receipts' start→complete durations."
        },
        "encoding": "application/json"
      },
      "description": "Network latency rollup derived purely from indexed receipts' signed `startedAt`/`completedAt` pairs — the last ≤100 per group (overall, per-provider, per-model). No side metrics store: the receipts are the source of truth, so the numbers cannot drift from them."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
