Endpoints

You can integrate any external system with LDAS through the Endpoint.

Integration Mode refers to the method or protocol used to connect an external instrument or system to LDAS for data exchange.

There are two Integration modes through which we can integrate

  1. Rest API - It is used to connect to external system by giving the API connection details.
  2. Database Query - It is used to connect to external system by giving the query and details of the database.

Remote Agent Server and Agent Monitoring can be created as endpoint to access instruments remotely and monitor them upon failures.

The users can change the Endpoint status to Active or Inactive as per need.

You can access endpoint page from dashboard by using Settings option and clicking the Endpoint icon.

Settings

Creation of Endpoint for External system push

Field NameDescriptionMandatory Fields
NameProvide a name for the endpointYes
DescriptionProvide a description for the endpointNo
TypeSelect ‘External System Push’ as endpoint typeYes
Request URLProvide the URL of the external API to which you are either pushing results from LDAS or retrieving results to LDAS. Select the appropriate method, such as GET or POSTYes

Example of create endpoint using External System Push

Creation of Endpoint - Rest API

Field Name Description Mandatory Fields
Name Provide a name for the endpoint Yes
Description Provide a description for the endpoint No
Type Select ‘Integration’ as endpoint type. Yes
Integration Mode Select REST API from the integration mode dropdown. Once chosen, this option cannot be edited Yes
Parameterized Select Yes/No from parameterized. By default, it is set as No Yes
Select Method Select the appropriate method, such as GET or POST Yes
Request URL Provide the URL of the external API to which you are either pushing results from LDAS or retrieving results to LDAS. Yes
Header Provide the key and value to the endpoint’s header.
Key Provide the name that identifies a piece of data Yes
Value Provide the information that the key is referring to Yes
Add Row If you want to add more key-value pairs, you can use the "Add Rows" option to create additional pairs. No
Body You can add the JSON body required for the API. Yes, if ‘Post’ request URL is selected
Authentication Provide the appropriate authorization required for the API, such as Auth, Basic Auth, or OAuth. By default, selected as No Auth
Auth You do not require any form of authentication for access.
Basic Auth You need to provide the username and password.
OAuth You need to provide the following:
  • Grant type – Password credentials/Client credentials
  • Access token URL
  • Client ID
  • Client secret
  • Client Authentication – Send as Basic Auth Header/Send client credentials in header.

Endpoint Page for REST API

Creation of Endpoint – Database Query

Field NameDescriptionMandatory Fields
NameProvide a name for the endpointYes
DescriptionProvide a description for the endpointNo
TypeSelect ‘Integration’ as endpoint type.Yes
Integration ModeSelect Database Query from the integration mode dropdown. Once chosen, this option cannot be editedYes
Database TypeSelect Postgres or Mongo as database. Once chosen, this option cannot be editedYes
ParameterizedSelect Yes/No from parametrized. By default, it is set it as NoYes
Database URLProvide the URL of the database to which you can retrieve results to LDAS.Yes
Database NameProvide the name of the databaseYes
Username & PasswordProvide the username and password of the database connectionYes
Collection NameProvide the Collection Name for Mongo DatabaseYes, if Mongo Database is selected
Database QueryProvide the database queryYes

Creation of Endpoint – Database Query

Endpoint Page for Database Query

Creation of Endpoint – Remote Agent Server

Field NameDescriptionMandatory Fields
NameProvide a name for the endpointYes
DescriptionProvide a description for the endpointNo
TypeSelect ‘Remote Agent Server’ as endpoint type.Yes
Agent Server URLProvide the URL of the agent server to which you can retrieve results to LDAS.Yes
File DirectoryProvide the file path from where remote NiFi need to pick file. This is applicable while creating agent server for RS232 instrumentsNo

Creation of Endpoint – Remote Agent Server

Example of create endpoint using Remote Server Agent

Creation of Endpoint – Agent Monitoring

Field NameDescriptionMandatory Fields
NameProvide a name for the endpointYes
DescriptionProvide a description for the endpointNo
TypeSelect ‘Agent Monitoring’ as endpoint type.Yes
Agent URLProvide the URL of the agent for which you need to be notified upon failuresYes
AuthenticationProvide the appropriate authorization required for the API, such as No Auth and Basic Auth.By default, selected as No Auth
No AuthYou do not require any form of authentication for access.
Basic AuthYou need to provide the username and password.
Monitoring FromChoose a location from where the agent needs to be monitored either from Local or Remote.By default, selected as Local
Remote Agent ServerSelect the Remote Agent Server which needs to be monitored, if agent needs to be monitored from RemoteYes

Creation of Endpoint – Agent Monitoring

Example of create endpoint using Agent Monitoring