(metric)
return MetricParseResult(
        oids_to_fetch=[oid],
        oids_to_resolve={name: oid},
        parsed_metrics=[parsed_symbol_metric],
        index_mappings=[],
        table_batches={},
    )
Parse a fully resolved OID/name metric.

    Note: This `OID/name` syntax is deprecated in favour of `symbol` syntax.

    Example:

    ```
    metrics:
      - OID: 1.3.6.1.2.1.2.1
        name: ifNumber
    ```
Parse a fully resolved OID/name metric.
Parse a fully resolved OID / name metric .
def _parse_oid_metric(metric):
    # type: (OIDMetric) -> MetricParseResult
    """
    Parse a fully resolved OID/name metric.

    Note: This `OID/name` syntax is deprecated in favour of `symbol` syntax.

    Example:

    ```
    metrics:
      - OID: 1.3.6.1.2.1.2.1
        name: ifNumber
    ```
    """
    name = metric['name']
    oid = OID(metric['OID'])

    parsed_symbol_metric = ParsedSymbolMetric(
        name,
        tags=metric.get('metric_tags', []),
        forced_type=metric.get('forced_type'),
        enforce_scalar=False,
        options=metric.get('options', {}),
    )

    return MetricParseResult(
        oids_to_fetch=[oid],
        oids_to_resolve={name: oid},
        parsed_metrics=[parsed_symbol_metric],
        index_mappings=[],
        table_batches={},
    )
def _parse_oid_metric ( metric ) : # type: (OIDMetric) -> MetricParseResult name = metric [ 'name' ] oid = OID ( metric [ 'OID' ] ) parsed_symbol_metric = ParsedSymbolMetric ( name , tags = metric . get ( 'metric_tags' , [ ] ) , forced_type = metric . get ( 'forced_type' ) , enforce_scalar = False , options = metric . get ( 'options' , { } ) , ) return MetricParseResult ( oids_to_fetch = [ oid ] , oids_to_resolve = { name : oid } , parsed_metrics = [ parsed_symbol_metric ] , index_mappings = [ ] , table_batches = { } , )