# app.didpic.admin.stats

> Published by [lexicons.didpic.app](https://lexicon.garden/identity/did:plc:an2jtp4jgkkbtmwfzhpbxawd)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:an2jtp4jgkkbtmwfzhpbxawd/app.didpic.admin.stats)
- [Documentation](https://lexicon.garden/lexicon/did:plc:an2jtp4jgkkbtmwfzhpbxawd/app.didpic.admin.stats/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:an2jtp4jgkkbtmwfzhpbxawd/app.didpic.admin.stats/examples)

## Definitions

### `app.didpic.admin.stats`

**Type**: `query`

System status snapshot.

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `env` | `string` | Yes |  |
| `push` | `ref` → `#queueStats` | Yes |  |
| `scan` | `ref` → `#queueStats` | Yes |  |
| `actors` | `integer` | Yes |  |
| `resync` | `ref` → `#queueStats` | Yes |  |
| `cursors` | `array` | Yes |  |
| `service` | `string` | Yes |  |
| `moderation` | `object` | Yes |  |

### `app.didpic.admin.stats#queueStats`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `failed` | `integer` | Yes |  |
| `pending` | `integer` | Yes |  |
| `inProgress` | `integer` | Yes |  |

### `app.didpic.admin.stats#cursorState`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `value` | `string` | Yes |  |
| `sourceId` | `string` | Yes |  |
| `updatedAt` | `string` (datetime) | Yes |  |
| `ageSeconds` | `integer` | Yes |  |

## Raw Schema

```json
{
  "id": "app.didpic.admin.stats",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "service",
            "env",
            "cursors",
            "actors",
            "resync",
            "scan",
            "push",
            "moderation"
          ],
          "properties": {
            "env": {
              "type": "string"
            },
            "push": {
              "ref": "#queueStats",
              "type": "ref"
            },
            "scan": {
              "ref": "#queueStats",
              "type": "ref"
            },
            "actors": {
              "type": "integer",
              "minimum": 0
            },
            "resync": {
              "ref": "#queueStats",
              "type": "ref"
            },
            "cursors": {
              "type": "array",
              "items": {
                "ref": "#cursorState",
                "type": "ref"
              }
            },
            "service": {
              "type": "string"
            },
            "moderation": {
              "type": "object",
              "required": [
                "openReports",
                "openAppeals"
              ],
              "properties": {
                "openAppeals": {
                  "type": "integer",
                  "minimum": 0
                },
                "openReports": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "System status snapshot."
    },
    "queueStats": {
      "type": "object",
      "required": [
        "pending",
        "inProgress",
        "failed"
      ],
      "properties": {
        "failed": {
          "type": "integer",
          "minimum": 0
        },
        "pending": {
          "type": "integer",
          "minimum": 0
        },
        "inProgress": {
          "type": "integer",
          "minimum": 0
        }
      }
    },
    "cursorState": {
      "type": "object",
      "required": [
        "sourceId",
        "value",
        "updatedAt",
        "ageSeconds"
      ],
      "properties": {
        "value": {
          "type": "string"
        },
        "sourceId": {
          "type": "string"
        },
        "updatedAt": {
          "type": "string",
          "format": "datetime"
        },
        "ageSeconds": {
          "type": "integer",
          "minimum": 0
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
