There appears to be overlap or unclear differentiation between two endpoints in the IO-Link Gateway API:
/iolink/v2/gateway/events
/iolink/v2/gateway/diagnosis
/iolink/v2/gateway/events
Description:
Each Gateway shall have an Event Log object containing the events of the devices, ports and the masters. The content of the Event Log can be read by getting the object "Gateway Event Log".
Additional Query Parameters:
-
top (integer, query parameter)
Parameter to select the oldest x events of the event buffer. top is mutually exclusive to bottom.
-
bottom (integer, query parameter)
Parameter to select the youngest x events of the event buffer. bottom is mutually exclusive to top.
/iolink/v2/gateway/diagnosis
Description:
Each event with a mode of "APPEARS" is considered as a pending event until the occurrence of a corresponding event with mode of "DISAPPEARS". Pending events must be provided regardless of the Event Log content.
My Question:
The Response Body in the examples looks similar between both endpoints.:
- What is the specific use case for each endpoint?
- When should developers use
/events vs. /diagnosis?
- Does
/diagnosis only return "pending" events (those with mode="APPEARS" that haven't been matched with mode="DISAPPEARS")?
- Does
/events return the full event log regardless of pending status?
There appears to be overlap or unclear differentiation between two endpoints in the IO-Link Gateway API:
/iolink/v2/gateway/events/iolink/v2/gateway/diagnosis/iolink/v2/gateway/eventsDescription:
Each Gateway shall have an Event Log object containing the events of the devices, ports and the masters. The content of the Event Log can be read by getting the object "Gateway Event Log".
Additional Query Parameters:
top(integer, query parameter)Parameter to select the oldest x events of the event buffer.
topis mutually exclusive tobottom.bottom(integer, query parameter)Parameter to select the youngest x events of the event buffer.
bottomis mutually exclusive totop./iolink/v2/gateway/diagnosisDescription:
Each event with a mode of "APPEARS" is considered as a pending event until the occurrence of a corresponding event with mode of "DISAPPEARS". Pending events must be provided regardless of the Event Log content.
My Question:
The Response Body in the examples looks similar between both endpoints.:
/eventsvs./diagnosis?/diagnosisonly return "pending" events (those with mode="APPEARS" that haven't been matched with mode="DISAPPEARS")?/eventsreturn the full event log regardless of pending status?