Skip to content

Commit

Permalink
Make serviceTimeSeries builder config public
Browse files Browse the repository at this point in the history
  • Loading branch information
psx95 committed Apr 2, 2024
1 parent 82a62dc commit 153ee56
Showing 1 changed file with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,18 @@ public final Builder setProjectId(String projectId) {
/** Sets the endpoint where to write Metrics. Defaults to monitoring.googleapis.com:443. */
public abstract Builder setMetricServiceEndpoint(String endpoint);

/**
* Sets the {@link MetricConfiguration} to configure the exporter to write metrics via {@link
* com.google.cloud.monitoring.v3.MetricServiceClient#createServiceTimeSeries(String, List)}
* method. By default, this is false.
*
* @param useServiceTimeSeries a boolean indicating whether to use {@link
* com.google.cloud.monitoring.v3.MetricServiceClient#createServiceTimeSeries(String, List)}
* method for writing metrics to Google Cloud Monitoring.
* @return this
*/
public abstract Builder setUseServiceTimeSeries(boolean useServiceTimeSeries);

/**
* Set a filter to determine which resource attributes to add to metrics as metric labels. By
* default, it adds service.name, service.namespace, and service.instance.id. This is
Expand All @@ -242,18 +254,6 @@ public final Builder setProjectId(String projectId) {
@VisibleForTesting
abstract Builder setInsecureEndpoint(boolean value);

/**
* Sets the {@link MetricConfiguration} to configure the exporter to write metrics via {@link
* com.google.cloud.monitoring.v3.MetricServiceClient#createServiceTimeSeries(String, List)}
* method. By default, this is false.
*
* @param useServiceTimeSeries a boolean indicating whether to use {@link
* com.google.cloud.monitoring.v3.MetricServiceClient#createServiceTimeSeries(String, List)}
* method for writing metrics to Google Cloud Monitoring.
* @return this
*/
abstract Builder setUseServiceTimeSeries(boolean useServiceTimeSeries);

abstract MetricConfiguration autoBuild();

/**
Expand Down

0 comments on commit 153ee56

Please sign in to comment.