Skip to main content

How to Capture IP Addresses, Video URLs, and Timestamps for Events Using "Do HTTP Request" in NX Meta?

Planned

Comments

3 comments

  • Ichiro
    • Network Optix team

    Hi Chirag Jhariya

    Thanks for your questions. The placeholders feature is currently applicable to Analytics and Generic Events. If your event category falls outside of these two, placeholders will not be available.

    From the release note of our previous release: 

    The following placeholders can be used within the HTTP POST request body, 
    and they will be automatically replaced with corresponding values from Analytics Event parameters:

    {event.cameraId} – Camera ID (e.g., ad1d1b6c-7013-0049-6fd4-ff15450e4716)
    {event.cameraName} – Camera name (e.g., PND-9080R)
    {event.eventType} – Event type (e.g., nx.stub.objectInTheArea or nx.stub.lineCrossing)
    {event.eventName} – Event name (e.g., Object in the area or Line crossing)
    {event.caption} – Caption (e.g., Line crossing - impulse event (caption))
    {event.description} – Description (e.g., "Line crossing - impulse event (description)")

     

    There is an alternative approach as well. 
    You can monitor events using the transaction bus via HTTP or WebSocket. This allows you to parse JSON responses dynamically and extract the required information. Please notice that the API endpoint in the document could be replaced to the latest version, and we do recommend you use the latest ones. You can find the successor via this changelog

     

    Regarding to your questions you might be suggested to check our latest media server API:

    1. Fetching the device’s IP address: REST API - Get Device Details
    2. Building a video URL dynamically based on the event: REST API - Retrieve Media Format

    3. Regarding Testing and Validating HTTP Requests
    Only this one, we are not sure what do you mean by this.
    Could you clarify what exactly you mean by “testing and validating HTTP requests efficiently”?

    Thanks.

    0
  • Chirag Jhariya

     The ec2/transactionBus endpoint is taking too long to respond on the Postman client via  HTTP. 

    0
  • Ichiro
    • Network Optix team

    Hi Chirag Jhariya,

    At the moment, this is what we can provide, and we are unable to address the performance concerns related to the Postman client.

    Typically, the transaction bus is implemented via WebSocket (or HTTP), and it can retrieve event details almost simultaneously when the “broadcast” event is issued.

     

    We are continuously working on improving the flexibility and operability of event placeholders. However, I don’t have an ETA or a visible schedule for these enhancements yet.

    Thanks for your understanding.

    0

Please sign in to leave a comment.