@Immutable public abstract class StackdriverStatsConfiguration extends Object
StackdriverStatsExporter
.Modifier and Type | Class and Description |
---|---|
static class |
StackdriverStatsConfiguration.Builder
Builder for
StackdriverStatsConfiguration . |
Modifier and Type | Method and Description |
---|---|
static StackdriverStatsConfiguration.Builder |
builder()
Returns a new
StackdriverStatsConfiguration.Builder . |
abstract Map<io.opencensus.metrics.LabelKey,io.opencensus.metrics.LabelValue> |
getConstantLabels()
Returns the constant labels that will be applied to every Stackdriver metric.
|
abstract com.google.auth.Credentials |
getCredentials()
Returns the
Credentials . |
abstract io.opencensus.common.Duration |
getDeadline()
Returns the deadline for exporting to Stackdriver Monitoring backend.
|
abstract String |
getDisplayNamePrefix()
Returns the display name prefix for Stackdriver metrics.
|
abstract io.opencensus.common.Duration |
getExportInterval()
Returns the export interval between pushes to StackDriver.
|
abstract String |
getMetricNamePrefix()
Returns the name prefix for Stackdriver metrics.
|
abstract com.google.cloud.monitoring.v3.stub.MetricServiceStub |
getMetricServiceStub()
Returns the
MetricServiceStub to be used to make calls to Stackdriver Monitoring v3
APIs. |
abstract com.google.api.MonitoredResource |
getMonitoredResource()
Returns the Stackdriver
MonitoredResource . |
abstract String |
getProjectId()
Returns the project id.
|
@Nullable public abstract com.google.auth.Credentials getCredentials()
Credentials
.Credentials
.public abstract String getProjectId()
public abstract io.opencensus.common.Duration getExportInterval()
public abstract com.google.api.MonitoredResource getMonitoredResource()
MonitoredResource
.MonitoredResource
.@Nullable public abstract String getMetricNamePrefix()
@Nullable public abstract String getDisplayNamePrefix()
public abstract Map<io.opencensus.metrics.LabelKey,io.opencensus.metrics.LabelValue> getConstantLabels()
public abstract io.opencensus.common.Duration getDeadline()
Default value is 10 seconds if not set.
@Nullable public abstract com.google.cloud.monitoring.v3.stub.MetricServiceStub getMetricServiceStub()
MetricServiceStub
to be used to make calls to Stackdriver Monitoring v3
APIs. This is for for advanced usage.MetricServiceStub
.public static StackdriverStatsConfiguration.Builder builder()
StackdriverStatsConfiguration.Builder
.Builder
.