interfaces

package
v1.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(apiKey string, regionVal string) (*newrelic.NewRelic, error)

NewClient initializes a new instance of NR Client

func PartialAPIKey

func PartialAPIKey(apiKey string) string

PartialAPIKey - Returns a partial API key to ensure we don't log the full API Key

Types

type NewRelicClientInterface

type NewRelicClientInterface interface {
	Alerts() *alerts.Alerts
	Notifications() *notifications.Notifications
	Workflows() *workflows.Workflows
}

NewRelicClientInterface defines the methods for interacting with the NR API

func InitNewClient

func InitNewClient(apiKey string, regionName string) (NewRelicClientInterface, error)

InitNewClient initalizes a given client's CRUD functionality

type NewRelicClientWrapper

type NewRelicClientWrapper struct {
	// contains filtered or unexported fields
}

NewRelicClientWrapper wraps the New Relic client and implements NewRelicClientInterface

func (*NewRelicClientWrapper) Alerts

func (n *NewRelicClientWrapper) Alerts() *alerts.Alerts

Alerts returns the Alerts client

func (*NewRelicClientWrapper) Notifications

Notifications returns the notifications client

func (*NewRelicClientWrapper) Workflows

func (n *NewRelicClientWrapper) Workflows() *workflows.Workflows

Workflows returns the Workflows client

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL