Select Supported Platforms

Select Supported Architectures

Select Tier

Github Name


v0.0.1 · public · Published over 3 years ago

README
Asset Definition
Release Notes
Release Assets

Sensu Bonsai Asset
goreleaser
Go Test
goreleaser

Template Toolkit Command

Template Toolkit

Table of Contents

Overview

template-toolkit-command is a Sensuctl command plugin using the Sensu Plugin SDK.
This Sensuctl command plugin allows you to test and validate Sensu plugin template strings, to ensure the templating logic works correctly before you use them in other plugins.

The Template Toolkit is a Sensu Handler that ...

Files

Usage examples

Configuration

Sensuctl command asset registration

Sensuctl command Assets are the best way to make use of this plugin. If you're not using an asset, please consider doing so! You can use the following command to add the asset:

sensuctl command add jspaleta/template-toolkit-command

Sensuctl command usage

Requires event json representation stdin to operate correctly.

$ cat event.json | sensuctl command execute jspaleta/template-toolkit-command --template "{{ .Check.Name}}"
2020/09/18 14:41:26 executing command with --template {{ .Check.Name }}
2020/09/18 14:41:26 Template String Output: keepalive

Installation from source

The preferred way of installing and deploying this plugin is to use it as an Asset. If you would
like to compile and install the plugin from source or contribute to it, download the latest version
or create an executable script from this source.

From the local path of the template-toolkit-command repository:

go build

Additional notes

Contributing

For more information about contributing to this plugin, see Contributing.

Are you sure you want to report this asset?

Please describe the reason for reporting this asset. Our moderators will be notified and will disable the asset if it is found to be inappropriate.

×

You must be signed in to report this asset.

Sign In with Github

Download

×

Either download the source code:

Download Source

Or download the asset definition: