Hello,
we are using triggers on web scenarios created via the API. To deduce which web scenario is referenced in a certain trigger, I would like to evaluate the IDs referenced by the trigger functions.
For example, I have a trigger using the `last` function on a `web.test.fail` item.
So this would mean the `web.test.fail` of this web scenario has ID "147450".
But the `item.get` API doesn't return anything, when I search for that ID:
The `httptestid` of the web scenario object (`httptest`) is something completely else and it doesn't have the notion of an `itemid`.
How can the web scenario referenced by the trigger be deduced?
Maybe I'm missing it, but this doesn't seem to be possible.
Thanks in advance,
Dirk
we are using triggers on web scenarios created via the API. To deduce which web scenario is referenced in a certain trigger, I would like to evaluate the IDs referenced by the trigger functions.
For example, I have a trigger using the `last` function on a `web.test.fail` item.
Code:
% cat <<_EOF_ |curl -s ${Z_API} -H "Content-Type: application/json-rpc" --data @- |jq '.result[].functions'
{"jsonrpc": "2.0", "method": "trigger.get", "params": {"triggerids": "65617", "selectFunctions": "extend"}, "auth": "${z_token}", "id": ${z_id}}
_EOF_
[
{
"functionid": "135301",
"itemid": "147450",
"triggerid": "65617",
"parameter": "$",
"function": "last"
}
]
But the `item.get` API doesn't return anything, when I search for that ID:
Code:
% cat <<_EOF_ |curl -s ${Z_API} -H "Content-Type: application/json-rpc" --data @- |jq '.result'
{"jsonrpc": "2.0", "method": "item.get", "params": {"itemids": "147450"}, "auth": "${z_token}", "id": ${z_id}}
_EOF_
[]
How can the web scenario referenced by the trigger be deduced?
Maybe I'm missing it, but this doesn't seem to be possible.
Thanks in advance,
Dirk
Comment