Search in sources :

Example 1 with RemoteLoggingHelper

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);
}
Also used : RemoteLoggingHelper(com.google.cloud.logging.testing.RemoteLoggingHelper) BeforeClass(org.junit.BeforeClass)

Example 2 with RemoteLoggingHelper

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));
}
Also used : RemoteLoggingHelper(com.google.cloud.logging.testing.RemoteLoggingHelper) MetricInfo(com.google.cloud.logging.MetricInfo) BeforeClass(org.junit.BeforeClass)

Example 3 with RemoteLoggingHelper

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));
}
Also used : RemoteLoggingHelper(com.google.cloud.logging.testing.RemoteLoggingHelper) SinkInfo(com.google.cloud.logging.SinkInfo) BeforeClass(org.junit.BeforeClass)

Example 4 with RemoteLoggingHelper

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();
}
Also used : RemoteLoggingHelper(com.google.cloud.logging.testing.RemoteLoggingHelper) BeforeClass(org.junit.BeforeClass)

Aggregations

RemoteLoggingHelper (com.google.cloud.logging.testing.RemoteLoggingHelper)4 BeforeClass (org.junit.BeforeClass)4 MetricInfo (com.google.cloud.logging.MetricInfo)1 SinkInfo (com.google.cloud.logging.SinkInfo)1