target.apidocs.com.google.api.services.logging.v2.Logging.Logs.html Maven / Gradle / Ivy
Logging.Logs (Cloud Logging API v2-rev20240913-2.0.0)
com.google.api.services.logging.v2
Class Logging.Logs
- java.lang.Object
-
- com.google.api.services.logging.v2.Logging.Logs
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Logging.Logs.Delete
class
Logging.Logs.List
-
Constructor Summary
Constructors
Constructor and Description
Logs()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Logging.Logs.Delete
delete(String logName)
Deletes all the log entries in a log for the _Default Log Bucket.
Logging.Logs.List
list(String parent)
Lists the logs in projects, organizations, folders, or billing accounts.
-
-
Method Detail
-
delete
public Logging.Logs.Delete delete(String logName)
throws IOException
Deletes all the log entries in a log for the _Default Log Bucket. The log reappears if it
receives new entries. Log entries written shortly before the delete operation might not be
deleted. Entries received after the delete operation with a timestamp before the operation will
be deleted.
Create a request for the method "logs.delete".
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:
logName
- Required. The resource name of the log to delete: projects/[PROJECT_ID]/logs/[LOG_ID]
organizations/[ORGANIZATION_ID]/logs/[LOG_ID]
billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]
folders/[FOLDER_ID]/logs/[LOG_ID][LOG_ID] must be URL-encoded. For example, "projects/my-
project-id/logs/syslog", "organizations/123/logs/cloudaudit.googleapis.com%2Factivity".For
more information about log names, see LogEntry.
- Returns:
- the request
- Throws:
IOException
-
list
public Logging.Logs.List list(String parent)
throws IOException
Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have
entries are listed.
Create a request for the method "logs.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:
parent
- Required. The resource name to list logs for: projects/[PROJECT_ID] organizations/[ORGANIZATION_ID]
billingAccounts/[BILLING_ACCOUNT_ID] folders/[FOLDER_ID]
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy