forked from hudl/fargo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Accommodate Eureka version 1.22's format for ports
In version 1.22, the Eureka server changed its JSON encoding for an instance's port numbers: instead of writing the port numbers as JSON string values, it started writing them as JSON number values. In order to accommodate Eureka servers of versions on either side of this change, accept instance port numbers as both strings and numbers, but continue to emit them as strings, which Eureka servers of all versions continue to accept.
- Loading branch information
Showing
4 changed files
with
168 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"applications":{ | ||
"versions__delta":"1", | ||
"apps__hashcode":"UP_24_", | ||
"application":[ | ||
{ | ||
"name":"TESTENG.METRICSD", | ||
"instance":{ | ||
"hostName":"192.168.40.94:7101", | ||
"app":"TESTENG.METRICSD", | ||
"ipAddr":"192.168.40.94", | ||
"status":"UP", | ||
"overriddenstatus":"UP", | ||
"port":{ | ||
"@enabled":"true", | ||
"$":7101 | ||
}, | ||
"securePort":{ | ||
"@enabled":"true", | ||
"$":7101 | ||
}, | ||
"countryId":1, | ||
"dataCenterInfo":{ | ||
"@class":"com.netflix.appinfo.InstanceInfo$DefaultDataCenterInfo", | ||
"name":"MyOwn" | ||
}, | ||
"leaseInfo":{ | ||
"renewalIntervalInSecs":30, | ||
"durationInSecs":90, | ||
"registrationTimestamp":1402450388650, | ||
"lastRenewalTimestamp":1402552694257, | ||
"evictionTimestamp":0, | ||
"serviceUpTimestamp":1402450388774 | ||
}, | ||
"metadata":{ | ||
"service-query-uri":"https://192.168.40.94:7101", | ||
"base-uri":"https://192.168.40.94:7101", | ||
"swagger-api-docs":"https://192.168.40.94:7101/api-docs" | ||
}, | ||
"vipAddress":"[]", | ||
"isCoordinatingDiscoveryServer":false, | ||
"lastUpdatedTimestamp":1402450388774, | ||
"lastDirtyTimestamp":1402450388774, | ||
"actionType":"MODIFIED" | ||
} | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters