Africa Minigrids Program
Nigeria Banner

Documentation: yearly_reports

This tables aggregates the data from the reports table into yearly summaries. It allows for simplification of queries on Grafana.
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

year *

The year for which the aggregate data is calculated.

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

  • * requis
integer

2023

category *

Category of the metric, indicating whether it pertains to connections or non-connections data.

  • * requis
enum: connections, non-connections

connections

country *

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

  • * requis
string

RW

breakdown *

JSON object providing the breakdown of the metric. Includes details such as connection type, end-user type, etc.

  • * requis
jsonb

{"type": "Grid", "end_user_type": "residential", "primary_responsible_person_gender": "M"}

unit_of_measurement *

Unit of measurement for the metrics reported, such as kWh, number of connections, people etc.

  • * requis
string

number

value *

The aggregate value of the metric being reported, such as the total number of connections, total energy consumed, or any other relevant metric aggregated for the year.

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

  • * requis
float

1000.0

program *

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

  • * requis
string

ASCENT

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

reporting_phase

The specific project for which the aggregate is calculated for. It helps us identify the ASCENT phase or project that the aggregate reported data belongs to.

string

P0001

external_id

external identifier for each yearly aggregate entry. Derived by concatenating and hashing the following fields: [year, category, country, breakdown, reporting_phase,program, unit_of_measurement]

  • Généré automatiquement
string

c782c9d4731f26d3d040d6a4a24ebd66

uid

unique identifier for each yearly aggregate entry. Derived by concatenating the following fields: [organization_id and external_id].

  • Généré automatiquement
string

123_12_c782c9d4731f26d3d040d6a4a24ebd66