public sealed class MetricStructuredName : IMessage<MetricStructuredName>, IEquatable<MetricStructuredName>, IDeepCloneable<MetricStructuredName>, IBufferMessage, IMessage
Reference documentation and code samples for the Dataflow v1beta3 API class MetricStructuredName.
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 provides documentation for the \u003ccode\u003eMetricStructuredName\u003c/code\u003e class within the Google Cloud Dataflow v1beta3 API, used to identify a metric by its source.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eMetricStructuredName\u003c/code\u003e is 2.0.0-beta07, and earlier versions 2.0.0-beta06 and 1.0.0-beta03 are also accessible.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMetricStructuredName\u003c/code\u003e inherits from the base \u003ccode\u003eobject\u003c/code\u003e class and implements interfaces such as \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 \u003ccode\u003eMetricStructuredName\u003c/code\u003e class contains properties like \u003ccode\u003eContext\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, and \u003ccode\u003eOrigin\u003c/code\u003e to define different aspects of the metric, including the location, worker-defined name, and the origin namespace.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes two constructors, one default constructor and another that takes an instance of \u003ccode\u003eMetricStructuredName\u003c/code\u003e as a parameter for copying.\u003c/p\u003e\n"]]],[],null,[]]