Configuration Importation/Exportation
Microservices settings regroup a set of settings that are specific by tenant and stored in the microservice database.
Import/Export API
To configure rs-fem
settings for a specific tenant, you need to follow the generic Import/Export service
configuration guide, it will help you understand the expected JSON
file payload that you can send to the
import configuration endpoint.
This configuration can also be imported or exported through the administrator UI.
Configurable parameters
Two main features can be managed through this configuration:
- Activate the notifications for feature requests
- Activate and configure dumps for products
Dynamic settings for rs-fem
microservice are :
Name | Type | Default value | Description |
---|---|---|---|
active_notifications | boolean | false | If true , notifications will be activated on feature requests. |
dump_parameters | DumpParameters | Dump configuration | |
last_dump_req_date | date | Unix epoch | Date of last dump request |
With DumpParameters containing the following parameters:
Name | Type | Default value | Description |
---|---|---|---|
isActiveModule | boolean | true | If true , dump will be activated |
cronTrigger | string | 0 0 0 1-7 * SUN" | Cron defining the dump frequency |
dumpLocation | string | "" | Location where to save the dump files |
Example
Content of file rs-fem-config.json
{
"microservice": "rs-fem",
"modules": [
{
"module": {
"id": "feature",
"name": "Feature management module",
"description": "GeoJSON catalog manager",
"version": "1.0.0",
"author": "REGARDS",
"legalOwner": "CNES",
"documentation": "https://github.com/RegardsOss"
},
"resetBeforeImport": true,
"configuration": [
{
"key": "fr.cnes.regards.framework.modules.tenant.settings.domain.DynamicTenantSetting",
"value": {
"name": "active_notifications",
"description": "Activate notifications on feature request",
"value": "true",
"defaultValue": "true",
"className": "java.lang.Boolean",
"containsSensitiveParameters": false
}
},
{
"key": "fr.cnes.regards.framework.modules.tenant.settings.domain.DynamicTenantSetting",
"value": {
"name": "last_dump_req_date",
"description": "Date of last dump request",
"value": "\"2024-08-04T00:00:00.036836Z\"",
"defaultValue": "\"1970-01-01T00:00:00Z\"",
"className": "java.time.OffsetDateTime",
"containsSensitiveParameters": false
}
},
{
"key": "fr.cnes.regards.framework.modules.tenant.settings.domain.DynamicTenantSetting",
"value": {
"name": "dump_parameters",
"description": "Dump parameters",
"value": "{\"isActiveModule\":true,\"cronTrigger\":\"0 0 0 1-7 * SUN\",\"dumpLocation\":\"\"}",
"defaultValue": "{\"isActiveModule\":true,\"cronTrigger\":\"0 0 0 1-7 * SUN\",\"dumpLocation\":\"\"}",
"className": "fr.cnes.regards.framework.modules.dump.domain.DumpParameters",
"containsSensitiveParameters": false
}
}
]
}
]
}