Defines a specific metric to query, including a user-defined name, the base metric type, and optional filters.
| JSON representation |
|---|
{
"name"
:
string
,
"baseMetric"
:
{
object (
|
| Fields | |
|---|---|
name
|
Required. The user-defined name for this metric. This name will be used as the key for this metric's value in the response. |
baseMetric
|
Required. The underlying metric to query. |
filter
|
Optional. Optional filters to apply to the metric. |
BaseMetric
Specifies the base metric to query, which can be a predefined standard metric or a user-defined custom metric (if supported in the future).
| JSON representation |
|---|
{
"standardMetric"
:
enum (
|
metric
. The specific metric to query. metric
can be only one of the following:standardMetric
enum (
StandardMetric
)
A predefined standard metric.
StandardMetric
Enumerates the predefined standard metrics that can be queried.
STANDARD_METRIC_UNSPECIFIED
FEEDBACK_LOOP_ID
FEEDBACK_LOOP_SPAM_RATE
SPAM_RATE
AUTH_SUCCESS_RATE
TLS_ENCRYPTION_MESSAGE_COUNT
TLS_ENCRYPTION_RATE
DELIVERY_ERROR_COUNT
The total count of delivery errors encountered (temporary or permanent rejects). The filter
field supports a limited syntax. Supported formats are:
- Empty: No filter is applied.
-
error_type= "" -
error_type= "" AND error_reason= ""
If an empty filter is provided, the metric will be aggregated across all error types and reasons. If only error_type
is specified, the metric will be aggregated across all reasons for that type.
Supported
- reject
- temp_fail
Supported
- For 'reject': [bad_attachment, bad_or_missing_ptr_record, ip_in_rbls, low_domain_reputation, low_ip_reputation, spammy_content, stamp_policy_error, other]
- For 'temp_fail': [anomalous_traffic_pattern, other]
DELIVERY_ERROR_RATE
Delivery error rate for the specified delivery error type. The filter
field supports a limited syntax. Supported formats are:
- Empty: No filter is applied.
-
error_type= "" -
error_type= "" AND error_reason= ""
If an empty filter is provided, the metric will be aggregated across all error types and reasons. If only error_type
is specified, the metric will be aggregated across all reasons for that type.
Supported
- reject
- temp_fail
Supported
- For 'reject': [bad_attachment, bad_or_missing_ptr_record, ip_in_rbls, low_domain_reputation, low_ip_reputation, spammy_content, stamp_policy_error, other]
- For 'temp_fail': [anomalous_traffic_pattern, other]

