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'] = .
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Class MetricStructuredName (0.9.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.9.0 (latest)](/python/docs/reference/dataflow/latest/google.cloud.dataflow_v1beta3.types.MetricStructuredName)\n- [0.8.17](/python/docs/reference/dataflow/0.8.17/google.cloud.dataflow_v1beta3.types.MetricStructuredName)\n- [0.7.0](/python/docs/reference/dataflow/0.7.0/google.cloud.dataflow_v1beta3.types.MetricStructuredName)\n- [0.6.2](/python/docs/reference/dataflow/0.6.2/google.cloud.dataflow_v1beta3.types.MetricStructuredName)\n- [0.5.5](/python/docs/reference/dataflow/0.5.5/google.cloud.dataflow_v1beta3.types.MetricStructuredName)\n- [0.4.1](/python/docs/reference/dataflow/0.4.1/google.cloud.dataflow_v1beta3.types.MetricStructuredName)\n- [0.3.1](/python/docs/reference/dataflow/0.3.1/google.cloud.dataflow_v1beta3.types.MetricStructuredName)\n- [0.2.0](/python/docs/reference/dataflow/0.2.0/google.cloud.dataflow_v1beta3.types.MetricStructuredName)\n- [0.1.5](/python/docs/reference/dataflow/0.1.5/google.cloud.dataflow_v1beta3.types.MetricStructuredName) \n\n MetricStructuredName(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nIdentifies a metric, by describing the source which generated\nthe metric.\n\nClasses\n-------\n\n### ContextEntry\n\n ContextEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nThe abstract base class for a message."]]