package
0.6.1
Repository: https://github.com/circonus-labs/cosi-tool.git
Documentation: pkg.go.dev

# Functions

Create check bundle from supplied configuration, returns created check bundle or error.
CreateFromFile uses Circonus API to create a check from supplied configuration file.
Delete uses Circonus API to delete a check from supplied configuration file, type or id.
Fetch retrieves a check using the Circonus API.
FetchByID retrieves a check bundle by CID using Circonus API.
FetchByName retrieves a check bundle by Display Name using Circonus API.
FetchByTarget retrieves a check bundle by Target using Circonus API.
FetchByType retrieves a check bundle by COSI check type (system|group) using Circonus API.
List local cosi checks.
Update uses Circonus API to update a check.
UpdateFromFile uses Circonus API to update a check from supplied configuration file.

# Constants

DefaultCID is the default value for the id fetch option.
DefaultForce is the default value for the force flag.
DefaultInFile is the default value for the input file option.
DefaultLong is the default value for the long flag.
DefaultName is the default value for the name fetch option.
DefaultOutFile is the default value for the output file option.
DefaultQuiet is the default value for the quiet flag.
DefaultTarget is the default value for the target fetch option.
DefaultType is the default value for the type fetch option.
DefaultVerify is the default value for the verify flag.
KeyCID is the check bundle id.
KeyForce is a flag to force overwritting files.
KeyInFile is the input check configuration file.
KeyLong is a flag indicating list should output long, more verbose, listings.
KeyName is the display name of a check.
KeyOutFile is the output file for saving a fetched check configuration.
KeyQuiet is a flag for limiting output.
KeyTarget is the target of a check.
KeyType is the cosi check type.
KeyVerify is a flag to indicate list should verify check has not been modified.

# Interfaces

CircAPI interface abstraction of circonus api (for mocking).