- {
- "services":[
- {
- "id": "EDC_DNC_MSAD_CLIENT_SERVICE_01",
- "name" : "CAS.Client.Service",
- "tags": ["urlprefix-/ClientService01"],
- "address": "192.168.80.71",
- "port": 8810,
- "checks": [
- {
- "name": "clientservice_check",
- "http": "http://192.168.80.71:8810/api/health",
- "interval": "10s",
- "timeout": "5s"
- }
- ]
- },
- {
- "id": "EDC_DNC_MSAD_CLIENT_SERVICE_02",
- "name" : "CAS.Client.Service",
- "tags": [
- "urlprefix-/ClientService02"
- ],
- "address": "192.168.80.71",
- "port": 8820,
- "checks": [
- {
- "name": "clientservice_check",
- "http": "http://192.168.80.71:8820/api/health",
- "interval": "10s",
- "timeout": "5s"
- }
- ]
- },
- {
- "id": "EDC_DNC_MSAD_NOTICE_SERVICE",
- "name" : "CAS.Notice.Service",
- "tags": [
- "urlprefix-/NoticeService"
- ],
- "address": "192.168.80.71",
- "port": 9000,
- "checks": [
- {
- "name": "noticeservice_check",
- "http": "http://192.168.80.71:9000/api/health",
- "interval": "10s",
- "timeout": "5s"
- }
- ]
- }
- ]
- }
来源: https://www.cnblogs.com/edisonchou/p/9148034.html