Getting KPI results based on KPI ID

This endpoint returns results associated to a KPI instance identified by a specific KPI ID.

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: