Updated on 2023-07-19 GMT+08:00

MicroServiceInstance

Table 1 Parameters

Parameter

Mandatory

Type

Description

instanceId

No

String

Instance ID, which must be unique. The instance ID is generated by the service center.

serviceId

No

String

Microservice ID, which must be unique. The microservice ID in the URL will be used.

version

No

String

Microservice version.

hostName

Yes

String

PC name, which can be a domain name or IP address.

endpoints

No

Array of strings

Example: rest:127.0.0.1:8080.

status

Yes

String

Instance status.

  • UP
  • DOWN
  • STARTING
  • OUTOFSERVICE

properties

No

Map<String, String>

Extended attribute. You can customize a key and value.

healthCheck

No

HealthCheck

Health check mode. Value: push or pull. interval indicates the pull interval (unit: s), and times indicates the maximum request attempts. When in the pull mode, you need to define port to ensure that the registration center actively connects to the port. The default value of healthCheck is push, that of interval is 30, and that of times is 3.

timestamp

No

String

Time when an instance is created, which is automatically generated.

modTimestamp

No

String

Update time.

dataCenterInfo

No

DataCenterInfo

Time zone.