github.com/newrelic/newrelic-client-go@v1.1.0/pkg/nrqldroprules/nrqldroprules.go (about) 1 // Package nrqldroprules provides a programmatic API for interacting configuring New Relc NRQL Drop Rules. 2 package nrqldroprules 3 4 import ( 5 "github.com/newrelic/newrelic-client-go/internal/http" 6 "github.com/newrelic/newrelic-client-go/pkg/config" 7 "github.com/newrelic/newrelic-client-go/pkg/logging" 8 ) 9 10 // NrqlDropRules is used to interact with New Relic accounts. 11 type Nrqldroprules struct { 12 client http.Client 13 logger logging.Logger 14 } 15 16 // New returns a new client for interacting with New Relic accounts. 17 func New(config config.Config) Nrqldroprules { 18 return Nrqldroprules{ 19 client: http.NewClient(config), 20 logger: config.GetLogger(), 21 } 22 }