Skip to content

Commit

Permalink
Brick status value mapping change
Browse files Browse the repository at this point in the history
tendrl-bug-id: Tendrl#365
  • Loading branch information
cloudbehl committed Apr 4, 2018
1 parent a004fbc commit 28df703
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@
}, {
"op": "=",
"text": "Started",
"value": "1"
"value": "0"
}, {
"op": "=",
"text": "Stopped",
"value": "10"
"value": "8"
}],
"valueName": "current"
}, {
Expand Down
4 changes: 2 additions & 2 deletions tendrl/monitoring_integration/graphite/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,15 +564,15 @@ def set_volume_count(self, cluster_data, resource_name):
return cluster_data

def resource_status_mapper(self, status):
status_map = {"started": 1,
status_map = {"started": 0,
"up": 0,
"(degraded)": 3,
"degraded": 3,
"(partial)": 4,
"partial": 4,
"unknown": 5,
"failed": 7,
"down": 8,
"down": 10,
"created": 9,
"stopped": 10,
"completed": 12,
Expand Down

0 comments on commit 28df703

Please sign in to comment.