From 31c2daedf7d9c48ac6313761843ff5db5cb75c51 Mon Sep 17 00:00:00 2001 From: Aram Akhavan Date: Sun, 3 Sep 2023 10:37:43 -0700 Subject: [PATCH] fix smart 188 thresholds --- .../pkg/thresholds/ata_attribute_metadata.go | 36 ++++++++++--------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/webapp/backend/pkg/thresholds/ata_attribute_metadata.go b/webapp/backend/pkg/thresholds/ata_attribute_metadata.go index 021db9b7..11eb5a6a 100644 --- a/webapp/backend/pkg/thresholds/ata_attribute_metadata.go +++ b/webapp/backend/pkg/thresholds/ata_attribute_metadata.go @@ -669,55 +669,57 @@ var AtaMetadata = map[int]AtaAttributeMetadata{ ObservedThresholds: []ObservedThreshold{ { Low: 0, - High: 0, + // This is set arbitrarily to avoid notifications caused by low + // historical numbers of command timeouts (e.g. caused by a bad cable) + High: 100, AnnualFailureRate: 0.024893587674442153, ErrorInterval: []float64{0.020857343769186413, 0.0294830350167543}, }, { - Low: 0, - High: 13, + Low: 100, + High: 13000000000, AnnualFailureRate: 0.10044174089362015, ErrorInterval: []float64{0.0812633664077498, 0.1227848196758574}, }, { - Low: 13, - High: 26, + Low: 13000000000, + High: 26000000000, AnnualFailureRate: 0.334030592234279, ErrorInterval: []float64{0.2523231196342665, 0.4337665082489293}, }, { - Low: 26, - High: 39, + Low: 26000000000, + High: 39000000000, AnnualFailureRate: 0.36724705400842445, ErrorInterval: []float64{0.30398009356575617, 0.4397986538328568}, }, { - Low: 39, - High: 52, + Low: 39000000000, + High: 52000000000, AnnualFailureRate: 0.29848155926978354, ErrorInterval: []float64{0.2509254838615984, 0.35242890006477073}, }, { - Low: 52, - High: 65, + Low: 52000000000, + High: 65000000000, AnnualFailureRate: 0.2203079701535098, ErrorInterval: []float64{0.18366082845676174, 0.26212468677179274}, }, { - Low: 65, - High: 78, + Low: 65000000000, + High: 78000000000, AnnualFailureRate: 0.3018169948863018, ErrorInterval: []float64{0.23779746376787655, 0.37776897542831006}, }, { - Low: 78, - High: 91, + Low: 78000000000, + High: 91000000000, AnnualFailureRate: 0.32854928239235887, ErrorInterval: []float64{0.2301118782147336, 0.4548506948185028}, }, { - Low: 91, - High: 104, + Low: 91000000000, + High: 104000000000, AnnualFailureRate: 0.28488916640649387, ErrorInterval: []float64{0.1366154288236293, 0.5239213202729072}, },