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 =================== LoggingServiceV2Api =================== Service Description: Service for ingesting and querying logs. Sample for LoggingServiceV2Api:
 
 try (LoggingServiceV2Api loggingServiceV2Api = LoggingServiceV2Api.createWithDefaults()) {
   String formattedLogName = LoggingServiceV2Api.formatLogName("[PROJECT]", "[LOG]");
   loggingServiceV2Api.deleteLog(formattedLogName);
 }
 
 
================== ConfigServiceV2Api ================== Service Description: Sample for ConfigServiceV2Api:
 
 try (ConfigServiceV2Api configServiceV2Api = ConfigServiceV2Api.createWithDefaults()) {
   String formattedProjectName = ConfigServiceV2Api.formatProjectName("[PROJECT]");
   ListSinksResponse response = configServiceV2Api.listSinks(formattedProjectName);
 }
 
 
=================== MetricsServiceV2Api =================== Service Description: Sample for MetricsServiceV2Api:
 
 try (MetricsServiceV2Api metricsServiceV2Api = MetricsServiceV2Api.createWithDefaults()) {
   String formattedProjectName = MetricsServiceV2Api.formatProjectName("[PROJECT]");
   ListLogMetricsResponse response = metricsServiceV2Api.listLogMetrics(formattedProjectName);
 }
 
 

Copyright © 2016 Google. All rights reserved.