Skip to content

Commit ee1ecab

Browse files
committed
fix: metrics data bug
1 parent bbda634 commit ee1ecab

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: src/client.js

+3
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,9 @@ class SlsMonitor {
543543
function run() {
544544
if (attributes.Response.Data.Data.length > 0) {
545545
const metricAttribute = attributes.Response.Data.Data.shift()
546+
if (!metricAttribute || !metricAttribute.AttributeId || !metricAttribute.AttributeName) {
547+
return run()
548+
}
546549
metricAttributeHash[metricAttribute.AttributeId] = metricAttribute
547550
if (!filterAttributeName(metricAttribute.AttributeName, metricsRule)) {
548551
return run()

0 commit comments

Comments
 (0)