Documentation ¶
Index ¶
Constants ¶
View Source
const AttributeWhenFailedFailingNow = "FAILING_NOW"
View Source
const AttributeWhenFailedInThePast = "IN_THE_PAST"
View Source
const DeviceProtocolAta = "ATA"
View Source
const DeviceProtocolNvme = "NVMe"
View Source
const DeviceProtocolScsi = "SCSI"
Variables ¶
This section is empty.
Functions ¶
func AttributeStatusHas ¶ added in v0.4.9
func AttributeStatusHas(b, flag AttributeStatus) bool
func DeviceStatusHas ¶ added in v0.4.9
func DeviceStatusHas(b, flag DeviceStatus) bool
Types ¶
type AttributeStatus ¶ added in v0.4.9
type AttributeStatus uint8
AttributeStatus bitwise flag, 1,2,4,8,16,32,etc
const ( AttributeStatusPassed AttributeStatus = 0 AttributeStatusFailedSmart AttributeStatus = 1 AttributeStatusWarningScrutiny AttributeStatus = 2 AttributeStatusFailedScrutiny AttributeStatus = 4 )
func AttributeStatusClear ¶ added in v0.4.9
func AttributeStatusClear(b, flag AttributeStatus) AttributeStatus
func AttributeStatusSet ¶ added in v0.4.9
func AttributeStatusSet(b, flag AttributeStatus) AttributeStatus
func AttributeStatusToggle ¶ added in v0.4.9
func AttributeStatusToggle(b, flag AttributeStatus) AttributeStatus
type DeviceStatus ¶
type DeviceStatus uint8
DeviceStatus bitwise flag, 1,2,4,8,16,32,etc
const ( DeviceStatusPassed DeviceStatus = 0 DeviceStatusFailedSmart DeviceStatus = 1 DeviceStatusFailedScrutiny DeviceStatus = 2 )
func DeviceStatusClear ¶ added in v0.4.9
func DeviceStatusClear(b, flag DeviceStatus) DeviceStatus
func DeviceStatusSet ¶ added in v0.4.9
func DeviceStatusSet(b, flag DeviceStatus) DeviceStatus
func DeviceStatusToggle ¶ added in v0.4.9
func DeviceStatusToggle(b, flag DeviceStatus) DeviceStatus
type MetricsNotifyLevel ¶ added in v0.5.0
type MetricsNotifyLevel int64
Metrics Specific Filtering & Threshold Constants
const ( MetricsNotifyLevelWarn MetricsNotifyLevel = 1 MetricsNotifyLevelFail MetricsNotifyLevel = 2 )
type MetricsStatusFilterAttributes ¶ added in v0.5.0
type MetricsStatusFilterAttributes int64
const ( MetricsStatusFilterAttributesAll MetricsStatusFilterAttributes = 0 MetricsStatusFilterAttributesCritical MetricsStatusFilterAttributes = 1 )
type MetricsStatusThreshold ¶ added in v0.5.0
type MetricsStatusThreshold int64
MetricsStatusThreshold bitwise flag, 1,2,4,8,16,32,etc
const ( MetricsStatusThresholdSmart MetricsStatusThreshold = 1 MetricsStatusThresholdScrutiny MetricsStatusThreshold = 2 //shortcut MetricsStatusThresholdBoth MetricsStatusThreshold = 3 )
Click to show internal directories.
Click to hide internal directories.