-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from prefeitura-rio/staging/refatoracao-repo-2
[WIP] Refatoração Pipelines
- Loading branch information
Showing
43 changed files
with
7,825 additions
and
2,851 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# -*- coding: utf-8 -*- | ||
""" | ||
Valores constantes para pipelines br_rj_riodejaneiro_brt_gps | ||
""" | ||
|
||
from enum import Enum | ||
|
||
|
||
class constants(Enum): # pylint: disable=c0103 | ||
""" | ||
Valores constantes para pipelines br_rj_riodejaneiro_brt_gps | ||
""" | ||
|
||
GPS_BRT_RAW_DATASET_ID = "br_rj_riodejaneiro_brt_gps" | ||
GPS_BRT_RAW_TABLE_ID = "registros" | ||
GPS_BRT_DATASET_ID = "br_rj_riodejaneiro_veiculos" | ||
GPS_BRT_TREATED_TABLE_ID = "gps_brt" | ||
GPS_BRT_MATERIALIZE_DELAY_HOURS = 0 | ||
GPS_BRT_API_URL = "https://zn4.m2mcontrol.com.br/api/integracao/veiculos" | ||
GPS_BRT_API_SECRET_PATH = "brt_api_v2" | ||
|
||
GPS_BRT_MAPPING_KEYS = { | ||
"codigo": "id_veiculo", | ||
"linha": "servico", | ||
"latitude": "latitude", | ||
"longitude": "longitude", | ||
"dataHora": "timestamp_gps", | ||
"velocidade": "velocidade", | ||
"sentido": "sentido", | ||
"trajeto": "vista", | ||
# "inicio_viagem": "timestamp_inicio_viagem", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Oops, something went wrong.