@metrics(['Environment | Voltage'], volatile=False, access='S')
def get_voltage(self, metrics):
    for metric in metrics:
        value = self.snmp.get(f'1.3.6.1.4.1.41752.5.15.1.{metric.ifindex}.0')
        if (value is None):
            continue
        port = metric.labels[0].rsplit('::', 1)[(- 1)]
        self.set_metric(id=('Environment | Voltage', metric.labels), labels=['noc::module::battery', f'noc::sensor::{port}'], value=value, multi=True)
@metrics(['Environment | Voltage'], volatile=False, access='S')
def get_voltage(self, metrics):
    for metric in metrics:
        value = self.snmp.get(f'1.3.6.1.4.1.41752.5.15.1.{metric.ifindex}.0')
        if (value is None):
            continue
        port = metric.labels[0].rsplit('::', 1)[(- 1)]
        self.set_metric(id=('Environment | Voltage', metric.labels), labels=['noc::module::battery', f'noc::sensor::{port}'], value=value, multi=True)