public sealed class MetricStructuredName : IMessage<MetricStructuredName>, IEquatable<MetricStructuredName>, IDeepCloneable<MetricStructuredName>, IBufferMessage, IMessage
Identifies a metric, by describing the source which generated the
metric.
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'] = <step-name>. Counters associated with PCollections
in the SDK will have context['pcollection'] = <pcollection-name>.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis page documents the \u003ccode\u003eMetricStructuredName\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.Dataflow.V1Beta3\u003c/code\u003e namespace, part of the Google.Cloud.Dataflow.V1Beta3.dll assembly.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMetricStructuredName\u003c/code\u003e class is used to identify a metric by describing its source and is a sealed class that inherits from \u003ccode\u003eObject\u003c/code\u003e and implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides two constructors, a default one and one that accepts another \u003ccode\u003eMetricStructuredName\u003c/code\u003e instance as a parameter.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eMetricStructuredName\u003c/code\u003e class include \u003ccode\u003eContext\u003c/code\u003e (a \u003ccode\u003eMapField\u003c/code\u003e for labeled fields), \u003ccode\u003eName\u003c/code\u003e (the worker-defined metric name), and \u003ccode\u003eOrigin\u003c/code\u003e (the namespace of the metric name).\u003c/p\u003e\n"],["\u003cp\u003eThe page lists the latest version of this class, as well as two previous versions, allowing users to access them.\u003c/p\u003e\n"]]],[],null,[]]