Skip to content

Service Management Apis

The documentation applies to:✅ v0.8.0

Default appsettings.json

ServiceManagementOptions

This options is used for configuring Background jobs:

  • Update Lost status: Lost status will be set if no response time is greater than DurationLost, a job will be triggered after IntervalLost seconds
  • Update Shutdown status: Shutdown status will be set if a service is Lost status and no response time is greater than DurationShutdown, a job will be triggered after IntervalShutdown seconds
  • Update Monitor Report: alll data have reported time is less than (Now - DurationMonitorReport seconds) will be calculated for report, a job will be triggered after IntervalMonitorReport seconds
{
 "ServiceManagementOptions": {
    "DurationLost": 120,
    "DurationShutdown": 120,
    "DurationMonitorReport": 60,
    "IntervalLost": 60,
    "IntervalShutdown": 60,
    "IntervalMonitorReport": 60
  }   
}

CentralizedLogOptions

We use this option for collecting service's logs. However, we only support MongoDB databse as centralized logs

{
    "CentralizedLogOptions": {
        "Database": {
            "ConnectionString": "mongodb://localhost:27017",
            "Datasource": "logs",
            "ConnectionType": "MongoDB"
        },
        "EntityLogName": "servicelogs"
    }
}