Interface MetricStructuredNameOrBuilder (0.8.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
NameDescription
keyString
Returns
TypeDescription
boolean

getContext()

public abstract Map<String,String> getContext()

Use #getContextMap() instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
String

getName()

public abstract String getName()

Worker-defined metric name.

string name = 2;

Returns
TypeDescription
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

Worker-defined metric name.

string name = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for origin.