Langkau ke kandungan utama

MyGeotab SDK Filter Exception Event Search on an array of ruleIds

DBene-1858
Poster asal

Hey Guys,

 

We're trying to limit the amount of exception data requested for a given fleet in our solution and was wondering if there is way to filter exception event searches using a ruleId array. So something like this:

 

api.call("Get", { "typeName": "ExceptionEvent", "search" : { "fromDate": "2025-03-22T16:30:00.000Z", "toDate": "2025-03-22T18:00:00.000Z", "ruleSearch": { "id": ["aqCjVZJKxTEWVQ4tGfMDD_w", "RuleJackrabbitStartsId", "a5dUhU3z0Q0yI4DdmZPI3nQ", "adA08bZw-kUiSFflNEnikIw"], }, }, }, function(result) { console.log("Done: ", result); }, function(e) { console.error("Failed:", e); });

Not sure what is the proper way of achieving this as we're not looking to filter based on baseType or Groups but based on a set of ruleIds (that includes both custom and stock ruleIds)

Sertai perbualan

Anda perlu log masuk untuk membalas catatan ini dan mengambil bahagian dalam perbincangan Komuniti Geotab.

Jawapan Teratas

You'll want to do each rule in a multicall. Let me know if that's what you're looking for!

1 Balasan

You'll want to do each rule in a multicall. Let me know if that's what you're looking for!

Masih ada soalan?