Package com.google.cloud.logging.spi.v2

A client to Google Cloud Logging API.

See: Description

Package com.google.cloud.logging.spi.v2 Description

A client to Google Cloud Logging API. The interfaces provided are listed below, along with a usage sample ================== ConfigServiceV2Api ================== Service Description: Service for configuring sinks used to export log entries outside Stackdriver Logging. Sample for ConfigServiceV2Api:
 
 try (ConfigServiceV2Api configServiceV2Api = ConfigServiceV2Api.create()) {
   String formattedSinkName = ConfigServiceV2Api.formatSinkName("[PROJECT]", "[SINK]");
   LogSink response = configServiceV2Api.getSink(formattedSinkName);
 }
 
 
=================== MetricsServiceV2Api =================== Service Description: Service for configuring logs-based metrics. Sample for MetricsServiceV2Api:
 
 try (MetricsServiceV2Api metricsServiceV2Api = MetricsServiceV2Api.create()) {
   String formattedMetricName = MetricsServiceV2Api.formatMetricName("[PROJECT]", "[METRIC]");
   LogMetric response = metricsServiceV2Api.getLogMetric(formattedMetricName);
 }
 
 
=================== LoggingServiceV2Api =================== Service Description: Service for ingesting and querying logs. Sample for LoggingServiceV2Api:
 
 try (LoggingServiceV2Api loggingServiceV2Api = LoggingServiceV2Api.create()) {
   String formattedLogName = LoggingServiceV2Api.formatLogName("[PROJECT]", "[LOG]");
   loggingServiceV2Api.deleteLog(formattedLogName);
 }
 
 

Copyright © 2016 Google. All rights reserved.