Hello,
Upon creating an Analytics event via InvokeMethod() and obtaining InvokeResult
as an itemType, I save the path and call GetItem(Path) to check for the status.
The configuration item returned from GetItem() doesn’t contain any state in its properties, the following properties were found:
Key: Id Value: 3B8A066C-844C-4395-B85A-3F3E838810B7
Key: Name Value: testEvent
Key: LastModified Value: 2020-08-17T12:43:38.8530000+02:00
so I assumed it’s already created, but when the Id Value mentioned above is entered as an EventType Property in the InvokeMethod() of creating an Alarm Definition I get the error: Triggering event type is out of range.
Only if I wait around 5s~10s between the 2 requests, the Alarm Definition is created.
How do I ensure that the Analytics event is created and ready? Is this the right way to track the state? because it seems there’s a delay
Kind Regards,
Eslam