Skip to content
Documentation
Updated 3 minutes to read
Markdown

EndPointDirection is a mandatory number in every Log Event. It tells whether the Endpoint that logged the event receives or sends, one-way or two-way. Nodinite stores the Endpoint Direction on the Endpoint in the Repository Model. In a Log View the Direction column shows it as an icon, and you find events by direction through the search form's Endpoints filter.

Search a Log View, open the Endpoints filter, Unselect All, filter the Endpoints on the Direction Send, tick the sending Endpoints, search again and open the Details of an event, where the Direction is the icon in front of the Endpoint name, animated walkthrough (7.12)
Animated walkthrough: in the Log View Contoso Orders: Endpoints, open Endpoints, click Unselect All, filter on the Direction Send, tick the sending Endpoints, and Search. In the event's Details the direction is the icon in front of the Endpoint name; there is no text.

Repository, Endpoints with the Direction filter open: Receive, Send, Two way Receive, Two way Send, None and Unknown, each with its icon and Id (7.12)
In the Repository Model, you can list Endpoints and filter them on Direction.

Value Direction Pattern Example
0 Receive One-way Receive a file from a folder
1 Send One-way Send a file to SFTP
10 Two way Receive Request-response, your solution answers An API that serves incoming requests
11 Two way Send Request-response, your solution calls A client calling a REST API; a call to a stored parameterized procedure
-1 Unknown Not known ⚠️ Avoid
-2 None No direction ⚠️ Avoid

To get the current list for your version, call GET /LogAPI/api/LogEvent/EndPointDirection on the Log API; see Explore operations in Scalar or Swagger.

Scalar showing the GET /LogAPI/api/LogEvent/EndPointDirection operation with a C# snippet, Test Request, and the 200 example answer listing Receive, Send, TwoWayReceive, TwoWaySend and None (7.12)
Scalar shows the EndPointDirection operation with a code snippet and an example answer with the enum names.

Nodinite Logging Agents set the Endpoint Direction for you. For custom logging, pick the value from the point of view of your integration solution:

  • Your solution picks up or receives a message and replies nothing: Receive (0).
  • Your solution delivers a message and expects no reply: Send (1).
  • Your solution exposes an API or service that others call and that returns a response: Two way Receive (10).
  • Your solution calls an API, a service, or a stored procedure and gets a response back: Two way Send (11).
  • Avoid Unknown (-1) and None (-2); they give your users nothing to filter on.
  • To search one direction in a Log View, click Unselect All in the Endpoints filter first (every Endpoint of the view starts selected), then filter on the Direction and tick the Endpoints you want.

Endpoint Direction describes the Endpoint. To say where in the process the event was logged (before or after the port, inside the workflow), set the optional Event Direction too. The Event Directions page shows both values together in a file transfer and an API example.

A one-way file receive (Endpoint Type 60, File):

{
"LogAgentValueId": 42,
"EndPointName": "INT101: Receive Hello World Log Events",
"EndPointUri": "C:\\temp\\in",
"EndPointDirection": 0,
"EndPointTypeId": 60,
"OriginalMessageTypeName": "Hello.World.File/1.0",
"LogDateTime": "2017-11-22T08:44:22.309Z"
}

A request sent by your solution to a REST API (two-way send, Endpoint Type 87, REST API):

{
"LogAgentValueId": 42,
"EndPointName": "INT102: Get Customer from CRM",
"EndPointUri": "https://crm.contoso.com/api/customers",
"EndPointDirection": 11,
"EndPointTypeId": 87,
"OriginalMessageTypeName": "https://contoso.com/CRM/1.0#GetCustomerRequest",
"LogDateTime": "2017-11-22T08:44:22.309Z",
"EventDirection": 22
}

...

Version:
Release date: N/A
Loading...

Explore Nodinite for 30 days – completely free

  • Find out why this is the leading O&M software
  • Prove your business case
  • Test the self-service for the business side

Loading...

See how Nodinite resolves your technical issues, in a LIVE Demo!

Once you submit this request:

  • We will give you a short call to understand the issues you want to tackle.
  • Understand solutions you have tried and why were you not happy with them.
  • Book a convenient slot for a LIVE demo!

Loading...