Africa Minigrids Program
Nigeria Banner

Documentation: targets

This tables saves targets data for Ascent reports submitted by PIUs. It allows for tracking and validation of targets set for various metrics.
Pour importer des données dans ce format, vous pouvez utiliser notre API. -> Documentation de l'API
Rate limit: 300 requests per minute. Once the limit is exceeded, any further requests will result in a 429 (Too Many Requests) response.
Vous pouvez également nous fournir des fichiers au format xlsx, csv ou json. -> Exemple CSV
Nom de la ligne Type Exemple

metric *

The specific metric for which the target is set.

  • * requis
string

People provided with new or improved electricity service

target_value *

The target value for the specified metric.

Only period (.) decimal delimiters are supported. Do not use commas (,) — they will cause an error.

  • * requis
float

100.0

unit_of_measurement *

Unit of measurement for the metric being tracked, such as kWh, number of connections, etc.

  • * requis
string

number

effective_date *

The date when the target was effective.

  • * requis
date

2023-01-01

country *

Two-letter country code as per ISO 3166-1 alpha-2 standard representing the country of the report.

  • * requis
string

RW

reporting_phase *

Unique identifier for the reporting phase, typically a sequential alpha-numeric code. It helps us identify the ASCENT phase or project that the reported data belongs to.

  • * requis
string

P001

program *

This helps us extend the use cases for this table by linking it to the program under which the report was submitted, helping to categorize the data and link it to specific programs.

  • * requis
string

ASCENT

program_end_date *

The end date of the program for which the target is set.

  • * requis
date

2030-12-31

last_source_id

Id of the last Source which updated the record

  • Généré automatiquement
integer

33

last_import_id

Id of the last import which updated the record

  • Généré automatiquement
integer

337

data_origin

Origin of the data, generic or name of the api

  • Généré automatiquement
string

generic

custom

Saves additional imported data out of standard structure

  • Généré automatiquement
jsonb

{ "some": "key" }

organization_id

References Organization of data

  • Généré automatiquement
integer

1

import_id

References Import of data

  • Généré automatiquement
integer

1

source_id

References Source of data

  • Généré automatiquement
integer

1

updated_at

Timestamp when row was updated

  • Généré automatiquement
datetime

2021-05-03 6:23:55

created_at

Timestamp when row was inserted

  • Généré automatiquement
datetime

2021-05-03 6:23:55

external_id

External identifier generated by concatenating and hashing multiple fields: [metric, effective_date, country, reporting_phase, program]. This ensures that identical records always produce the same UID, to enable upsert and deduplication operations.

  • Généré automatiquement
string

c782c9d4731f26d3d040d6a4a24ebd66

uid

Unique identifier of a single target entry generated by concatenating the following fields: [organization_id, source_id and external_id].

  • Généré automatiquement
string

123_12_c782c9d4731f26d3d040d6a4a24ebd66