# at.happyproto.fleet.getLexiconShape

> Published by [happyproto.at](https://lexicon.garden/identity/did:plc:mo7vq4jbioxwafy5zkcc3eux)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.fleet.getLexiconShape)
- [Documentation](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.fleet.getLexiconShape/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.fleet.getLexiconShape/examples)

## Definitions

### `at.happyproto.fleet.getLexiconShape#coverage`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `of` | `integer` | Yes |  |
| `sharing` | `integer` | Yes |  |

### `at.happyproto.fleet.getLexiconShape`

**Type**: `query`

Lexicon counts and top-collection concentration. Reads tier-1 shape only; consent-gated lexicon names are not read here. Admin only.

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `coverage` | `ref` → `#coverage` | No |  |
| `have` | `integer` | No | History available, when accruing. |
| `instances` | `integer` | No |  |
| `lexiconCount` | `ref` → `#pair` | No |  |
| `need` | `integer` | No | History required, when accruing. |
| `status` | `string` | Yes | Why a figure is absent. Branch on this, never on field presence. |
| `topCollectionShare` | `ref` → `#pair` | No |  |
| `unit` | `string` | No |  |

#### Errors

- **AuthRequired**: This endpoint requires an authenticated caller.
- **Forbidden**: The caller is not a HappyProto admin.
- **Upstream**: The telemetry store could not be queried.

### `at.happyproto.fleet.getLexiconShape#pair`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `p50` | `integer` | Yes |  |
| `p90` | `integer` | Yes |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "coverage": {
      "properties": {
        "of": {
          "type": "integer"
        },
        "sharing": {
          "type": "integer"
        }
      },
      "required": [
        "sharing",
        "of"
      ],
      "type": "object"
    },
    "main": {
      "description": "Lexicon counts and top-collection concentration. Reads tier-1 shape only; consent-gated lexicon names are not read here. Admin only.",
      "errors": [
        {
          "description": "This endpoint requires an authenticated caller.",
          "name": "AuthRequired"
        },
        {
          "description": "The caller is not a HappyProto admin.",
          "name": "Forbidden"
        },
        {
          "description": "The telemetry store could not be queried.",
          "name": "Upstream"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "coverage": {
              "ref": "#coverage",
              "type": "ref"
            },
            "have": {
              "description": "History available, when accruing.",
              "type": "integer"
            },
            "instances": {
              "type": "integer"
            },
            "lexiconCount": {
              "ref": "#pair",
              "type": "ref"
            },
            "need": {
              "description": "History required, when accruing.",
              "type": "integer"
            },
            "status": {
              "description": "Why a figure is absent. Branch on this, never on field presence.",
              "knownValues": [
                "ok",
                "accruing",
                "withheld"
              ],
              "type": "string"
            },
            "topCollectionShare": {
              "ref": "#pair",
              "type": "ref"
            },
            "unit": {
              "knownValues": [
                "days",
                "snapshots"
              ],
              "type": "string"
            }
          },
          "required": [
            "status"
          ],
          "type": "object"
        }
      },
      "type": "query"
    },
    "pair": {
      "properties": {
        "p50": {
          "type": "integer"
        },
        "p90": {
          "type": "integer"
        }
      },
      "required": [
        "p50",
        "p90"
      ],
      "type": "object"
    }
  },
  "id": "at.happyproto.fleet.getLexiconShape",
  "lexicon": 1
}
```
