'start() - now()' throws error in metric expression

#1

I am trying to take the difference between ‘start() - now()’, but it is throwing an error. What is the correct way of writing this expression.

Note: ‘start() > now()’ is an expression that works.

0 Likes

#2

Could you post details of the error?

0 Likes

#3

‘start()’ returns a Timeseries, but ‘now()’ returns a datetime. So we must first convert ‘now()’ into a timeseries.
A correct way to rewrite expression is: ‘start() - identity(now())’

1 Like