# DeploymentApiTrafficDto

A model the API reference uses in a request or a response. The operation pages link every field typed as this model here.

The whole deployment's API traffic over a window: request totals per operation and per status class.

## Fields
- `fromUtc` (string(date-time)): The start of the window actually read, UTC, at the start of a day.
- `toUtcExclusive` (string(date-time)): The end of the window actually read, UTC, exclusive, at the start of a day.
- `totalRequestCount` (integer(int64)): Requests recorded across the deployment in the window. Equal to the sum of `statusClasses`, and to the sum of `merchantKeyRequestCount`, `resellerKeyRequestCount` and `adminKeyRequestCount`. Requests made without an API key are never included.
- `merchantKeyRequestCount` (integer(int64)): Requests made with a merchant's API key: the key names the merchant it acts for.
- `resellerKeyRequestCount` (integer(int64)): Requests made with a reseller's own API key, which names no merchant, for example to create merchants or provision hosted payment pages across them. Counted from the release that added this field; a window that starts before the deployment took that release undercounts it.
- `adminKeyRequestCount` (integer(int64)): Requests made with an administrator's API key, which names no merchant and no reseller. Counted from the release that added this field; a window that starts before the deployment took that release undercounts it.
- `operations` (array<[DeploymentApiOperationTrafficDto](https://docs.winkpg.io/docs/api/models/DeploymentApiOperationTrafficDto.md)>): Requests per operation, most requests first. An operation is the HTTP method and route template, for example `GET /api/app/transaction/{id}`. Requests that matched no route are counted under `__unknown`. (nullable)
  Fields of each item:
  - `operationId` (string): The HTTP method and route template, for example `GET /api/app/transaction/{id}`, or `__unknown`. (nullable)
  - `requestCount` (integer(int64)): Requests recorded for the operation in the window.
- `statusClasses` (array<[DeploymentApiStatusClassTrafficDto](https://docs.winkpg.io/docs/api/models/DeploymentApiStatusClassTrafficDto.md)>): Requests per response status class (`2xx`, `4xx` and so on), most requests first. A response with a status outside 100 to 599 is counted under `__unknown`. (nullable)
  Fields of each item:
  - `statusClass` (string): The status class, for example `2xx` or `4xx`, or `__unknown`. (nullable)
  - `requestCount` (integer(int64)): Requests recorded with the status class in the window.
- `resellerCount` (integer(int32)): How many resellers' traffic was summed: their merchants' keys and their own keys.
- `isTruncated` (boolean): Whether the read stopped short of the request. It is `true` when the window was longer than the most the read covers, so `fromUtc` moved later than the request asked for, or when the deployment has more resellers than one read sums, so some resellers' traffic is missing. Treat the totals as a lower bound when this is `true`.

## See also

- [All documentation](https://docs.winkpg.io/llms.txt): the machine-readable index of every public page on this site.
