Is there a function or some other way to get the collection time of datapoints? I can see "clock" and "ns" columns in the history database, which appear to have what I need. However, I can't find a way to access this information from a calculated item.
The use case is I'm getting some raw kernel counters for disk activity. For instance:
({Template Disk:disk_total_queue.last(#1)} - {Template Disk:disk_total_queue.last(#2)}) / ({Template Disk:disk_total_queue.collection_time(#1)} - {Template Disk:disk_total_queue.collection_time(#2)})
Would give me the average queue length of the disk if there was a "collection_time" item that would return the proper time.
The use case is I'm getting some raw kernel counters for disk activity. For instance:
({Template Disk:disk_total_queue.last(#1)} - {Template Disk:disk_total_queue.last(#2)}) / ({Template Disk:disk_total_queue.collection_time(#1)} - {Template Disk:disk_total_queue.collection_time(#2)})
Would give me the average queue length of the disk if there was a "collection_time" item that would return the proper time.