Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vtopc committed Dec 25, 2024
1 parent 3d30cf4 commit 16e731f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions analytics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")`
//
Expand Down

0 comments on commit 16e731f

Please sign in to comment.