We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e00189a commit f4d68a0Copy full SHA for f4d68a0
Sources/SwiftMetricsBluemix/SwiftMetricsBluemix.swift
@@ -376,12 +376,8 @@ public class AutoScalar {
376
return
377
}
378
if (jsonData["metricsConfig"]["agent"] == nil) {
379
- if (jsonData["metricsConfig"]["poller"] == nil) {
380
- isAgentEnabled = false
381
- return
382
- } else {
383
- enabledMetrics=jsonData["metricsConfig"]["poller"].arrayValue.map({$0.stringValue})
384
- }
+ isAgentEnabled = false
+ return
385
} else {
386
isAgentEnabled = true
387
enabledMetrics=jsonData["metricsConfig"]["agent"].arrayValue.map({$0.stringValue})
0 commit comments