Package | Description |
---|---|
com.google.cloud |
Core classes for the
google-cloud library. |
com.google.cloud.logging |
A client for Stackdriver Logging - Real-time log management and analysis.
|
Modifier and Type | Method and Description |
---|---|
MonitoredResource |
MonitoredResource.Builder.build() |
static MonitoredResource |
MonitoredResource.fromPb(com.google.api.MonitoredResource descriptorPb) |
static MonitoredResource |
MonitoredResource.of(String type,
Map<String,String> labels)
Creates a
MonitoredResource object given the resource's type and labels. |
Modifier and Type | Method and Description |
---|---|
MonitoredResource |
LogEntry.getResource()
Returns the monitored resource associated with this log entry.
|
static MonitoredResource |
MonitoredResourceUtil.getResource(String projectId,
String resourceTypeParam) |
Modifier and Type | Method and Description |
---|---|
static LogEntry |
LogEntry.of(String logName,
MonitoredResource resource,
Payload<?> payload)
Creates a
LogEntry object given the log name, the monitored resource and the entry
payload. |
static Logging.WriteOption |
Logging.WriteOption.resource(MonitoredResource resource)
Returns an option to specify a default monitored resource (see
LogEntry.getResource() ) for those log entries that do not specify their own resource. |
LogEntry.Builder |
LogEntry.Builder.setResource(MonitoredResource resource)
Sets the monitored resource associated with this log entry.
|
Constructor and Description |
---|
LoggingHandler(String log,
LoggingOptions options,
MonitoredResource monitoredResource)
Creates a handler that publishes messages to Stackdriver Logging.
|
LoggingHandler(String log,
LoggingOptions options,
MonitoredResource monitoredResource,
List<LoggingEnhancer> enhancers)
Creates a handler that publishes messages to Stackdriver Logging.
|
Copyright © 2019 Google LLC. All rights reserved.