Skip to content

Commit 783a68c

Browse files
committed
Add args and returns to doc string for parse_ifattributes
1 parent 44601ca commit 783a68c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

etc/kayobe/ansible/scripts/smartmon.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,11 @@ def parse_if_attributes(device):
139139
For any device type (ATA, NVMe, SCSI, etc.), we read device.if_attributes.
140140
We'll iterate over its public fields, convert them to snake_case,
141141
and if it's in SMARTMON_ATTRS and numeric, we produce metrics.
142+
143+
Args:
144+
device (Device): A pySMART Device object with attributes such as name, interface, etc.
145+
Returns:
146+
List[str]: A list of Prometheus formatted metric strings.
142147
"""
143148
metrics = []
144149

0 commit comments

Comments
 (0)