class BillingAccountsLogs extends Resource (View source)

The "logs" collection of methods.

Typical usage is:

 $loggingService = new Google\Service\Logging(...);
 $logs = $loggingService->billingAccounts_logs;

Methods

delete(string $logName, array $optParams = [])

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.

listBillingAccountsLogs(string $parent, array $optParams = [])

Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed. (logs.listBillingAccountsLogs)

Details

LoggingEmpty delete(string $logName, array $optParams = [])

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.

(logs.delete)

Parameters

string $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.

array $optParams

Optional parameters.

Return Value

LoggingEmpty

Exceptions

Exception

ListLogsResponse listBillingAccountsLogs(string $parent, array $optParams = [])

Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed. (logs.listBillingAccountsLogs)

Parameters

string $parent

Required. The resource name to list logs for: projects/[PROJECT_ID] organizations/[ORGANIZATION_ID] billingAccounts/[BILLING_ACCOUNT_ID] folders/[FOLDER_ID]

array $optParams

Optional parameters.

Return Value

ListLogsResponse

Exceptions

Exception