> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter-d02e98a0-dev-127-conversation-state-store.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# QueryAnalyticsRequestBody

## Example Usage

```typescript theme={null}
import { QueryAnalyticsRequestBody } from "@openrouter/sdk/models/operations";

let value: QueryAnalyticsRequestBody = {
  metrics: [
    "request_count",
  ],
};
```

## Fields

| Field         | Type                                                          | Required             | Description                                                                                                                                                                                                                                                                                                                             | Example |
| ------------- | ------------------------------------------------------------- | -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
| `dimensions`  | *string*\[]                                                   | :heavy\_minus\_sign: | N/A                                                                                                                                                                                                                                                                                                                                     |         |
| `filters`     | [operations.Filter](../../models/operations/filter.mdx)\[]    | :heavy\_minus\_sign: | N/A                                                                                                                                                                                                                                                                                                                                     |         |
| `granularity` | *string*                                                      | :heavy\_minus\_sign: | Time granularity                                                                                                                                                                                                                                                                                                                        | day     |
| `groupLimit`  | *number*                                                      | :heavy\_minus\_sign: | Maximum rows per distinct combination of dimensions. When omitted on time-series queries (granularity + dimensions), auto-computed to avoid truncating time windows. Explicit values override the default and may truncate time buckets if set lower than the number of buckets in the range. Ignored when no dimensions are specified. | 100     |
| `limit`       | *number*                                                      | :heavy\_minus\_sign: | Maximum total rows returned. Defaults to 1000. On time-series queries with dimensions and no explicit group\_limit, the server may raise this to accommodate the expected number of unique time-bucket/dimension combinations.                                                                                                          |         |
| `metrics`     | *string*\[]                                                   | :heavy\_check\_mark: | N/A                                                                                                                                                                                                                                                                                                                                     |         |
| `orderBy`     | [operations.OrderBy](../../models/operations/orderby.mdx)     | :heavy\_minus\_sign: | N/A                                                                                                                                                                                                                                                                                                                                     |         |
| `timeRange`   | [operations.TimeRange](../../models/operations/timerange.mdx) | :heavy\_minus\_sign: | N/A                                                                                                                                                                                                                                                                                                                                     |         |
