# app.thesocialwire.operations.listMetrics

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

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:qy5pluw2bsuq2x6albsgkvx3/app.thesocialwire.operations.listMetrics)
- [Documentation](https://lexicon.garden/lexicon/did:plc:qy5pluw2bsuq2x6albsgkvx3/app.thesocialwire.operations.listMetrics/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:qy5pluw2bsuq2x6albsgkvx3/app.thesocialwire.operations.listMetrics/examples)

## Definitions

### `app.thesocialwire.operations.listMetrics`

**Type**: `query`

The Social Wire operator query listMetrics.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `to` | `string` (datetime) | No |  |
| `from` | `string` (datetime) | No |  |
| `metric` | `string` | No |  |
| `collection` | `string` | No |  |
| `resolution` | `string` | No |  |

#### Output

**Encoding**: `application/json`

#### Errors

- **InvalidRequest**
- **Forbidden**
- **Unavailable**

## Raw Schema

```json
{
  "id": "app.thesocialwire.operations.listMetrics",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "InvalidRequest"
        },
        {
          "name": "Forbidden"
        },
        {
          "name": "Unavailable"
        }
      ],
      "output": {
        "schema": {
          "ref": "app.thesocialwire.defs#jsonObject",
          "type": "ref"
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "properties": {
          "to": {
            "type": "string",
            "format": "datetime",
            "maxLength": 64
          },
          "from": {
            "type": "string",
            "format": "datetime",
            "maxLength": 64
          },
          "metric": {
            "type": "string",
            "maxLength": 256
          },
          "collection": {
            "type": "string",
            "maxLength": 512
          },
          "resolution": {
            "type": "string",
            "maxLength": 16,
            "knownValues": [
              "1m"
            ]
          }
        }
      },
      "description": "The Social Wire operator query listMetrics."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
