target.apidocs.com.google.api.services.logging.v2.Logging.Entries.html Maven / Gradle / Ivy
Logging.Entries (Cloud Logging API v2-rev20240913-2.0.0)
com.google.api.services.logging.v2
Class Logging.Entries
- java.lang.Object
-
- com.google.api.services.logging.v2.Logging.Entries
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Logging.Entries.Copy
class
Logging.Entries.List
class
Logging.Entries.Tail
class
Logging.Entries.Write
-
Constructor Summary
Constructors
Constructor and Description
Entries()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Logging.Entries.Copy
copy(CopyLogEntriesRequest content)
Copies a set of log entries from a log bucket to a Cloud Storage bucket.
Logging.Entries.List
list(ListLogEntriesRequest content)
Lists log entries.
Logging.Entries.Tail
tail(TailLogEntriesRequest content)
Streaming read of log entries as they are received.
Logging.Entries.Write
write(WriteLogEntriesRequest content)
Writes log entries to Logging.
-
-
Method Detail
-
copy
public Logging.Entries.Copy copy(CopyLogEntriesRequest content)
throws IOException
Copies a set of log entries from a log bucket to a Cloud Storage bucket.
Create a request for the method "entries.copy".
This request holds the parameters needed by the logging server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
content
- the CopyLogEntriesRequest
- Returns:
- the request
- Throws:
IOException
-
list
public Logging.Entries.List list(ListLogEntriesRequest content)
throws IOException
Lists log entries. Use this method to retrieve log entries that originated from a
project/folder/organization/billing account. For ways to export log entries, see Exporting Logs
(https://cloud.google.com/logging/docs/export).
Create a request for the method "entries.list".
This request holds the parameters needed by the logging server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
content
- the ListLogEntriesRequest
- Returns:
- the request
- Throws:
IOException
-
tail
public Logging.Entries.Tail tail(TailLogEntriesRequest content)
throws IOException
Streaming read of log entries as they are received. Until the stream is terminated, it will
continue reading logs.
Create a request for the method "entries.tail".
This request holds the parameters needed by the logging server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
content
- the TailLogEntriesRequest
- Returns:
- the request
- Throws:
IOException
-
write
public Logging.Entries.Write write(WriteLogEntriesRequest content)
throws IOException
Writes log entries to Logging. This API method is the only way to send log entries to Logging.
This method is used, directly or indirectly, by the Logging agent (fluentd) and all logging
libraries configured to use Logging. A single request may contain log entries for a maximum of
1000 different resource names (projects, organizations, billing accounts or folders), where the
resource name for a log entry is determined from its logName field.
Create a request for the method "entries.write".
This request holds the parameters needed by the logging server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
content
- the WriteLogEntriesRequest
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy