integration

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

README

integration

-- import "github.com/newrelic/nri-flex/internal/integration"

Usage

func HandleRequest
func HandleRequest(ctx context.Context, event interface{}) (string, error)

HandleRequest Handles incoming lambda request

func Lambda
func Lambda()

Lambda handles lambda invocation

func LambdaCheck
func LambdaCheck() bool

LambdaCheck check if Flex is running within a Lambda and insights url and api key has been supplied

func RunFlex
func RunFlex(mode string)

RunFlex runs flex if mode is "" run in default mode

func SetDefaults
func SetDefaults()

SetDefaults set flex defaults

func SetEnvs
func SetEnvs()

SetEnvs set environment variable argument overrides

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleRequest

func HandleRequest(ctx context.Context, event interface{}) (string, error)

HandleRequest Handles incoming lambda request

func Lambda

func Lambda()

Lambda handles lambda invocation

func LambdaCheck

func LambdaCheck() bool

LambdaCheck check if Flex is running within a Lambda and insights url and api key has been supplied

func RunFlex

func RunFlex(mode string)

RunFlex runs flex if mode is "" run in default mode

func SetDefaults

func SetDefaults()

SetDefaults set flex defaults

func SetEnvs

func SetEnvs()

SetEnvs set environment variable argument overrides

Types

This section is empty.

Jump to

Keyboard shortcuts

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