Set Up Web Hook Action
Setting up Web Hook Post Requests can be done via the Web Interface of the SynLink PDU. Navigate to the section via the side header called "Automation". Once on this page, click the button "Create New Action". You can also get to the section with url /events/actions/new. Under Action Type click "HTTP Post Request".
You may include optional stats to send with the HTTP Request (such as Inlet Data, Circuit Data, Outlet Data, and more).
Link Action to Event
After creating an action, link the action to a particular event. Navigate to the "Automation" page once again and click on "Create New event", or go to url events/triggers/new. Under event type choose a given event (such as inlet current thresholds, or any number of triggers.). Under the "Add Action" section include the previously created action.
Once the given event is triggered, a Post Request will be sent accordingly. The data structure for the contents of the web hook can be found in the web hook section of this documentation.
Example Web Hook JSON
{
"eventCode": 15,
"eventName": "Example Inlet Max Current",
"enclosureSerialNumber": "1000016",
"valueExceedingThreshold": 12.09,
"inlets": [
{
"inletType": "single",
"inletPlug": "IEC-320 C20",
"inletPhase": "Single Phase",
"inletName": "Example New Inlet Name",
"id": "I1-1000016",
"inletLineConfiguration": "L-N",
"inletCurrentRms": 12.09,
"inletVoltageRms": 114.69999694824219,
"inletLineFrequency": 60.13800048828125,
"inletPowerFactor": 1,
"inletActivePower": 0,
"inletApparentPower": 0,
"inletEnergyAccumulation": 0
}
]
}