Skip to content
English
  • There are no suggestions because the search field is empty.

API Ingest Methods

In cases where data collection cannot be directed through the on site EkkoLink, then data can be imported directly into EkkoSoft Critical via one of 2 methods:

Type

Overview

Purpose

PUSH

Client sends the data to EkkoSoft

This method is where the client provides data directly to EkkoSoft by sending the data into the cloud to a dedicated endpoint. This will typically be via a POST request.

EkkoSense provide a standard format for supplying data into the EkkoSoft.

Alternatively, a client may provide data using their own format (provided it is JSON). Note that this will require bespoke development work from Ekkosense prior to implementation

PULL

EkkoSoft retrieve the data from client

This method requires the client to have, or develop, an API service which EkkoSoft can poll from to collect the data. This will typically be via a GET request.

EkkoSoft have already integrated with a number of public API services from co-lo facilities.

PUSH method

Below is an overview of components that make up the EkkoSoft API ingest mechanism:

image-20240503-104032.png

Requirements and Set Up

There are 4 key requirements for configuring the EkkoSoft Critical API. You will need:

  • The API ingest URL

  • An active API ingest key

  • The site Uuid for the site you wish to ingest data to

  • Configure the API driver within EkkoSoft

URL

The URLs listed below are required in order to export data via the API. Please ensure that you check the region that applies to the instance of EkkoSoft Critical that you are using:

Region

URL

Status

EMEA

https://ingest-api.emea.critical.ekkosoft.co.uk/import/[siteUUid]

ACTIVE

US

https://ingest-api.us.critical.ekkosoft.co.uk/import/[siteUUid]

INACTIVE

UK

https://ingest-api.uk.critical.ekkosoft.co.uk/import/[siteUUid]

INACTIVE

Authentication via API key

Each request must be authenticated via an API key. API keys are generated at organization level:

Note: API keys can only be generated by Organization Administrators.

An active API Ingest key will enable data to be accessed for all sites within that organization.

To generate a API token as an Organization Administrator, you will need to enter the Admin area of EkkoSoft and click on API Ingest Token in the left hand menu.

image-20240503-110404.png

This will then show a list of all existing API Ingest tokens available for the organization. To create a new key, click Create API Key and enter the description of how the key is to be used.

image-20260223-135841.png

image 20221221 144811

Upon creation, the page will display your API key, which you must copy. This key will never be shown again. After clicking DONE your key is now active.

image 20221221 144945

Please note: It is recommended that you revoke any API keys on a regular basis (e.g every 6 months)

Site Uuid

Each site, room and item within EkkoSoft Critical has a Uuid (Universally unique identifier).

Site Uuids can be found in the Admin area by visiting the Sites page and finding the relevant site(s) within the sites table.

Configure the API driver in EkkoSoft

The API driver to be used will need to be configured within EkkoSoft prior to the posting of any data. This binds data ingestion to a specific site and determines which method of data ingestion is going to be used.

Note: You will need to contact Ekkosense support to get this activated once your data import format has been approved.

Data Import Format

There are 2 key endpoints for sending data into EkkoSoft, 1 which provides configuration details (importReadingsWithMetadata) and a smaller, optional format, (importReadings) that just provides readings data against a unique sensor identifier (this is purely to minimise the size of the data transfer for particularly large requests)

Endpoint

Data supported

Service

Authentication

Protocols

importReadingsWithMetadata

Readings + configuration

API Push receiver

API push key

JSON-RPC (POST)

importReadings

Readings (+ configuration removal only)

API Push Receiver

API push key

JSON-RPC (POST)

importReadingsWithMetadata

Please note: Key Considerations:

  1. This is a larger data format, so it’s important that you consider compressing your request using DEFLATE or gzip if using this scheme. Documents over 10MB will not be supported, to limit the possible resources consumed.

  2. Sensor names must be unique

  3. Sensor names must not change

  4. Any sensors which are not mentioned in a request will be removed. If a sensor just has no readings, it must be included at least once in the request without the “value” property.

  5. A ‘global’ timestamp must be provided with each request, prior to the array which will include the sensor information. If any sensor does not have an accompanying timestamp, then the ‘global’ timestamp will be used for that sensor value.

This method provides both the readings data and some accompanying metadata to provide the context for the readings with each request that is sent. It is typically used for configuration purposes to enable EkkoSoft to translate the data prior to mapping within EkkoSoft :Mapping sensors to items

The params must be in the format below:

interface ReadingWithMetadata {
    timestamp: string,
    sensor: string,
    label: string,
    units: enum,
    value: number
}
interface ReadingImportWithMetadata {
    readings: {[period: string]: ReadingWithMetadata[]}
}

period here should be the start of the data import batch timeframe, eg. some multiple of 5 minutes. For documentation purposes, this is an ISO8601 date-time.

timestamp will be an ISO8601 date-time. If this is not supplied, the period timestamp will be used with a presumption that all such readings to belong in the block.

sensor is an arbitrarily chosen unique identifier for the sensor, as noted in the example below. If multiple readings for the same sensor appear in a period-readings block, they may be aggregated or the extra readings may be ignored.

