Java Code Examples for com.google.monitoring.v3.TypedValue#newBuilder()
The following examples show how to use
com.google.monitoring.v3.TypedValue#newBuilder() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: StackdriverExportUtils.java From opencensus-java with Apache License 2.0 | 4 votes |
@Override public TypedValue apply(Double arg) { TypedValue.Builder builder = TypedValue.newBuilder(); builder.setDoubleValue(arg); return builder.build(); }
Example 2
Source File: StackdriverExportUtils.java From opencensus-java with Apache License 2.0 | 4 votes |
@Override public TypedValue apply(Long arg) { TypedValue.Builder builder = TypedValue.newBuilder(); builder.setInt64Value(arg); return builder.build(); }
Example 3
Source File: StackdriverExportUtils.java From opencensus-java with Apache License 2.0 | 4 votes |
@Override public TypedValue apply(io.opencensus.metrics.export.Distribution arg) { TypedValue.Builder builder = TypedValue.newBuilder(); return builder.setDistributionValue(createDistribution(arg)).build(); }
Example 4
Source File: StackdriverExportUtils.java From opencensus-java with Apache License 2.0 | 4 votes |
@Override public TypedValue apply(Summary arg) { TypedValue.Builder builder = TypedValue.newBuilder(); return builder.build(); }