# Hermes config

il faut aller dans parametres -> hermes_config

apres edition, il faut cliquer sur "mettre a jour", puis lancer sur tout les serveurs de prod la commande

    sudo /opt/scripts/bin/restart_paw

## Modele du json
```json
  {
  "change_minus_two_date": "2021/12/29",
  "change_minus_two_year": 2020,
  "environment": "PROD",
  "frontend_url": "https://al-in-preprod.be-idys.com",
  "new_reserved_offer_alt_img_url": "https://als-hermes-demo-api.be-idys.com/sassets/2317a000176196e1e36ebc2e8d650323/6194e2ac6a796a4cd9675f3e/logement_entreprise_reserve 1.png",
  "hermes_log_level": "error",
  "eligible_request_estimate_step": 50,
  "eligible_request_estimate_min": 1000 ,
  "google_street_view": {
    "key": "XXXXXXXXXXXXXXXXXXXXXXXX",
    "signature": "XXXXXXXXXXXXXXXXXXXXXXXX",
    "cache_url": "https://maps.googleapis.com",
    },
  "ged": {
    "url": "https://ged-test.dev.hermes.openstack.local",
    "X-Auth-User-Token": "o****************s"
  },
  "kyc": {
    "url": "https://api.preventgo.io/v2",
    "login": "m********************m",
    "password": "3*******************i"
  },
  "housing_offer_notifications": false,
  "DEBUG_ERRORS": false,
  "EFFORT_RATES": {
    "T1": 0.333,
    "T2": 0.333,
    "T3": 0.4,
    "T4": 0.4,
    "T5": 0.4,
    "T6": 0.4
  },
  "identity_provider_key": "als_hermes_salarie",
  "effort_rate_without_apl": true,
  "skip_hr_update_on_bordering_town_import": false,
  "DEP_PROVIDERS": {
    "IMHOWEB": [
      "49",
      ...
      "90"
    ],
    "SNE": [
      "01",
      ...
      "50"
    ]
  }
  "threshold_subtype_mapping":{
    "Z1": "Paris et communes limitrophes",
    "Z2": "IDF hors Paris et Communes limitrophes",
    "Z3": "Autres régions",
    "Z4": "Autres régions 170%",
    "Z5": "Autres régions 150%",
    "Z6": "Paris",
    "Z7": "Zone centrale IDF",
    "Z8": "Reste IDF",
    "ZA": "Zone A",
    "ZB": "Zone B",
    "ZC": "Zone C",
    "ZAB": "Zone A Bis",
    "ZB1": "Zone B1",
    "ZB2": "Zone B2",
    "I01": "PLI03/01 Paris & Commun",
    "I02": "PLI03/01 IDF H Paris&com",
    "I03": "PLI03/01 Autres régions",
    "I04": "PLI 8/2004 Zone A",
    "I05": "PLI 8/2004 Zone B",
    "I06": "PLI 8/2004 Zone C",
    "I07": "PLI 2015 Zone Abis",
    "I08": "PLI 2015 Zone A",
    "I09": "PLI 2015 Zone B1",
    "I10": "PLI 2015 Zone B2",
    "I11": "PLI 2015 Zone C"
  }
}
```


## Gestion des logs hermes

La liste des jobs générés est modifiable via la valeur hermes_log_level dans les configuration hermes. 

Les différents niveau sont :
  * no_log 
  * error
  * warning 
  * info 
  * debug 
  * verbose
  
Le niveau par défaut est info. Lors qu'un niveau est sélectionné tous les niveaux inférieurs sont créés. Ex: avec info => info, warning et error sont générés.