Interface MetricStructuredNameOrBuilder (0.59.0)

public interface MetricStructuredNameOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsContext(String key)

public abstract boolean containsContext(String key)

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>.

map<string, string> context = 3;

Parameter
Name Description
key String
Returns
Type Description
boolean

getContext() (deprecated)

public abstract Map<String,String> getContext()

Use #getContextMap() instead.

Returns
Type Description
Map<String,String>

getContextCount()

public abstract int getContextCount()

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>.

map<string, string> context = 3;

Returns
Type Description
int

getContextMap()

public abstract Map<String,String> getContextMap()

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>.

map<string, string> context = 3;

Returns
Type Description
Map<String,String>

getContextOrDefault(String key, String defaultValue)

public abstract String getContextOrDefault(String key, String defaultValue)

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>.

map<string, string> context = 3;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getContextOrThrow(String key)

public abstract String getContextOrThrow(String key)

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>.

map<string, string> context = 3;

Parameter
Name Description
key String
Returns
Type Description
String

getName()

public abstract String getName()

Worker-defined metric name.

string name = 2;

Returns
Type Description
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

Worker-defined metric name.

string name = 2;

Returns
Type Description
ByteString

The bytes for name.

getOrigin()

public abstract String getOrigin()

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

string origin = 1;

Returns
Type Description
String

The origin.

getOriginBytes()

public abstract ByteString getOriginBytes()

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

string origin = 1;

Returns
Type Description
ByteString

The bytes for origin.