Updated on 2023-06-25 GMT+08:00

MicroServiceInstance

Table 1 Parameters

Parameter

Type

Mandatory

Description

instanceId

String

No

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

serviceId

String

No

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

version

String

No

Microservice version.

hostName

String

Yes

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

endpoints

Array of strings

Yes

Example: rest:127.0.0.1:8080.

status

String

Yes

Instance status. Options:

  • UP
  • DOWN
  • STARTING
  • OUTOFSERVICE

properties

Map<String, String>

No

Extended attribute. You can customize a key and value.

healthCheck

HealthCheck

No

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

String

No

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

modTimestamp

String

No

Update time.

dataCenterInfo

DataCenterInfo

No

Time zone.