cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

makeTimeSeries

dynacondused
Newcomer

Hi, trying to use makeTimeSeries but it doesn't seem to allow the success field I added below

fetch bizevents
| filter eventType == "my-event"

| makeTimeseries {
       started = countDistinct(if(pathname == "/started", clientIPAddress), default: 0),
       completed= countDistinct(if(pathname == "/completed", clientIPAddress), default: 0)

      success = (completed/started) * 100}
| fieldsRemove started, completed

1 REPLY 1

Cameron-Leong
Dynatrace Helper
Dynatrace Helper

Hello,
In order to create a new field that charts completed/started over time, you'll need to divide each value of completed by the corresponding value in started, which can be done using iCollectArray.

fetch bizevents
| filter eventType == "my-event"
| makeTimeseries {
       started = countDistinct(if(pathname == "/started", clientIPAddress), default: 0),
       completed= countDistinct(if(pathname == "/completed", clientIPAddress), default: 0)
 }
| fieldsAdd success = iCollectArray(completed[]/started[])
| fieldsRemove started, completed

 

Featured Posts