@Generated(value="OracleSDKGenerator", comments="API Version: 20200531") public interface LoggingManagementAsync extends AutoCloseable
Use the Logging Management API to create, read, list, update, move and delete log groups, log objects, log saved searches, and agent configurations.
For more information, see [Logging Overview](https://docs.cloud.oracle.com/iaas/Content/Logging/Concepts/loggingoverview.htm).
close
void refreshClient()
Rebuilds the client from scratch. Useful to refresh certificates.
void setEndpoint(String endpoint)
Sets the endpoint to call (ex, https://www.example.com).
endpoint
- The endpoint of the serice.String getEndpoint()
Gets the set endpoint for REST call (ex, https://www.example.com)
void setRegion(Region region)
Sets the region to call (ex, Region.US_PHOENIX_1).
Note, this will call setEndpoint
after resolving the
endpoint. If the service is not available in this region, however, an
IllegalArgumentException will be raised.
region
- The region of the service.void setRegion(String regionId)
Sets the region to call (ex, ‘us-phoenix-1’).
Note, this will first try to map the region ID to a known Region and call setRegion
.
If no known Region could be determined, it will create an endpoint based on the default
endpoint format (Region.formatDefaultRegionEndpoint(Service, String)
and then call setEndpoint
.
regionId
- The public region ID.void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled)
Determines whether realm specific endpoint should be used or not. Set realmSpecificEndpointTemplateEnabled to “true” if the user wants to enable use of realm specific endpoint template, otherwise set it to “false”
realmSpecificEndpointTemplateEnabled
- flag to enable the use of realm specific endpoint
templateFuture<ChangeLogGroupCompartmentResponse> changeLogGroupCompartment(ChangeLogGroupCompartmentRequest request, AsyncHandler<ChangeLogGroupCompartmentRequest,ChangeLogGroupCompartmentResponse> handler)
Moves a log group into a different compartment within the same tenancy. When provided, the If-Match is checked against the resource ETag values. For information about moving resources between compartments, see Moving Resources Between Compartments.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ChangeLogLogGroupResponse> changeLogLogGroup(ChangeLogLogGroupRequest request, AsyncHandler<ChangeLogLogGroupRequest,ChangeLogLogGroupResponse> handler)
Moves a log into a different log group within the same tenancy. When provided, the If-Match is checked against the ETag values of the resource.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ChangeLogSavedSearchCompartmentResponse> changeLogSavedSearchCompartment(ChangeLogSavedSearchCompartmentRequest request, AsyncHandler<ChangeLogSavedSearchCompartmentRequest,ChangeLogSavedSearchCompartmentResponse> handler)
Moves a saved search into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ChangeUnifiedAgentConfigurationCompartmentResponse> changeUnifiedAgentConfigurationCompartment(ChangeUnifiedAgentConfigurationCompartmentRequest request, AsyncHandler<ChangeUnifiedAgentConfigurationCompartmentRequest,ChangeUnifiedAgentConfigurationCompartmentResponse> handler)
Moves the unified agent configuration into a different compartment within the same tenancy. When provided, the If-Match is checked against the ETag values of the resource. For information about moving resources between compartments, see Moving Resources Between Compartments.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateLogResponse> createLog(CreateLogRequest request, AsyncHandler<CreateLogRequest,CreateLogResponse> handler)
Creates a log within the specified log group. This call fails if a log group has already been created with the same displayName or (service, resource, category) triplet.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateLogGroupResponse> createLogGroup(CreateLogGroupRequest request, AsyncHandler<CreateLogGroupRequest,CreateLogGroupResponse> handler)
Create a new log group with a unique display name. This call fails if the log group is already created with the same displayName in the compartment.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateLogSavedSearchResponse> createLogSavedSearch(CreateLogSavedSearchRequest request, AsyncHandler<CreateLogSavedSearchRequest,CreateLogSavedSearchResponse> handler)
Creates a new LogSavedSearch.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateUnifiedAgentConfigurationResponse> createUnifiedAgentConfiguration(CreateUnifiedAgentConfigurationRequest request, AsyncHandler<CreateUnifiedAgentConfigurationRequest,CreateUnifiedAgentConfigurationResponse> handler)
Create unified agent configuration registration.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteLogResponse> deleteLog(DeleteLogRequest request, AsyncHandler<DeleteLogRequest,DeleteLogResponse> handler)
Deletes the log object in a log group.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteLogGroupResponse> deleteLogGroup(DeleteLogGroupRequest request, AsyncHandler<DeleteLogGroupRequest,DeleteLogGroupResponse> handler)
Deletes the specified log group.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteLogSavedSearchResponse> deleteLogSavedSearch(DeleteLogSavedSearchRequest request, AsyncHandler<DeleteLogSavedSearchRequest,DeleteLogSavedSearchResponse> handler)
Deletes the specified LogSavedSearch.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteUnifiedAgentConfigurationResponse> deleteUnifiedAgentConfiguration(DeleteUnifiedAgentConfigurationRequest request, AsyncHandler<DeleteUnifiedAgentConfigurationRequest,DeleteUnifiedAgentConfigurationResponse> handler)
Delete unified agent configuration.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteWorkRequestResponse> deleteWorkRequest(DeleteWorkRequestRequest request, AsyncHandler<DeleteWorkRequestRequest,DeleteWorkRequestResponse> handler)
Cancel a work request that has not started yet.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetLogResponse> getLog(GetLogRequest request, AsyncHandler<GetLogRequest,GetLogResponse> handler)
Gets the log object configuration for the log object OCID.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetLogGroupResponse> getLogGroup(GetLogGroupRequest request, AsyncHandler<GetLogGroupRequest,GetLogGroupResponse> handler)
Get the specified log group’s information.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetLogSavedSearchResponse> getLogSavedSearch(GetLogSavedSearchRequest request, AsyncHandler<GetLogSavedSearchRequest,GetLogSavedSearchResponse> handler)
Retrieves a LogSavedSearch.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetUnifiedAgentConfigurationResponse> getUnifiedAgentConfiguration(GetUnifiedAgentConfigurationRequest request, AsyncHandler<GetUnifiedAgentConfigurationRequest,GetUnifiedAgentConfigurationResponse> handler)
Get the unified agent configuration for an ID.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetWorkRequestResponse> getWorkRequest(GetWorkRequestRequest request, AsyncHandler<GetWorkRequestRequest,GetWorkRequestResponse> handler)
Gets the details of the work request with the given ID.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListLogGroupsResponse> listLogGroups(ListLogGroupsRequest request, AsyncHandler<ListLogGroupsRequest,ListLogGroupsResponse> handler)
Lists all log groups for the specified compartment or tenancy.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListLogSavedSearchesResponse> listLogSavedSearches(ListLogSavedSearchesRequest request, AsyncHandler<ListLogSavedSearchesRequest,ListLogSavedSearchesResponse> handler)
Lists LogSavedSearches for this compartment.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListLogsResponse> listLogs(ListLogsRequest request, AsyncHandler<ListLogsRequest,ListLogsResponse> handler)
Lists the specified log group’s log objects.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListServicesResponse> listServices(ListServicesRequest request, AsyncHandler<ListServicesRequest,ListServicesResponse> handler)
Lists all services that support logging.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListUnifiedAgentConfigurationsResponse> listUnifiedAgentConfigurations(ListUnifiedAgentConfigurationsRequest request, AsyncHandler<ListUnifiedAgentConfigurationsRequest,ListUnifiedAgentConfigurationsResponse> handler)
Lists all unified agent configurations in the specified compartment.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListWorkRequestErrorsResponse> listWorkRequestErrors(ListWorkRequestErrorsRequest request, AsyncHandler<ListWorkRequestErrorsRequest,ListWorkRequestErrorsResponse> handler)
Return a list of errors for a given work request.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListWorkRequestLogsResponse> listWorkRequestLogs(ListWorkRequestLogsRequest request, AsyncHandler<ListWorkRequestLogsRequest,ListWorkRequestLogsResponse> handler)
Return a list of logs for a given work request.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListWorkRequestsResponse> listWorkRequests(ListWorkRequestsRequest request, AsyncHandler<ListWorkRequestsRequest,ListWorkRequestsResponse> handler)
Lists the work requests in a compartment.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateLogResponse> updateLog(UpdateLogRequest request, AsyncHandler<UpdateLogRequest,UpdateLogResponse> handler)
Updates the existing log object with the associated configuration. This call fails if the log object does not exist.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateLogGroupResponse> updateLogGroup(UpdateLogGroupRequest request, AsyncHandler<UpdateLogGroupRequest,UpdateLogGroupResponse> handler)
Updates the existing log group with the associated configuration. This call fails if the log group does not exist.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateLogSavedSearchResponse> updateLogSavedSearch(UpdateLogSavedSearchRequest request, AsyncHandler<UpdateLogSavedSearchRequest,UpdateLogSavedSearchResponse> handler)
Updates an existing LogSavedSearch.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateUnifiedAgentConfigurationResponse> updateUnifiedAgentConfiguration(UpdateUnifiedAgentConfigurationRequest request, AsyncHandler<UpdateUnifiedAgentConfigurationRequest,UpdateUnifiedAgentConfigurationResponse> handler)
Update an existing unified agent configuration. This call fails if the log group does not exist.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Copyright © 2016–2024. All rights reserved.