influxdata / docs.influxdata.com-ARCHIVE

ARCHIVE - 1.x docs for InfluxData
https://archive.docs.influxdata.com/
MIT License
252 stars 293 forks source link

duration cannot be converted into int64 #2936

Closed mamosk closed 4 years ago

mamosk commented 4 years ago

TICKscript syntax documatation states that:

int() - converts a string, float64, Boolean or duration type to an int64

But if I try to convert a duration into an integer, I get following error:

Cannot call function "int" with args (30m0s: duration), available signatures are [(boolean), (string), (int), (float)].

So I guess duration should be removed from int() function documentation.

URL for relevant page?

https://docs.influxdata.com/kapacitor/v1.5/tick/syntax/#working-with-tags-fields-and-variables

What products and version are you using?

Kapacitor v1.5

Where did you look before opening the issue?

Open issues with duration, int, int64 or integer keywords.