# What happend when change interval

#1

Hi,
I don’t understand a behaviour of an evalMetrics, if I run :

``````c3Viz(my_type.evalMetrics({
start: "2018-10-16T10:26:00Z",
end: "2018-10-16T10:27:00Z",
ids: ["my_id"],
interval : "SECOND",
expressions : ["my_metric"]
}))
``````

I obtain this plot:

as you can see the values vary in a range with max 0.60.

If return a result of `evalMetrics` in a variable and transform it in dataset `ds`, this is the `max` value:

but the thing that I can’t explain is that, if I change the interval in `MINUTE`

``````c3Viz(my_type.evalMetrics({
start: "2018-10-16T10:26:00Z",
end: "2018-10-16T10:27:00Z",
ids: ["my_id"],
interval : "MINUTE",
expressions : ["my_metric"]
}))
``````

the plot returned is this :

How this value is evaluated ??

Thank you

0 Likes

#2

@gdellefontane1 are you using a tsdecl? If so what is the treatment used ?

0 Likes

#3

No, `my_metric` compute a sum of 6 simple metric :

``````{
"id": "my_metric",
"name": "my_metric",
"expression": "simpleMetric1+ simpleMetric2+ simpleMetric3+ simpleMetric4+ simpleMetric5+ simpleMetric6"
}
``````

I thought that 25,76 could be the sum of all values evaluated at second, but it isn’t, the sum is about 34.

My question is, what happend when the `INTERVAL` change? Which is the aggregation function?

0 Likes