use of com.google.cloud.logging.testing.RemoteLoggingHelper in project google-cloud-java by GoogleCloudPlatform.
the class ITLoggingSnippets method beforeClass.
@BeforeClass
public static void beforeClass() {
RemoteLoggingHelper helper = RemoteLoggingHelper.create();
logging = helper.getOptions().getService();
loggingSnippets = new LoggingSnippets(logging);
}
use of com.google.cloud.logging.testing.RemoteLoggingHelper in project google-cloud-java by GoogleCloudPlatform.
the class ITMetricSnippets method beforeClass.
@BeforeClass
public static void beforeClass() {
RemoteLoggingHelper helper = RemoteLoggingHelper.create();
logging = helper.getOptions().getService();
MetricInfo metricInfo = MetricInfo.newBuilder(METRIC_NAME, METRIC_FILTER).setDescription(DESCRIPTION).build();
metricSnippets = new MetricSnippets(logging.create(metricInfo));
}
use of com.google.cloud.logging.testing.RemoteLoggingHelper in project google-cloud-java by GoogleCloudPlatform.
the class ITSinkSnippets method beforeClass.
@BeforeClass
public static void beforeClass() {
RemoteLoggingHelper helper = RemoteLoggingHelper.create();
logging = helper.getOptions().getService();
SinkInfo sinkInfo = SinkInfo.newBuilder(SINK_NAME, Destination.DatasetDestination.of(DESTINATION)).setFilter(SINK_FILTER).build();
sinkSnippets = new SinkSnippets(logging.create(sinkInfo));
}
use of com.google.cloud.logging.testing.RemoteLoggingHelper in project google-cloud-java by GoogleCloudPlatform.
the class ITLoggingTest method beforeClass.
@BeforeClass
public static void beforeClass() {
RemoteLoggingHelper helper = RemoteLoggingHelper.create();
logging = helper.getOptions().getService();
}
Aggregations