runintegration

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Copyright 2020 New Relic Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoIntName     = errors.New("missing required \"integration_name\"")
	ErrIntNotAllowed = errors.New("integration not allowed to run/stop from command channel")
)

Errors

Functions

func LogDecorated

func LogDecorated(logger log.Entry, cmd commandapi.Command, args RunIntArgs) log.Entry

func NewConfigFromCmdChannelRunInt

func NewConfigFromCmdChannelRunInt(args RunIntArgs) config.ConfigEntry

newConfigFromCmdReq creates an integration config from a command request.

func NewHandler

func NewHandler(definitionQ chan<- integration.Definition, il integration.InstancesLookup, dmEmitter dm.Emitter, logger log.Entry) *cmdchannel.CmdHandler

NewHandler creates a cmd-channel handler for run-integration requests.

func NotifyPlatform

func NotifyPlatform(dmEmitter dm.Emitter, def integration.Definition, ev protocol.EventData)

Types

type RunIntArgs

type RunIntArgs struct {
	IntegrationName string   `json:"integration_name"`
	IntegrationArgs []string `json:"integration_args"`
}

func (*RunIntArgs) Hash

func (a *RunIntArgs) Hash() string

Hash hashes the run-integration request, so intergation can be required to stop using same arguments.

Jump to

Keyboard shortcuts

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