pMe | (Object) Reference to the PmgTrendViewer object where the event rises. |
---|---|
pEvent | (Object) Reference to object describing detailed information about the specific event.
pEvent.TrendId - (String) [for reading] Identifier of the tvTrend object that obtained the data from server. See the tvTrend.ID property |
var i;
var nCount = pMe.TrendsCount;
for (i = 0; i < nCount; i++)
{
var oTrend = pMe.Trends(i);
Pm.Debug(oTrend.ID + "=" + oTrend.Points.GetValueByIndex(-2, 0));
}