Skip to content

Configuration

When running PSImportClient it uses one or more configurations to import data to Easit GO. A configuration have 3 parts:

  • A configuration file
  • An Easit GO ImportClient (optional)
  • A Easit GO Importhandler

Configuration file

The configuration file is JSON file with 3 mandatory keys. The following keys MUST be used in a configuration file.

  • name
  • destinations
  • sources
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
    {
        "name":"myConfigurationName",
        "destinations" : [
            {},
            {}
        ],
        "sources": [
            {},
            {}
        ]
    }

An optional key that you can use for validation and intellisense is the $schema key. You can provide the relative path to a schema (..\\schemas\\configuration.schema.json) or a URL (https://github.com/easitab/PSImportClient/schemas/configuration.schema.json)

name

An arbitrary name used to identify the configuration in logs. With the configuration above the following line will be logged:

todaysDate timestamp - level - Start for configuration: myConfigurationName

destinations

Array of JSON objects that holds settings for where the data should be sent.

Destination settings

sources

Array of JSON objects that holds settings for where to collect data from.

Source settings

Easit GO ImportClient

The Easit GO ImportClient, that is configured in Easit GO, holds all details and settings for how to collect the data from a source. For example, the Easit GO ImportClient holds settings such as a connection string and query when collecting data from a source such as a CSV-file.

Read more

Easit GO Importhandler

The Easit GO Importhandler is responsible for mapping the data to the correct fields or functions in Easit GO. This part can be considered as the mapping contract between the source and Easit GO.

Read more

JSON Schema

configuration.schema.json