Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IUpdateTemplate

Hierarchy

Index

Properties

Optional created

created: Date | string | number

Date the template was first created.

Optional dot

dot: string

GraphViz DOT syntax formatted representation of the template DAG.
NOTE: lables vs attributes does not matter since a template is never executing.

Optional error

error: string

Any error encountered when reading the template.

id

id: string

Optional link

link: ILink

a link object with an href of the resource.Clients should not need to perform path manipulation in most cases and can use the links provided from previous calls.

Optional modified

modified: Date | string | number

Date the template was last modified.

Optional script

script: string

The content of the script.

Optional type

type: "stream" | "batch"

The template type: stream or batch.

Optional vars

vars: IVars

A set of vars for overwriting any defined vars in the TICKscript.

The vars object has the form:

{
    "field_name" : {
        "value": <VALUE>,
        "type": <TYPE>
    },
    "another_field" : {
        "value": <VALUE>,
        "type": <TYPE>
    }
}

The following is a table of valid types and example values.

VarType Example Value Description
Bool true "true" or "false"
Int 42 Any integer value
Float 2.5 or 67 Any numeric value
Duration "1s" or 1000000000 Any integer value interpretted in nanoseconds or an influxql duration string
String "a string" Any string value
Regex "^abc.*xyz" Any string value that represents a valid Go regular expression https://golang.org/pkg/regexp/
Lambda "\"value\" > 5" Any string that is a valid TICKscript lambda expression
Star "" No value is required, a star type var represents the literal * in TICKscript (i.e. .groupBy(*))
List [{"type": TYPE, "value": VALUE}] A list of var objects. Currently lists may only contain string or star vars

Generated using TypeDoc