Documentation

tickscript.defineCheck() function

The tickscript.defineCheck() function is a user-contributed function maintained by the package author and can be updated or removed at any time.

The tickscript.defineCheck() function creates and returns a record with custom check data required by tickscript.alert() and tickscript.deadman(). This check data specifies information about the check in the InfluxDB monitoring system.

import "contrib/bonitoo-io/tickscript"

tickscript.defineCheck(
    id: "000000000000",
    name: "Example check name",
    type: "custom",
)

Parameters

id

(Required) InfluxDB check ID.

name

(Required) InfluxDB check name.

type

InfluxDB check type. Default is custom.

Supported values:

  • threshold
  • deadman
  • custom

Examples

Generate InfluxDB check data
import "contrib/bonitoo-io/tickscript"

tickscript.defineCheck(id: "000000000000", name: "Example check name")

// The function above returns: {
//   _check_id: "000000000000",
//   _check_name: "Example check name",
//   _type: "custom",
//   tags: {}
//  }

Package author and maintainer

Github: @bonitoo-io, @alespour
InfluxDB Slack: @Ales Pour


Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.