pMe | (Object) Reference to the PmgTrendViewer object where the event rises. |
---|---|
pEvent | (Object) Reference to an 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 iTrend;
var nCount = pMe.TrendsCount;
for (iTrend = 0; iTrend < nCount; iTrend++)
{
var oTrend = pMe.Trends(iTrend);
Pm.Debug(oTrend.ID + "=" + oTrend.Points.GetValueByIndex(-2, 0));
}