Readings will be stored with the timestamp of the start of the reading interval (5-minute block), eg if a reading has a timestamp of 10:11:12, it will be stored as 10:10:00.

Readings will be dropped if the value is invalid, as will associated configuration details for that sensor.

Example

{
  "jsonrpc": "2.0",
  "method": "importReadingsWithMetadata",
  "params": {
    "readings": {
      "2001-12-31T12:30:00Z": [
        {
          timestamp: "2001-12-31T12:34:56Z",
          sensor: "r5-top-temp-0",
          label: "Temperature (rack r5 top)",
          units: "C",
          value: 35.8
        },
        {
          timestamp: "2001-12-31T12:32:12Z",
          sensor: "r5-pdu-power",
          label: "PDU power (Rack r5)",
          units: "kW",
          value: 128.5
        },
        {
          sensor: "r5-pdu-current",
          label: "PDU current (Rack r5)",
          units: "A",
          value: 534
        }
      ]
    }
  }
}

importReadings

This is an optional method to limit the size of the request as it only provides only the readings data. It should only be used following completion of sensor configuration using https://ekkosense.atlassian.net/wiki/spaces/ESG/pages/3570860033/API+Ingest+Methods#importReadingsWithMetadata

The params must be in the format below:

interface Reading {
    timestamp?: string,
    sensor: string,
    value: number,
}
interface ReadingImportParams {
    readings: {[period: string]: Reading[]}
}

Example

{
  "jsonrpc": "2.0",
  "method": "importReadings",
  "params": {
    "readings": {
      "2001-12-31T12:30:00Z": [
        {
          timestamp: "2001-12-31T12:34:56Z",
          sensor: "r5-top-temp-0",
          value: 35.8
        },
        {
          timestamp: "2001-12-31T12:32:12Z",
          sensor: "r5-pdu-power",
          value: 128.5
        },
        {
          sensor: "r5-pdu-current",
          value: 534
        }
      ]
    }
  }
}

importSimpleReadings

This is a further simplification which removes the timestamp requirement. Any data pushed to EkkoSoft will timestamped at the time that the data is received. This method is not recommended unless timestamp information can not be made available.

Example

{
  "jsonrpc": "2.0",
  "method": "importSimplehttps://ekkosense.atlassian.net/wiki/spaces/ESG/pages/edit-v2/3570860033#importReadingsWithMetadataReadings",
  "params": {
    "readings": {
      "2001-12-31T12:30:00Z": [
        {
          timestamp: "2001-12-31T12:34:56Z",
          sensor: "r5-top-temp-0",
          value: 35.8
        },
        {
          timestamp: "2001-12-31T12:32:12Z",
          sensor: "r5-pdu-power",
          value: 128.5
        },
        {
          sensor: "r5-pdu-current",
          value: 534
        }
      ]
    }
  }
}

Supported (SI) Units

The following table lists the supported unit types within the EkkoSoft Push API ingest service. Any units presented in a request that do not match this list will be ignored.

Value

Notes

Implementation notes

Default EkkoSoft Mapping

"C"

Celsius

Stored as is

Temperature

"F"

Fahrenheit

Will need to be converted to Celcius for storage ([value]-32)/1.8

Temperature

"%RH"

% RH

Specifically for relative humidity

RH

"W"

Watts

Will need to be converted to kW for storage 1000 x [value]

Power

"Wh"

Watt-hours

Will need to be converted to kWh for storage 1000 x [value]

Energy

"kW"

kiloWatts

Stored as is

Power

"kWh"

kiloWatt hours

Stored as is

Energy

"V"

Volts

Stored as is

Voltage

"A"

Amps

Stored as is

Amps

"PF"

Power Factor

Stored as is (readings should be between 0.000 and 1.000)

Power Factor

"%"

Percentage (e.g. for fan speed)

Stored as is

Fan Speed

"Binary"

For alarms and status

Stored as 0 or 1 (as is)

Status

"Status"

For status

Stored as 0 or 1 (as is)

Status

"Alarm"

For alarms and status

Stored as 0 or 1 (as is)

Major Alarm

PULL method

Below is an overview of components that make up the EkkoSoft API ingest mechanism for polling data from an existing client API service:

image-20240503-103929.png

For more details on using an existing API service, please contact Ekkosense support.

Customers interested on providing data via their own API service should contact the EkkoSense support team. The following information will then be required:

  1. Confirmation of the type of data that is to be provided via an API

  2. Confirmation of how EkkoSense would access the API

    1. Is it a public or private API? (i.e. available to many organizations or a dedicated one for Ekkosense)

    2. How would authentication work for EkkoSense? Is a subscription required?

    3. Is there any supporting documentation or examples

  3. Confirmation of the schema of the API

    1. It is important to be able to test the format of the API as Ekkosense will require to complete development works to integrate with the EkkoSoft platform. This is to allow for additional items to be added and managed directly within EkkoSoft at a later date

    2. This can be provisioned as a JSON file, showing the response format, or access to a development platform (if a public API)


Quick Navigation

Go back to Administration Area

Return to Contents