# at.happyproto.fleet.getSignals

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

## Definitions

### `at.happyproto.fleet.getSignals#instanceCounts`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `active` | `integer` | Yes | Reported within 48 hours. |
| `dormant` | `integer` | Yes | Silent over 90 days. EXCLUDES manual-mode instances: a manual instance quiet for 90 days is quiet, not dead. |
| `quiet` | `integer` | Yes | 48 hours to 90 days — plus any manual-mode instance, at any age. |
| `total` | `integer` | Yes | Every instance with at least one snapshot. |

### `at.happyproto.fleet.getSignals`

**Type**: `query`

Fleet-wide failure signals, derived from each instance's most recent snapshot. Admin only.

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `instances` | `ref` → `#instanceCounts` | Yes | Instances by recency. Previously a single integer counting every instance that ever reported, which overstated a fleet whose members had died. |
| `quiet` | `array` | Yes | Instances whose most recent snapshot is older than the quiet threshold. |
| `signals` | `array` | Yes |  |

#### 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.getSignals#quietInstance`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `instanceId` | `string` | Yes |  |
| `lastSeen` | `string` (datetime) | Yes |  |

### `at.happyproto.fleet.getSignals#signal`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `instances` | `integer` | Yes | How many instances reported this at least once. |
| `key` | `string` | Yes |  |
| `label` | `string` | Yes |  |
| `severity` | `string` | No |  |
| `total` | `integer` | No | Sum across the fleet. |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "instanceCounts": {
      "properties": {
        "active": {
          "description": "Reported within 48 hours.",
          "type": "integer"
        },
        "dormant": {
          "description": "Silent over 90 days. EXCLUDES manual-mode instances: a manual instance quiet for 90 days is quiet, not dead.",
          "type": "integer"
        },
        "quiet": {
          "description": "48 hours to 90 days — plus any manual-mode instance, at any age.",
          "type": "integer"
        },
        "total": {
          "description": "Every instance with at least one snapshot.",
          "type": "integer"
        }
      },
      "required": [
        "active",
        "quiet",
        "dormant",
        "total"
      ],
      "type": "object"
    },
    "main": {
      "description": "Fleet-wide failure signals, derived from each instance's most recent snapshot. 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": {
            "instances": {
              "description": "Instances by recency. Previously a single integer counting every instance that ever reported, which overstated a fleet whose members had died.",
              "ref": "#instanceCounts",
              "type": "ref"
            },
            "quiet": {
              "description": "Instances whose most recent snapshot is older than the quiet threshold.",
              "items": {
                "ref": "#quietInstance",
                "type": "ref"
              },
              "type": "array"
            },
            "signals": {
              "items": {
                "ref": "#signal",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "instances",
            "signals",
            "quiet"
          ],
          "type": "object"
        }
      },
      "type": "query"
    },
    "quietInstance": {
      "properties": {
        "instanceId": {
          "type": "string"
        },
        "lastSeen": {
          "format": "datetime",
          "type": "string"
        }
      },
      "required": [
        "instanceId",
        "lastSeen"
      ],
      "type": "object"
    },
    "signal": {
      "properties": {
        "instances": {
          "description": "How many instances reported this at least once.",
          "type": "integer"
        },
        "key": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "severity": {
          "knownValues": [
            "warn",
            "info"
          ],
          "type": "string"
        },
        "total": {
          "description": "Sum across the fleet.",
          "type": "integer"
        }
      },
      "required": [
        "key",
        "label",
        "instances"
      ],
      "type": "object"
    }
  },
  "id": "at.happyproto.fleet.getSignals",
  "lexicon": 1
}
```
