8 years ago
Datasource Display Name token
The datasource tokens ##DataSource## and ##INSTANCE## do not allow for enough granularity.
For example, if I want to the an alert to state that it is a "Citrix Services" alert, I cannot just ...
It is actually a bit worse than this as the left half of the ##DataSource## token is not datasourceName, but datasourceDisplayName -- there is no token for datasourceName (or one that even includes it). I think that ##INSTANCE## is the actual instance string, not a display name, but the two really ought to be available separately. I recently ran into this trying to use these tokens to access datapoint definition details from the API, and found it impossible. I was given a workaround of indirecting through the API alerts table, which does have the datasourceName field (labeled resourceTemplateName in the API results). If you are trying to just build an alert statically out of tokens, you can't really do much other than request more tokens are added. I personally can't use the static method for many reasons -- a builtin dynamic templating system would be awesome, but I had to use a custom integration to achieve this.
Regards,
Mark