In addition - a good practice is to use expandString function, e.g.
in this case you just use the same string with macros as when specifying timer key, so there's no need to compose the key manually.
Code Select
key = $event->expandString("TIMER_DC_THRESHOLD_%I_%<dciId>");in this case you just use the same string with macros as when specifying timer key, so there's no need to compose the key manually.