From 16e731fe8a991a05617f7945484b57b67a81b1a4 Mon Sep 17 00:00:00 2001 From: Vilen Topchii <32271530+vtopc@users.noreply.github.com> Date: Wed, 25 Dec 2024 16:54:12 +0200 Subject: [PATCH] docs --- analytics.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/analytics.go b/analytics.go index b85b534..7a421cf 100644 --- a/analytics.go +++ b/analytics.go @@ -22,6 +22,14 @@ type MetricsPagination struct { // ListMetrics returns domain/account metrics. // +// To filter by domain: +// +// opts.Filter.BoolGroupAnd = []mailgun.MetricsFilterPredicate{{ +// Attribute: "domain", +// Comparator: "=", +// LabeledValues: []mailgun.MetricsLabeledValue{{Label: "example.com", Value: "example.com"}}, +// }} +// // NOTE: Only for v1 API. To use the /v1 version define MG_URL in the environment variable // as `https://api.mailgun.net/v1` or set `mg.SetAPIBase("https://api.mailgun.net/v1")` //