Ad Widget

Collapse

Function for last collection time?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • blipi
    Junior Member
    • May 2012
    • 3

    #1

    Function for last collection time?

    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.
Working...