# lol.dids.admin.getQueueStats

> Published by [ngerakines.me](https://lexicon.garden/identity/did:plc:cbkjy5n7bk3ax2wplmtjofq2)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:cbkjy5n7bk3ax2wplmtjofq2/lol.dids.admin.getQueueStats)
- [Documentation](https://lexicon.garden/lexicon/did:plc:cbkjy5n7bk3ax2wplmtjofq2/lol.dids.admin.getQueueStats/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:cbkjy5n7bk3ax2wplmtjofq2/lol.dids.admin.getQueueStats/examples)

## Definitions

### `lol.dids.admin.getQueueStats`

**Type**: `query`

Job queue depth, oldest job age, and failure counts.

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `failed` | `integer` | Yes |  |
| `queued` | `integer` | Yes |  |
| `running` | `integer` | Yes |  |
| `byAction` | `unknown` | Yes | Map of job action to a count object. |
| `oldestQueuedAgeSeconds` | `integer` | Yes |  |

## Raw Schema

```json
{
  "id": "lol.dids.admin.getQueueStats",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "queued",
            "running",
            "failed",
            "oldestQueuedAgeSeconds",
            "byAction"
          ],
          "properties": {
            "failed": {
              "type": "integer"
            },
            "queued": {
              "type": "integer"
            },
            "running": {
              "type": "integer"
            },
            "byAction": {
              "type": "unknown",
              "description": "Map of job action to a count object."
            },
            "oldestQueuedAgeSeconds": {
              "type": "integer"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Job queue depth, oldest job age, and failure counts."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
