(self, metrics)
return result['oids'], result['next_oids'], result['bulk_oids'], result['parsed_metrics']
Parse configuration and returns data to be used for SNMP queries.
Parse configuration and returns data to be used for SNMP queries.
Parse configuration and returns data to be used for SNMP queries .
def parse_metrics(self, metrics):
        # type: (list) -> Tuple[List[OID], List[OID], List[OID], List[ParsedMetric]]
        """Parse configuration and returns data to be used for SNMP queries."""
        # Use bulk for SNMP version > 1 only.
        bulk_threshold = self.bulk_threshold if self._auth_data.mpModel else 0
        result = parse_metrics(metrics, resolver=self._resolver, logger=self.logger(), bulk_threshold=bulk_threshold)
        return result['oids'], result['next_oids'], result['bulk_oids'], result['parsed_metrics']
def parse_metrics ( self , metrics ) : # type: (list) -> Tuple[List[OID], List[OID], List[OID], List[ParsedMetric]] # Use bulk for SNMP version > 1 only. bulk_threshold = self . bulk_threshold if self . _auth_data . mpModel else 0 result = parse_metrics ( metrics , resolver = self . _resolver , logger = self . logger ( ) , bulk_threshold = bulk_threshold ) return result [ 'oids' ] , result [ 'next_oids' ] , result [ 'bulk_oids' ] , result [ 'parsed_metrics' ]