Skip to content

Commit

Permalink
Add a interface for get the timestamp of the latest performance data …
Browse files Browse the repository at this point in the history
…of the device and add an unknown enum of the storage pool status. (#782)

Co-authored-by: Erik <[email protected]>
  • Loading branch information
littlehotcx and wisererik authored Dec 24, 2021
1 parent 34bdcf2 commit 26b9cec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion delfin/common/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ class StoragePoolStatus(object):
NORMAL = 'normal'
OFFLINE = 'offline'
ABNORMAL = 'abnormal'
UNKNOWN = 'unknown'

ALL = (NORMAL, OFFLINE, ABNORMAL)
ALL = (NORMAL, OFFLINE, ABNORMAL, UNKNOWN)


class VolumeStatus(object):
Expand Down
4 changes: 4 additions & 0 deletions delfin/drivers/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,3 +289,7 @@ def list_masking_views(self, context):

def get_alert_sources(self, context):
return []

def get_latest_perf_timestamp(self, context):
"""Get the timestamp of the latest performance data of the device"""
pass

0 comments on commit 26b9cec

Please sign in to comment.