- [JSON representation](https://developers.google.com/workspace/gmail/postmaster/reference/rest/v2/QueryDomainStatsResponse#SCHEMA_REPRESENTATION)
- [DomainStat](https://developers.google.com/workspace/gmail/postmaster/reference/rest/v2/QueryDomainStatsResponse#DomainStat)
  - [JSON representation](https://developers.google.com/workspace/gmail/postmaster/reference/rest/v2/QueryDomainStatsResponse#DomainStat.SCHEMA_REPRESENTATION)
- [StatisticValue](https://developers.google.com/workspace/gmail/postmaster/reference/rest/v2/QueryDomainStatsResponse#StatisticValue)
  - [JSON representation](https://developers.google.com/workspace/gmail/postmaster/reference/rest/v2/QueryDomainStatsResponse#StatisticValue.SCHEMA_REPRESENTATION)
- [StringList](https://developers.google.com/workspace/gmail/postmaster/reference/rest/v2/QueryDomainStatsResponse#StringList)
  - [JSON representation](https://developers.google.com/workspace/gmail/postmaster/reference/rest/v2/QueryDomainStatsResponse#StringList.SCHEMA_REPRESENTATION)

Response message for QueryDomainStats.

| JSON representation |
|---|
| ``` { "domainStats": [ { object (`https://developers.google.com/workspace/gmail/postmaster/reference/rest/v2/QueryDomainStatsResponse#DomainStat`) } ], "nextPageToken": string } ``` |

| Fields ||
|---|---|
| `domainStats[]` | ``object (`https://developers.google.com/workspace/gmail/postmaster/reference/rest/v2/QueryDomainStatsResponse#DomainStat`)`` The list of domain statistics. Each DomainStat object contains the value for a metric requested in the QueryDomainStatsRequest. |
| `nextPageToken` | `string` Token to retrieve the next page of results, or empty if there are no more results in the list. |

## DomainStat

Email statistics for a domain for a specified time period or date.

| JSON representation |
|---|
| ``` { "name": string, "value": { object (`https://developers.google.com/workspace/gmail/postmaster/reference/rest/v2/QueryDomainStatsResponse#StatisticValue`) }, "date": { object (`https://developers.google.com/workspace/gmail/postmaster/reference/rest/v2/Date`) }, "metric": string } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. The resource name of the DomainStat resource. Format: domains/{domain}/domainStats/{domain_stat} The `{domain_stat}` segment is an opaque, server-generated ID. We recommend using the `metric` field to identify queried metrics instead of parsing the name. |
| `value` | ``object (`https://developers.google.com/workspace/gmail/postmaster/reference/rest/v2/QueryDomainStatsResponse#StatisticValue`)`` The value of the corresponding metric. |
| `date` | ``object (`https://developers.google.com/workspace/gmail/postmaster/reference/rest/v2/Date`)`` Optional. The specific date for these stats, if granularity is DAILY. This field is populated if the QueryDomainStatsRequest specified a DAILY aggregation granularity. |
| `metric` | `string` The user-defined name from MetricDefinition.name in the request, used to correlate this result with the requested metric. |

## StatisticValue

The actual value of a statistic.

| JSON representation |
|---|
| ``` { "intValue": string, "doubleValue": number, "stringValue": string, "floatValue": number, "stringList": { object (`https://developers.google.com/workspace/gmail/postmaster/reference/rest/v2/QueryDomainStatsResponse#StringList`) } } ``` |

| Fields ||
|---|---|
| Union field `value`. The specific value of the statistic. `value` can be only one of the following: ||
| `intValue` | `string (https://developers.google.com/discovery/v1/type-format format)` Integer value. |
| `doubleValue` | `number` Double value. |
| `stringValue` | `string` String value. |
| `floatValue` | `number` Float value. |
| `stringList` | ``object (`https://developers.google.com/workspace/gmail/postmaster/reference/rest/v2/QueryDomainStatsResponse#StringList`)`` List of string values. |

## StringList

Represents a list of strings.

| JSON representation |
|---|
| ``` { "values": [ string ] } ``` |

| Fields ||
|---|---|
| `values[]` | `string` The string values. |