mirror of
https://github.com/bloomberg/goldpinger.git
synced 2026-04-21 01:16:50 +00:00
Updates from swagger change
Signed-off-by: Chris Green <34572557+cgreen12@users.noreply.github.com>
This commit is contained in:
@@ -115,7 +115,7 @@ func HeatmapHandler(w http.ResponseWriter, r *http.Request) {
|
||||
// draw all the boxes
|
||||
for sourceIP, results := range checkResults.Responses {
|
||||
if *results.OK {
|
||||
for destinationIP, response := range results.Response {
|
||||
for destinationIP, response := range results.Response.PodResults {
|
||||
x, y := getPingBoxCoordinates(order[sourceIP], order[destinationIP], boxSize, paddingSize)
|
||||
color := getPingBoxColor(response.ResponseTimeMs, tresholdLatencies)
|
||||
drawPingBox(canvas, boxSize+x, boxSize+y, boxSize, color)
|
||||
|
||||
@@ -31,7 +31,7 @@ func StartUpdater() {
|
||||
for {
|
||||
results := PingAllPods(GoldpingerConfig.PodSelecter.SelectPods())
|
||||
var troublemakers []string
|
||||
for podIP, value := range results {
|
||||
for podIP, value := range results.PodResults {
|
||||
if *value.OK != true {
|
||||
troublemakers = append(troublemakers, fmt.Sprintf("%s (%s)", podIP, value.HostIP.String()))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user