Getting KPI results based on Provider ID

This endpoint returns results associated to a specific Provider ID.

In the table you can see the list of available providers:

Provider ID Provider Name

1

optima-put

2

short-term-forecast

3

optima-harmonizer

4

machine-learning-forecast-quality

5

optima-planning

6

optima-micro

7

machine-learning-forecast

You can select:

For example, you can consider three simulations in the period [fromTime,toTime]:

Simulation KPI calculated

Simulation_1

KPI_1, KPI_2, KPI_3

Simulation_2

KPI_2, KPI_3

Simulation_3

KPI_3, KPI_4

If lastSimulation=true, the API returns:

Configuration of the ISO 8601 date format

You can get a response including a timestamp:

The option is handled through a string parameter associated with the tag <configuration>/<api-date-format> of the file /opt/ptv-optima-as/standalone/configuration/optima/optima-configuration.xml.

Property

Type

Description

api-date-format

String

It determines the timestamp format:

  • iso: the timestamp is in the format ISO 8601
  • legacy: otherwise

Important:  If api-date-format is not present in the optima-configuration.xml file, the legacy timestamp is enabled.

Authentication phase

Before using the endpoint, you must run the authentication phase (→ Login).

After the authentication, a session opens and a valid session token persists until: