# at.happyproto.fleet.getAdoption

> 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.getAdoption)
- [Documentation](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.fleet.getAdoption/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.fleet.getAdoption/examples)

## Definitions

### `at.happyproto.fleet.getAdoption#feature`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `activeNow` | `integer` | Yes |  |
| `builtNotUsed` | `integer` | Yes | Ever used but not active now. This column is the finding being paid for. |
| `everUsed` | `integer` | Yes |  |
| `feature` | `string` | Yes |  |

### `at.happyproto.fleet.getAdoption`

**Type**: `query`

Per-subsystem feature adoption, ever-used against active now. Admin only.

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `features` | `array` | Yes |  |
| `have` | `integer` | No | History available, when accruing. |
| `instances` | `integer` | No |  |
| `need` | `integer` | No | History required, when accruing. |
| `status` | `string` | Yes | Why a figure is absent. Branch on this, never on field presence. |
| `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.

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "feature": {
      "properties": {
        "activeNow": {
          "type": "integer"
        },
        "builtNotUsed": {
          "description": "Ever used but not active now. This column is the finding being paid for.",
          "type": "integer"
        },
        "everUsed": {
          "type": "integer"
        },
        "feature": {
          "type": "string"
        }
      },
      "required": [
        "feature",
        "everUsed",
        "activeNow",
        "builtNotUsed"
      ],
      "type": "object"
    },
    "main": {
      "description": "Per-subsystem feature adoption, ever-used against active now. 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": {
            "features": {
              "items": {
                "ref": "#feature",
                "type": "ref"
              },
              "type": "array"
            },
            "have": {
              "description": "History available, when accruing.",
              "type": "integer"
            },
            "instances": {
              "type": "integer"
            },
            "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"
            },
            "unit": {
              "knownValues": [
                "days",
                "snapshots"
              ],
              "type": "string"
            }
          },
          "required": [
            "status",
            "features"
          ],
          "type": "object"
        }
      },
      "type": "query"
    }
  },
  "id": "at.happyproto.fleet.getAdoption",
  "lexicon": 1
}
```
