Documentation ¶
Index ¶
- Constants
- func NewConfigWithFile(configFile string) error
- func NewConfigWithPaths() error
- type BuildInfo
- type InfraIntegrationArgs
- type LabsIntegration
- func NewInfraIntegration(buildInfo *BuildInfo, labsIntegrationOpts ...LabsIntegrationOpt) (*LabsIntegration, error)
- func NewLambdaIntegration(buildInfo *BuildInfo, appName string, ...) (*LabsIntegration, error)
- func NewStandaloneIntegration(buildInfo *BuildInfo, appName string, ...) (*LabsIntegration, error)
- func (i *LabsIntegration) AddEvent(ctx context.Context, eventType string, attributes map[string]string) error
- func (i *LabsIntegration) AddPipeline(p pipeline.Pipeline)
- func (i *LabsIntegration) GetApiKey() string
- func (i *LabsIntegration) GetLicenseKey() string
- func (i *LabsIntegration) GetRegion() region.Name
- func (i *LabsIntegration) Run(ctx context.Context) error
- func (i *LabsIntegration) Shutdown(ctx context.Context)
- type LabsIntegrationOpt
- func WithAccountId() LabsIntegrationOpt
- func WithApiKey() LabsIntegrationOpt
- func WithClient() LabsIntegrationOpt
- func WithEvents(ctx context.Context) LabsIntegrationOpt
- func WithInterval(defaultInterval int) LabsIntegrationOpt
- func WithLicenseKey() LabsIntegrationOpt
- func WithLogs(ctx context.Context) LabsIntegrationOpt
Constants ¶
View Source
const (
DEFAULT_INTERVAL = 60
)
Variables ¶
This section is empty.
Functions ¶
func NewConfigWithFile ¶
func NewConfigWithPaths ¶
func NewConfigWithPaths() error
Types ¶
type InfraIntegrationArgs ¶
type InfraIntegrationArgs struct { nriSdkArgs.DefaultArgumentList ConfigPath string `help:"Path to configuration"` ShowVersion bool `default:"false" help:"Print build information and exit"` EnvPrefix string `default:"" help:"Prefix to use for environment variable lookup"` }
type LabsIntegration ¶
type LabsIntegration struct { BuildInfo *BuildInfo App *newrelic.Application Integration *nriSdk.Integration Logger *logrus.Logger Interval time.Duration NrClient *nrClient.NewRelic RunAsService bool DryRun bool // contains filtered or unexported fields }
func NewInfraIntegration ¶
func NewInfraIntegration( buildInfo *BuildInfo, labsIntegrationOpts ...LabsIntegrationOpt, ) (*LabsIntegration, error)
func NewLambdaIntegration ¶ added in v1.3.1
func NewLambdaIntegration( buildInfo *BuildInfo, appName string, labsIntegrationOpts ...LabsIntegrationOpt, ) (*LabsIntegration, error)
func NewStandaloneIntegration ¶
func NewStandaloneIntegration( buildInfo *BuildInfo, appName string, labsIntegrationOpts ...LabsIntegrationOpt, ) (*LabsIntegration, error)
func (*LabsIntegration) AddPipeline ¶
func (i *LabsIntegration) AddPipeline(p pipeline.Pipeline)
func (*LabsIntegration) GetApiKey ¶
func (i *LabsIntegration) GetApiKey() string
func (*LabsIntegration) GetLicenseKey ¶
func (i *LabsIntegration) GetLicenseKey() string
func (*LabsIntegration) GetRegion ¶
func (i *LabsIntegration) GetRegion() region.Name
func (*LabsIntegration) Shutdown ¶
func (i *LabsIntegration) Shutdown(ctx context.Context)
type LabsIntegrationOpt ¶
type LabsIntegrationOpt func(li *LabsIntegration) error
func WithAccountId ¶
func WithAccountId() LabsIntegrationOpt
func WithApiKey ¶
func WithApiKey() LabsIntegrationOpt
func WithClient ¶
func WithClient() LabsIntegrationOpt
func WithEvents ¶
func WithEvents(ctx context.Context) LabsIntegrationOpt
func WithInterval ¶
func WithInterval(defaultInterval int) LabsIntegrationOpt
func WithLicenseKey ¶
func WithLicenseKey() LabsIntegrationOpt
func WithLogs ¶
func WithLogs(ctx context.Context) LabsIntegrationOpt
Source Files ¶
Click to show internal directories.
Click to hide internal directories.