Documentation ¶
Overview ¶
Package region describes the operational regions defined for New Relic
Regions are geographical locations where the New Relic platform operates and this package provides an abstraction layer for handling them within the New Relic Client and underlying APIs
Index ¶
- Variables
- type InvalidError
- type Name
- type Region
- func (r *Region) InfrastructureURL(path ...string) string
- func (r *Region) NerdGraphURL(path ...string) string
- func (r *Region) RestURL(path ...string) string
- func (r *Region) SetInfrastructureBaseURL(url string)
- func (r *Region) SetNerdGraphBaseURL(url string)
- func (r *Region) SetRestBaseURL(url string)
- func (r *Region) SetSyntheticsBaseURL(url string)
- func (r *Region) String() string
- func (r *Region) SyntheticsURL(path ...string) string
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type InvalidError ¶
type InvalidError struct {
Message string
}
InvalidError returns when the Region is not valid
func ErrorNil ¶
func ErrorNil() InvalidError
ErrorNil returns an InvalidError message saying the value was nil
func (InvalidError) Error ¶
func (e InvalidError) Error() string
Error string reported when an InvalidError happens
type Region ¶
type Region struct {
// contains filtered or unexported fields
}
Region represents the members of the Region enumeration.
func (*Region) InfrastructureURL ¶
InfrastructureURL returns the Full URL for Infrastructure REST API Calls, with any additional path elements appended
func (*Region) NerdGraphURL ¶
NerdGraphURL returns the Full URL for Infrastructure REST API Calls, with any additional path elements appended
func (*Region) RestURL ¶
RestURL returns the Full URL for REST API Calls, with any additional path elements appended
func (*Region) SetInfrastructureBaseURL ¶
SetInfrastructureBaseURL Allows overriding the Infrastructure Base URL
func (*Region) SetNerdGraphBaseURL ¶
SetNerdGraphBaseURL Allows overriding the NerdGraph Base URL
func (*Region) SetRestBaseURL ¶
SetRestBaseURL Allows overriding the REST Base URL
func (*Region) SetSyntheticsBaseURL ¶
SetSyntheticsBaseURL Allows overriding the Synthetics Base URL
func (*Region) SyntheticsURL ¶
SyntheticsURL returns the Full URL for Infrastructure REST API Calls, with any additional path elements appended