Skip to content

Commit

Permalink
test on staging
Browse files Browse the repository at this point in the history
  • Loading branch information
mutianf committed Aug 19, 2022
1 parent 4752130 commit edd4102
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import com.google.cloud.bigtable.test_helpers.env.EmulatorEnv;
import com.google.cloud.bigtable.test_helpers.env.TestEnvRule;
import com.google.cloud.monitoring.v3.MetricServiceClient;
import com.google.cloud.monitoring.v3.MetricServiceSettings;
import com.google.common.truth.Truth;
import com.google.monitoring.v3.ListTimeSeriesRequest;
import com.google.monitoring.v3.ListTimeSeriesResponse;
Expand Down Expand Up @@ -61,8 +62,12 @@ public static void setUpClass() throws IOException {
// Enable built in metrics
BigtableDataSettings.enableBuiltinMetrics();

MetricServiceSettings settings =
MetricServiceSettings.newBuilder()
.setEndpoint("staging-monitoring.sandbox.googleapis.com:443")
.build();
// Create a cloud monitoring client
metricClient = MetricServiceClient.create();
metricClient = MetricServiceClient.create(settings);
}

@Test
Expand Down

0 comments on commit edd4102

Please sign in to comment.