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,["# Dataflow v1beta3 API - Class MetricStructuredName (2.0.0-beta07)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.0-beta07 (latest)](/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/latest/Google.Cloud.Dataflow.V1Beta3.MetricStructuredName)\n- [2.0.0-beta06](/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/2.0.0-beta06/Google.Cloud.Dataflow.V1Beta3.MetricStructuredName)\n- [1.0.0-beta03](/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/1.0.0-beta03/Google.Cloud.Dataflow.V1Beta3.MetricStructuredName) \n\n public sealed class MetricStructuredName : IMessage\u003cMetricStructuredName\u003e, IEquatable\u003cMetricStructuredName\u003e, IDeepCloneable\u003cMetricStructuredName\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Dataflow v1beta3 API class MetricStructuredName.\n\nIdentifies a metric, by describing the source which generated the\nmetric. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e MetricStructuredName \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[MetricStructuredName](/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/latest/Google.Cloud.Dataflow.V1Beta3.MetricStructuredName), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[MetricStructuredName](/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/latest/Google.Cloud.Dataflow.V1Beta3.MetricStructuredName), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[MetricStructuredName](/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/latest/Google.Cloud.Dataflow.V1Beta3.MetricStructuredName), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Dataflow.V1Beta3](/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/latest/Google.Cloud.Dataflow.V1Beta3)\n\nAssembly\n--------\n\nGoogle.Cloud.Dataflow.V1Beta3.dll\n\nConstructors\n------------\n\n### MetricStructuredName()\n\n public MetricStructuredName()\n\n### MetricStructuredName(MetricStructuredName)\n\n public MetricStructuredName(MetricStructuredName other)\n\nProperties\n----------\n\n### Context\n\n public MapField\u003cstring, string\u003e Context { get; }\n\nZero or more labeled fields which identify the part of the job this\nmetric is associated with, such as the name of a step or collection.\n\nFor example, built-in counters associated with steps will have\ncontext\\['step'\\] = \\\u003cstep-name\\\u003e. Counters associated with PCollections\nin the SDK will have context\\['pcollection'\\] = \\\u003cpcollection-name\\\u003e.\n\n### Name\n\n public string Name { get; set; }\n\nWorker-defined metric name.\n\n### Origin\n\n public string Origin { get; set; }\n\nOrigin (namespace) of metric name. May be blank for user-define metrics;\nwill be \"dataflow\" for metrics defined by the Dataflow service or SDK."]]