> ## Documentation Index
> Fetch the complete documentation index at: https://docs.0xarchive.io/llms.txt
> Use this file to discover all available pages before exploring further.

# WebhookEventTypeMetric Schema

> A metric an event carries, and therefore a metric a subscription condition may be written against. Includes schemas, examples, and implementation notes.

Source OpenAPI: 0xArchive API 1.7.0; 218 paths; 210 component schemas.

A metric an event carries, and therefore a metric a subscription condition may be written against.

## Required Fields

No required fields are declared on this component schema.

## JSON Schema

```json theme={"theme":"github-dark"}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "WebhookEventTypeMetric",
  "description": "A metric an event carries, and therefore a metric a subscription condition may be written against.",
  "type": "object",
  "properties": {
    "description": {
      "description": "What the metric measures, including when it is null.",
      "type": "string"
    },
    "type": {
      "description": "Value type of the metric. It decides which operators a condition on this metric may use.",
      "type": "string",
      "enum": [
        "number",
        "integer",
        "string",
        "boolean",
        "timestamp"
      ],
      "example": "number"
    },
    "unit": {
      "description": "Unit the metric is expressed in, when it has one.",
      "type": "string",
      "example": "USD"
    },
    "values": {
      "description": "Accepted values, when the metric is a fixed choice. Conditions are checked against this list.",
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}
```

## Referenced By

Use this shared schema with the generated component index and route-specific endpoint pages during implementation.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.