The atg.service.statistics.Sample
class represents the value of a single property as observed at a specific point in time. It contains the following information:
the name of the component and property from which the sample was taken
the time the sample was taken
the value of the sample, as an Object
In addition, if the value is a numeric value such as an Integer
, the Sample
also contains the difference in value between the current sample and the last sample taken of that property. This is presented as the following information:
the difference in value, as a double
the difference in time, in milliseconds
the rate of change of the value, determined by dividing the difference in value by the difference in time, expressed as change/seconds
The atg.service.statistics.SampleEvent
class holds an ordered list of Samples, presumably taken at the same point in time. When the Sampler
runs, it generates SampleEvents
, from which individual Sample
objects can be obtained.