# Dataflow V1beta3 API - Class Google::Cloud::Dataflow::V1beta3::MetricStructuredName (v0.17.0)

0.17.0 (latest) 0.16.0 0.15.0 0.14.1 0.13.1 0.12.1 0.11.0 0.10.0 0.9.1 0.8.2 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.4 Reference documentation and code samples for the Dataflow V1beta3 API class Google::Cloud::Dataflow::V1beta3::MetricStructuredName.

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

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #context

    def context() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- 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'\] =

### #context=

    def context=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- 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'\] =
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- 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'\] =

### #name

    def name() -> ::String

**Returns**

- (::String) --- Worker-defined metric name.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Worker-defined metric name.
**Returns**

- (::String) --- Worker-defined metric name.

### #origin

    def origin() -> ::String

**Returns**

- (::String) --- Origin (namespace) of metric name. May be blank for user-define metrics; will be "dataflow" for metrics defined by the Dataflow service or SDK.

### #origin=

    def origin=(value) -> ::String

**Parameter**

- **value** (::String) --- Origin (namespace) of metric name. May be blank for user-define metrics; will be "dataflow" for metrics defined by the Dataflow service or SDK.
**Returns**

- (::String) --- Origin (namespace) of metric name. May be blank for user-define metrics; will be "dataflow" for metrics defined by the Dataflow service or SDK.