This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Get object name
#1
Hi.
When using a event based script, I want to use event.getvalue() to read the actual value, but I also want to read the object name that triggers the script. 
I  will use this name to read other GA's using grp.find().


Code:
pseudo:


value = event.getvalue()
object = "getObjectName"


alarm_lim = grp.find(object+"_lim")
alarm_tag = grp.find(object+"_alarm")







if value > alarm_lim then
alarm == 1
else

alarm == 0
end



grp.write('alarm_tag',alarm)
Reply


Messages In This Thread
Get object name - by tomnord - 04.06.2021, 08:35
RE: Get object name - by admin - 04.06.2021, 08:42
RE: Get object name - by tomnord - 04.06.2021, 09:19
RE: Get object name - by admin - 04.06.2021, 10:14
RE: Get object name - by tomnord - 04.06.2021, 11:33
RE: Get object name - by admin - 04.06.2021, 12:42
RE: Get object name - by tomnord - 04.06.2021, 12:49
RE: Get object name - by admin - 04.06.2021, 13:46

Forum Jump: