New Relic CLI with YAML

YAML parameters for New Relic CLI

NameTypeDescription
action RequiredStringThe ID of the action.
type RequiredStringThe type of the action. Should be set to NEW_RELIC_CLI.
integration RequiredStringThe ID of the integration.
execute_commands RequiredString[]Commands that will be executed.
shellStringThe name of the shell that will be used to execute commands. Can be one of SH (default) or BASH.
setup_commandsString[]The command that will be executed only on the first run.

YAML example for New Relic CLI

yaml
actions: - action: "Run New Relic CLI" type: "NEW_RELIC_CLI" trigger_time: "ON_EVERY_EXECUTION" shell: "SH" setup_commands: - "apt-get update && apt-get -y install git" execute_commands: - "newrelic entity deployment create" integration: "my_integration"

Last modified on Sep 23, 2024