# Class MetricStructuredName (0.14.0)

0.14.0 (latest) 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.17 0.7.0 0.6.2 0.5.5 0.4.1 0.3.1 0.2.0 0.1.5

    MetricStructuredName(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Identifies a metric, by describing the source which generated
the metric.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `origin` | `str` Origin (namespace) of metric name. May be blank for user-define metrics; will be "dataflow" for metrics defined by the Dataflow service or SDK. |
| `name` | `str` Worker-defined metric name. |
| `context` | `MutableMapping[str, str]` Zero or more labeled fields which identify the part of the job this metric is associated with, such as the name of a step or collection. For example, built-in counters associated with steps will have context\['step'\] = . Counters associated with PCollections in the SDK will have context\['pcollection'\] = . |

## Classes

### ContextEntry

    ContextEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `kwargs` | `dict` Keys and values corresponding to the fields of the message. |
| `mapping` | ``Union[dict, `.Message`]`` A dictionary or message to be used to determine the values for this message. |
| `ignore_unknown_fields` | `Optional(bool)` If True, do not raise errors for unknown fields. Only applied if `mapping` is a mapping type or there are keyword parameters. |