# bindingInterfaceName

Canonical: https://docs.shumoku.dev/en/library/api/bindingInterfaceName
Language: en

@shumoku/core · 0.4.0 · function

# bindingInterfaceName

[Source](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/observation/metrics-binding.ts#L43)

The best name to hand the plugin for an interface binding. Identity (\`ifName\`) is the durable key; \`interfaceName\` is the migration / label fallback. The poll-time resolution layer may refine this against the source's live interface list, but a name is always derivable here.

```
bindingInterfaceName(b: MetricsBindingAttachment): string | undefined
```

## Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `b` | `MetricsBindingAttachment` | No additional description. | `—` |

## Returns

```
string | undefined
```

[`libs/@shumoku/core/src/observation/metrics-binding.ts:43`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/observation/metrics-binding.ts#L43)
